Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create subfolder by FtpWebRequest in .net2.0? Pin
leppie30-Oct-08 0:41
leppie30-Oct-08 0:41 
QuestionCombobox binded in a datagrid view Pin
DJ24529-Oct-08 20:29
DJ24529-Oct-08 20:29 
QuestionReplacing the text in word document with the help of Programing in C# for web application Pin
anithagaraga29-Oct-08 19:39
anithagaraga29-Oct-08 19:39 
AnswerRe: Replacing the text in word document with the help of Programing in C# for web application Pin
Sathesh Sakthivel29-Oct-08 19:56
Sathesh Sakthivel29-Oct-08 19:56 
QuestionProblem loading with dll Pin
asugix29-Oct-08 19:37
asugix29-Oct-08 19:37 
AnswerRe: Problem loading with dll Pin
leppie30-Oct-08 0:45
leppie30-Oct-08 0:45 
GeneralRe: Problem loading with dll Pin
asugix30-Oct-08 1:35
asugix30-Oct-08 1:35 
QuestionHow to pass a value in SelectNodes(string.Format)? Pin
anette_ashley29-Oct-08 18:34
anette_ashley29-Oct-08 18:34 
What is the correct syntax to pass the value of index to the underlined code?
where in if index=2
XmlNodeList xmlNodes = xmlHelp.SelectNodes(string.Format("//Help[@name='{0}']/Item[2]", tag));

Below is my code:
protected void GetItemHelp(int index)
{
string tag = Request["ref"];
string sHelpFile = Server.MapPath("~/Help.xml");
try
{
XmlDocument xmlHelp = new XmlDocument();
xmlHelp.Load(sHelpFile);
XmlNodeList xmlNodes = xmlHelp.SelectNodes(string.Format("//Help[@name='{0}']/Item[1]", tag));
if (xmlNodes.Count > 0)
{
itemText.Text = xmlNodes[0].InnerXml;
}
else
{
itemText.Text = " [" + Server.HtmlEncode(tag) + "] Help is currently not available for this page.";
}
}
catch
{
itemText.Text = "Help is currently not available.";
throw;
}
}
AnswerRe: How to pass a value in SelectNodes(string.Format)? Pin
N a v a n e e t h29-Oct-08 18:37
N a v a n e e t h29-Oct-08 18:37 
GeneralRe: How to pass a value in SelectNodes(string.Format)? Pin
anette_ashley29-Oct-08 18:46
anette_ashley29-Oct-08 18:46 
QuestionHow can I get list of all machine on LAN Pin
FishiFishi29-Oct-08 18:14
FishiFishi29-Oct-08 18:14 
AnswerRe: How can I get list of all machine on LAN Pin
N a v a n e e t h29-Oct-08 18:18
N a v a n e e t h29-Oct-08 18:18 
Questionbase method Pin
George_George29-Oct-08 15:42
George_George29-Oct-08 15:42 
AnswerRe: base method Pin
N a v a n e e t h29-Oct-08 18:24
N a v a n e e t h29-Oct-08 18:24 
GeneralRe: base method Pin
George_George29-Oct-08 18:44
George_George29-Oct-08 18:44 
GeneralRe: base method Pin
User 665829-Oct-08 20:30
User 665829-Oct-08 20:30 
GeneralRe: base method Pin
George_George30-Oct-08 2:55
George_George30-Oct-08 2:55 
GeneralRe: base method Pin
User 665830-Oct-08 6:20
User 665830-Oct-08 6:20 
GeneralRe: base method Pin
George_George31-Oct-08 0:04
George_George31-Oct-08 0:04 
GeneralRe: base method Pin
N a v a n e e t h2-Nov-08 6:10
N a v a n e e t h2-Nov-08 6:10 
QuestionSecurity consideration of Windows Service written in .NET Pin
Zerox MXI29-Oct-08 15:13
Zerox MXI29-Oct-08 15:13 
AnswerRe: Security consideration of Windows Service written in .NET Pin
#realJSOP29-Oct-08 23:39
mve#realJSOP29-Oct-08 23:39 
QuestionMove the unmovable Pin
ltheonel29-Oct-08 13:53
ltheonel29-Oct-08 13:53 
AnswerRe: Move the unmovable Pin
N a v a n e e t h29-Oct-08 18:29
N a v a n e e t h29-Oct-08 18:29 
GeneralRe: Move the unmovable Pin
ltheonel29-Oct-08 23:09
ltheonel29-Oct-08 23:09 

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.