I have following two classes:
public class A : System.Web.UI.WebControls.Button
{
public virtual string X
{
get
{
object obj = ViewState["X"];
if (obj != null) return (string)obj;
return null;
}
set
{
…
Hi
I want to remove characters from a string other then a-z, and A-Z. Created following function for the same and it works fine.
public String stripGarbage(String s) {
String good = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz";
String result = "";
for (int i = 0; i < s.length(); i++) {
if…
I'm beginning work on a project that will access a Drupal site to create nodes on the site. This includes file uploading, as the project is to allow people to upload pictures en mass to a Drupal site with minimal ado. Note that my application is written in .Net.
What I would like to know is the best approach to achieve…
Hi
When i run below program i always get same values each time..Is rand is not a true random function.
int main()
{
while(1)
{
getch();
cout<<rand()<<endl;
}
}
In each run i am getting below values.
41
18467
6334
26500
19169
15724
......
arraylist.add(new ListItem("Activity1", "ActivityName1"));
suppose ActivityName1 value store in properties file to provide locale feature.
now how can i access the value of Activity1 key that associate to ActivityName1 value on jsp ( ActivityName1 corresponds to a properties file value) by using Struts.
i want to…
I have the html source of a page in a form of string with me:
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/all.css" />
</head>
<body>
<a href="/test.aspx">Test</a>
<a href="http://mysite.com">Test</a>
…
Hi Friends
I am using ajax dll in my application for smooth working but i have some doubt in my mind ? is there any security problem in server when we are using ajax dll in my application. means any one can missuse the application because we are using public memthods in ajax dll.
Any one suggest me, thanks in…
Hi
I am designing a remote CD/DVD burner to address hardware constraint on my Machine.
My design work like that :(Analogous to network paper printer)
Unix Based Machine (acts as server) hosts a burner.
Windows based machine acts as client.
Client prepare data to be burn and transfer it to server.
Server…
I have created Panorama control and binded PanoramaItem from ItemSource. Now when i am changing the selected Panoramaitem by swiping over them the Selected index is always set to -1. I dont know what wrong i am doing while implementation. neither selectionchange event is getting fired.
Code:
…
I am migrating to SVN from CVS. In CVS I have various aliases defined in CVSROOT/Modules file. That helps me to checkout multiple directories in one go.
For example:
Defined alias in CVSROOT/Modules file as below
…
i want to develop web page in asp(2.0) c#. in this page i want to create and show multiple thiumbnail. for example c:/image and this folder have 5 .jpeg file. when run my web page then show all thumbnail of 5 images…
input file:
1,a,USA,,
2,b,UK,,
3,c,USA,,
i want to update the 4th column in the input file from taking values from one of the table.
my code looks like this:
my $customer_dbh = DBI-connect("DBI:Oracle:$INST",…
i'm atinesh currently started learning c++ but i've one doubt about how to check the data type of input variable in c++.
#include<iostream.h>
void main()
{
double a,b;
cout<<"Enter two double…
While I am new to c and want help in this program
my code is :
#include<stdio.h>
#include<conio.h>
void main(){
int suite=2;
switch(suite) {
case 1||2:
printf("hi");
case…
I know C++ moderately and have written a few medium sized applications with it. To which field (ex. embedded software, gaming etc.) can i move into? what are the prospects?
I am using Explorer_WindowStateChanged to identified tab change event in IE 7 or IE 8.
My problem is, When i open any link in new tab (By right click on link and click on open in new tab), then somtimes…
Hi
I am a c++ programmer , I know little bit about java. As in java programmer do not deal with memory directly, in C++ application most of crashes are due to memory corruptions.
So an application…
Hello Everybody,
I am very new to TDD, not yet started using it. But i know that we have to write test first and then actual code to pass the test and refactor it till good design.
My concern over…