|
You could start by looking up System.Xml.XmlDocument .
Logifusion[^]
|
|
|
|
|
Try
Dim ObjXmlDoc As New XmlDataDocument
ObjXmlDoc.Load("file.xml")
Dim objNodeList As XmlNodeList = ObjXmlDoc.GetElementsByTagName (strNodeName)
Dim strValue As String = objNodeList(0).InnerText
Catch ex As Exception
' whatever
End Try
Tamimi - Code
|
|
|
|
|
thanks to your reply,
but my xml file is an XmlTextReader that has been loaded from an sql server database
so do you have another solution for my problem
best regards and thanks in advance
fady
|
|
|
|
|
XmlTextReader xtr = ...
XmlDocument doc = new XmlDocument();
doc.Load(xtr);
Logifusion[^]
|
|
|
|
|
thanks to your reply, it works fine
fady
|
|
|
|
|
I have used NDoc to create the MSDN format help files for my code, and I saved the file it created,but there is a problem. How can I view the file if I don't have the NDoc?I mean is it possible to view the file on a system which NDoc hasn't been setup on it?Or is it possible to save it with another extension, rather than .ndoc?
Thanks in advance.
|
|
|
|
|
The .ndoc file is just something specific to NDoc. It doesn't have your documentation in it. You have to compile the NDoc documentation. It will build either a .chm or a whole directory full of html, depending on your settings (which are stored in the .ndoc file).
Logifusion[^]
|
|
|
|
|
That was good enough.Thanks.But I couldn't find the compile item.I only could find the build item,and when I build it with "MSDN Documentation Type", it doesn't create that .chm file. I have to build it again with "HTML Documentation Type" so that the directory and the .chm file you mentioned being created.I mean I have to build it with both kind of "Documentation Type" to get the .chm file,not only the "MSDN Documentation Type".Is it the correct way to get that file?
|
|
|
|
|
Actually, the chm is created for the HTML documentation type. It sounds weird but a chm is a bunch of html files compressed together. The other version (it was "Web" in .net 1.1) is for just the html files.
Logifusion[^]
|
|
|
|
|
how can i get the HelpButton click event in .NET1.1 ?
|
|
|
|
|
I am trying to call a procedure (INSERTFIX_ORDERS_SUMMARY)in an Oracle 9i database and I am using .Net Framework 2.0 and the Enterprise Library January 2006 version, and I am always getting the following exception:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'INSERTFIX_ORDERS_SUMMARY'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Could anyone give me a hint about the cause of this exception cause I searched a lot and revised the code and I could find nothing is wrong so far.
Thanx in advnce.
Mohamed El Gohary
|
|
|
|
|
Hi,
Thanks for your reply.
I am doing this using TCPClient
<br />
<br />
client = new TcpClient(smtpServer, smtpPort);<br />
NetworkStream ns = client.GetStream();<br />
StreamReader stdIn = new StreamReader(ns);<br />
StreamWriter stdOut = new StreamWriter(ns);<br />
<br />
here the problem is my machine throughs an error that destination machine rejected the connection., and then i checked my machine and found that my machine's port 25 is not responding ... can you tell me the possible reason.
There is no firewall, SMTP Server is running,IIS is running,I have checked the norton settings, everything is fine.. i dont know you the port 25 is not responding
Please ehelp
Thanks
Sushant Duggal.
|
|
|
|
|
I have a UserControl in my application and the context help does not work for it (when i click on the help button (?) of the parent form and then i click my UserControl, the HelpRequested event is not raised).
Please Help!!!
|
|
|
|
|
How can I set the values for items that i've added in a comboBox? I've tryed this:
comboBox1.Items.Add("Item1");
comboBox1.SelectedItem = "Item1";
comboBox1.SelectedValue = 5;
but it doesn't work.
|
|
|
|
|
Hi,
what I normally do is that i create a class that will represent an item in the combobox. The combobox uses the ToString() method if you add an object to it. So i propose something like this for you:
<br />
class ComboBoxItem {<br />
<br />
private string sText = null;<br />
private int iValue = 0;<br />
<br />
public ComboBoxItem(string sText, int iValue) {<br />
this.sText = sText;<br />
this.iValue = iValue;<br />
}<br />
<br />
public string Text { get { return this.sText; } }<br />
public int Value { get { return this.iValue; } }<br />
<br />
public override ToString() {<br />
return this.sText;<br />
}<br />
<br />
<br />
}<br />
now you can do something like this:
<br />
comboBox1.Items.Add(new ComboBoxItem("Item1", 5));<br />
and to retrieve the selected value you do that:
<br />
int iSelectedValue = ( (ComboBoxItem) (comboBox1.SelectedItem)).Value<br />
Hope this helps (don't hesitate to ask again if not).
Regards
Sebastian
P.S.: Does somebody know how to do tabs inside the code? (when posting for codeproject)
-- modified at 7:54 Tuesday 13th June, 2006
|
|
|
|
|
|
I have a problem, but i can't see an solution
on Form1 I have 2 Fields from Table 1.
the user fills in the 2 Fields.. and presses the button.
now.. underneath the button there should be some query wich compares the data from a second table that has the 2 fields but also a third.
this should be filled out in the second form and this 3 field should be a increment.
so....
in the first form the user fills in 10000 AD
then press the button
the application checks in the second table to the first 2 values. (10000 AD) and check wich 3 third value is following up.. 18 as example.
my next problem is:
he now should take the first 2 values again and read in the first table wich partner/relatieve of some kind is in this data row.
this value he also should put in a textfield.. and when saved.. this value is put in the second table..
really hope you guys could help me.
i use visual C# 2005 and access database
|
|
|
|
|
hi..
i have a richtextbox in which im displaying some messages, i want to change the color of some text . is there any way to that ?
thanx
|
|
|
|
|
Use:
this.richTextBox1.Select(0, 5);
this.richTextBox1.SelectionColor = Color.Red;
|
|
|
|
|
Hi there am using a javascript to display a timer while running the process but earlier was using input value but now i need it to start while on button click i have the javascript but i need to know how to make it run in c#, pls find the code snippet below.
function convertClickHandle(){if(Form1.<b>button1</b>.<b>click</b>='30') {clock(); return true; }else{ lblMessage.innerText = 'ERROR';return false;}}");
i need to know how to start the timer in the button click in form1.i need help on function to start timer on button click event pls do the need ful.
Regards
ybasha
|
|
|
|
|
hi,
iv want to create a windows application.... with a form containing 2 simple text boxes... my requirement is tat when i give the url of a .asmx file (something like http://localhost/Sample/Test.asmx) in the first text box....... all the web methods it contains has to get populated in the second text box..... tat' it.....
can this be done.... if so how should i proceed....
thanks and regards,
Damodar
|
|
|
|
|
It can be done. You can read the WSDL yourself. I also think that System.Web.Services.Discovery namespace has some classes for reading web service code. I'm not exactly sure of that though since I've never done it myself.
Logifusion[^]
|
|
|
|
|
hi,
thanks.... can u tell me as to
how to get the local path of a virtual
directory just by giving the URL of any
of the .asmx file it contains???
regards
Damodar
|
|
|
|
|
Umm, well if you're writing the code inside the service, just use the Server property. But to do it from outside would be a pretty considerable breach of security.
Logifusion[^]
|
|
|
|
|
hi,
sorry im very much new to c#.net .... can u please elaborate me on the first reply you've given....?????
how do i use the System.Web.Services.Discovery namespace....and proceed to get the list of all web methods in a given .asmx url....tat is something like (http://localhost/BIRMWS/Intray.asmx)
regards,
damodar
-- modified at 1:53 Thursday 15th June, 2006
|
|
|
|