Click here to Skip to main content
15,900,973 members
Home / Discussions / C#
   

C#

 
QuestionHow to insert NULL value into database? Pin
oohungoo18-May-05 22:26
oohungoo18-May-05 22:26 
AnswerRe: How to insert NULL value into database? Pin
mav.northwind18-May-05 23:06
mav.northwind18-May-05 23:06 
GeneralSerializing a class with member object[ ] Pin
Anonymous18-May-05 22:13
Anonymous18-May-05 22:13 
GeneralRe: Serializing a class with member object[ ] Pin
Marc Clifton19-May-05 1:21
mvaMarc Clifton19-May-05 1:21 
GeneralKILL process of excel Pin
ksanju100018-May-05 22:13
ksanju100018-May-05 22:13 
GeneralRe: KILL process of excel Pin
mav.northwind18-May-05 23:05
mav.northwind18-May-05 23:05 
GeneralRe: KILL process of excel Pin
methodincharge19-May-05 2:30
methodincharge19-May-05 2:30 
Generalextend known XML tags in VS2003 Pin
Roland Bär18-May-05 22:09
Roland Bär18-May-05 22:09 
Generalfind & replace Pin
hoangsamac18-May-05 22:07
hoangsamac18-May-05 22:07 
GeneralRe: find & replace Pin
mav.northwind18-May-05 23:01
mav.northwind18-May-05 23:01 
Generalprogram to find out whether Excel has been installed or not Pin
ksanju100018-May-05 22:06
ksanju100018-May-05 22:06 
GeneralRe: program to find out whether Excel has been installed or not Pin
g00fyman18-May-05 22:19
g00fyman18-May-05 22:19 
GeneralRe: program to find out whether Excel has been installed or not Pin
mav.northwind18-May-05 22:58
mav.northwind18-May-05 22:58 
GeneralRe: program to find out whether Excel has been installed or not Pin
ksanju100019-May-05 18:56
ksanju100019-May-05 18:56 
GeneralConnecting to *.Dbf files Pin
V.18-May-05 21:56
professionalV.18-May-05 21:56 
Generaldelete a registry key by unistalling of my application Pin
Anonymous18-May-05 21:42
Anonymous18-May-05 21:42 
GeneralCreateFile Problem Pin
Mohan vijay18-May-05 21:20
Mohan vijay18-May-05 21:20 
GeneralMultiple Image Printing Problem Pin
ismart18-May-05 21:10
ismart18-May-05 21:10 
GeneralCommunication between Modems Pin
Subrahmanyam K18-May-05 20:44
Subrahmanyam K18-May-05 20:44 
Generalpls correct my error Pin
ksanju100018-May-05 20:41
ksanju100018-May-05 20:41 
GeneralRe: pls correct my error Pin
Ali Iqbal Khan18-May-05 23:32
Ali Iqbal Khan18-May-05 23:32 
Well Sanjeev, everything seems fine.... but there is one glitch which might be causing this problem. Since you are picking value from a textbox, perhaps there are trailing spaces in it. Why dont you first extract value from textbox, trim it and then try to find that node.

Like you can do this.

string strdata = Convert.tostring(textBox1.text).trim();
xmlNode farm2=doc.SelectSingleNode("/root/farm-config/farm[./@name='"+ strdata + "']/connection/@address");

Hope this resolves the problem!!!

Ali

http://aliwritings.blogspot.com/
Generalmultiple SQl on mySQL Pin
Jassim Rahma18-May-05 20:26
Jassim Rahma18-May-05 20:26 
GeneralRe: multiple SQl on mySQL Pin
MoustafaS18-May-05 23:09
MoustafaS18-May-05 23:09 
GeneralProblem with namespaces/references Pin
methodincharge18-May-05 19:21
methodincharge18-May-05 19:21 
GeneralRe: Problem with namespaces/references Pin
Christian Graus18-May-05 19:41
protectorChristian Graus18-May-05 19:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.