Click here to Skip to main content
15,922,407 members
Home / Discussions / C#
   

C#

 
QuestionTAPI and cellular phone Pin
Zkiboy20-Jun-06 21:21
Zkiboy20-Jun-06 21:21 
QuestionTabStrip Control Downside Alignment Pin
Sravan Krishna20-Jun-06 20:15
Sravan Krishna20-Jun-06 20:15 
QuestionHot to get Root of Virtual Directory Pin
KSCsoft20-Jun-06 20:04
KSCsoft20-Jun-06 20:04 
Questionhow to get System Root of Virtual Directory Pin
KSCsoft20-Jun-06 19:58
KSCsoft20-Jun-06 19:58 
AnswerRe: how to get System Root of Virtual Directory Pin
Edbert P20-Jun-06 20:07
Edbert P20-Jun-06 20:07 
GeneralRe: how to get System Root of Virtual Directory Pin
KSCsoft20-Jun-06 20:26
KSCsoft20-Jun-06 20:26 
GeneralRe: how to get System Root of Virtual Directory Pin
Edbert P20-Jun-06 20:40
Edbert P20-Jun-06 20:40 
QuestionProblem formatting while retrieving string in xml document Pin
ashishinfra20-Jun-06 19:49
ashishinfra20-Jun-06 19:49 
I have piece of code which extracts the sql queries stored in xml files

following is the xml file (Purposely instead of single angle double starting and closing angles are used in order that xml file gets displayed and tags are not ignored )
======================================================================
<<xml version="1.0" encoding="utf-8">>
<<queries>>
<<loginclient>>"select chrid,chrname from mclient where UserName="+"'"+ txtusernamec.Text+"' and pwd ='"+txtpasswordc.Text+"'"<>
<<loginsubscriber>>select * from msubscriber<>
<<loginrm>><>
<<loginbackuser>><>
<<queries>>
====================================================================

The piece of code that tries to retrieve queries from xml file is

XmlDocument _xdoc = new XmlDocument();
_xdoc.Load(Server.MapPath("KmukQueries.xml"));
XmlNodeList xtemp = _xdoc.GetElementsByTagName("LoginClient");
string temp = xtemp[0].InnerXml.Replace(@"\","");

====================================================================

however the ultimate string that is stored in temp is
"\"select chrid,chrname from mclient where UserName=\"+\"'\"+ txtusernamec.Text+\"' and pwd ='\"+txtpasswordc.Text+\"'\""

but the desired string is

"select chrid,chrname from mclient where UserName="+"'"+ txtusernamec.Text+"' and pwd ='"+txtpasswordc.Text+"'"

Please suggest what could be done ..
for the current needs of project i cannot store query in xml file in form of
select * from abc where xyz = ? and pqr = ?
QuestionConvert Form to dll Pin
freshonlineMax20-Jun-06 19:29
freshonlineMax20-Jun-06 19:29 
AnswerRe: Convert Form to dll Pin
Christian Graus20-Jun-06 19:43
protectorChristian Graus20-Jun-06 19:43 
AnswerRe: Convert Form to dll Pin
KSCsoft20-Jun-06 20:38
KSCsoft20-Jun-06 20:38 
QuestionColumn Separator Text File Pin
satsumatable20-Jun-06 19:28
satsumatable20-Jun-06 19:28 
AnswerRe: Column Separator Text File Pin
ashishinfra20-Jun-06 20:02
ashishinfra20-Jun-06 20:02 
Questionhow to convert ms access query to sql query Pin
leelaraj20-Jun-06 17:55
leelaraj20-Jun-06 17:55 
AnswerRe: how to convert ms access query to sql query Pin
Guffa20-Jun-06 18:52
Guffa20-Jun-06 18:52 
GeneralRe: how to convert ms access query to sql query Pin
leelaraj20-Jun-06 19:25
leelaraj20-Jun-06 19:25 
AnswerRe: how to convert ms access query to sql query Pin
Guffa21-Jun-06 11:37
Guffa21-Jun-06 11:37 
GeneralRe: how to convert ms access query to sql query Pin
leelaraj22-Jun-06 19:42
leelaraj22-Jun-06 19:42 
Questionhow can i run an application with parameters ? [modified] Pin
abiisalwayshappy20-Jun-06 17:17
abiisalwayshappy20-Jun-06 17:17 
AnswerRe: how can i run an application with parameters ? [modified] Pin
Guffa20-Jun-06 18:42
Guffa20-Jun-06 18:42 
Questionwindows application Pin
skyeddie20-Jun-06 16:59
skyeddie20-Jun-06 16:59 
AnswerRe: windows application Pin
led mike20-Jun-06 19:45
led mike20-Jun-06 19:45 
GeneralRe: windows application Pin
skyeddie20-Jun-06 21:52
skyeddie20-Jun-06 21:52 
GeneralRe: windows application Pin
led mike21-Jun-06 5:11
led mike21-Jun-06 5:11 
QuestionRe: windows application?? Pin
skyeddie20-Jun-06 21:55
skyeddie20-Jun-06 21:55 

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.