|
|
string sQuery = "/html/body/table/tbody/tr";
XmlNodeList tables = xmlDoc.SelectNodes(sQuery);
i am using the above code to find the number of lines in an XML file. but i always get the count as zero.
Can anyone plz correct me what i am doing wrong or any new sQuery??
Thanks in advance....
|
|
|
|
|
string sQuery = "//html/body/table/tbody/tr";
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
it did this but still my table count is zero. Can u plz suggest me something else.
|
|
|
|
|
hey thx...
act it needs to be written in CAPS...my fault...
|
|
|
|
|
Yes, XML is indeed case-sensitive
|
|
|
|
|
|
Hi All,
I stuck in a problem please help me , My problem is that I have a windowsForm at this 4 buttons are there. I want to hide the "Text" property of one particular button from Property window so that no one can assign value to it from property window but at the same time he can be able to assing "Text" property programitically .
e.g. :
button1.Text = "Register";
it will be possible by programatically not from property windows .
thanx in advance...
|
|
|
|
|
I believe you have to create your own class that derives from Button like this.
using System.ComponentModel;
using System.Windows.Forms;
public class MyButton : Button
{
[Browsable(false)]
public new string Text
{
get { return base.Text; }
set { base.Text = value; }
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Hi,
I think You didn't understand my Question. I want to hide the particular property of existing control without inheriting on my form ( in current suitation it is button but in another case it may be another control or may be more than one controls ).
I do not want to inherit all control and then I hide that particular property by overriding.
I only want that I stick a perticular control on my form and hide some properties of it.
for example :
At my form there are 4 controls
1. button : I want to hide the 'Text' Property of this, from property windows sothat developer can not set it's Text from property window
2. textbox : I want to hide the 'Size' Property of this control from property windows only
3. gridview : I want to hide the 'Name' Property of this control from property windows only
4. Groupbox : I want to hide the ' Location' Property of this control from property windows only
And all of cases I do not want to inherit any control.
|
|
|
|
|
What you want isn't possible as the properties and attributes have been set by MS in the source. The only way is use your own controls where you get to set these yourself.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
i think what you want is only possible if we have the visual studio code.
|
|
|
|
|
Dear all,
As per the requirement in my application, through coding how can i Turn Off IE header and Footer while printing the page?
Can any body help on this,..
thanks in advance,
Devi.
|
|
|
|
|
It's a print setting in IE. I do not think you can change that from a web page. I could be wrong, but when I was stuck with a similar issue, I didnt find an answer.
|
|
|
|
|
You're not wrong. I tried (in vain) to remove this for a couple of months, and came to the conclusion that there wasn't really a way to do it.
|
|
|
|
|
Pete O'Hanlon wrote: You're not wrong.
Good to know ... that I didn't waste more than a few hours on this
|
|
|
|
|
I had to dock a pictureBox in my mdi form and send it to back, but everytime the mdi is having a baby, it hides behind the pictureBox!!
I had to create a timer that sends this pictureBox to back all the time but still it didnt work!
Is there any other way to have a background image on your mdi form??
Thank you guys
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Open the document outline window and see that it is placed in the correct order there.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
This[^] article should help you.
|
|
|
|
|
Hey Pete, and thanks! The article looks helpful, I'm reading it now.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
No bother mate. Glad I could help.
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
Hey Ravi,
Long time no see buddy Thanks for your informative link, but I'm sorry I bothered you guys, the problem way a particular one that relates to my form and works fine with any other windows form!
Thanks mate! 5 for trying to help though
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Okay.. Here is my question!
I want to generate reports using crystal report or any other reporting feature that works in visual studio 2005 (using C-sharp). now the trick is, i want the user to be able to define what they would like in their report(without them actually writing the sql behind the report). for example lets say they they wanted to see a list of people with names starting with "G" according to how much they earned.. it should be able to do this. the user should just select options on the "form" and a report be generated..
thanks.
|
|
|
|
|
For this you need to pass parameters to your store procedure based on the users choice. And then based on that build your crystal report.
Ahsan Ullah
Senior Software Engineer
|
|
|
|