|
1 - Load it to XMLDocument using XMLDocument.Load
2 - Find the node under which you want the new node to be inserted
3 - Use AddChild method on that node.
|
|
|
|
|
Thanks you very much...
Pinna
|
|
|
|
|
To update an XML file you need xmldocument object
Check the link
[^]">
Cheers!!
Brij
|
|
|
|
|
http://www.codeproject.com/KB/install/msicustomaction.aspx
Please Go Through The Above Link and send in the Web Setup Project using c#
Thanks
Shavil
|
|
|
|
|
You want us to go to that link, and follow the directions to get something to work for YOUR project... Explain to me how that will work.
Why can't you do it yourself?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
have you tried by yourself?What is the error you found?
Cheers!!
Brij
|
|
|
|
|
Seeing as this is a C++ article, what the hell does it have to do with ASP.NET ? Did you spam the entire site, or just look for the most unrelated forum to ask in ?
You can post in the forum under the article if you have a question for the author.
Oh, I get it now. It's still not an ASP.NET question, but you want us to rewrite a C++ article in C# ? Dream on, buddy.
Christian Graus
Driven to the arms of OSX by Vista.
modified on Thursday, December 18, 2008 1:13 AM
|
|
|
|
|
Hi
I have to insert value in db from textbox which create at runtime i have done the coding the for creating it
but need help in inserting value in Database?
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
if (txtbox.Text != "")
{
CreateControl();
}
}
}
private void CreateControl()
{
TextBox txttest;
LiteralControl LCT1;
for(int i=0; i <= Convert.ToInt32(txtbox.Text)-1;i++)
{
LCT1=new LiteralControl ();
LCT1.Text="
";
txttest=new TextBox ();
txttest.ID="txt"+ (i+1);
Panel1.Controls.Add(LCT1);
Panel1.Controls.Add(txttest);
}
}
protected void Button1_Click(object sender, EventArgs e)
{
for(int i=0; i<= Convert.ToInt32(txtbox.Text)-1;i++)
{
TextBox txtCntrl=(TextBox)Panel1.FindControl("txt"+(i+1));
if(txtCntrl != null)
{
TextBox tbox = new TextBox();
tbox.Text=tbox.Text + "tbox"+txtCntrl.Text;
}
}
}
any help
|
|
|
|
|
page load is too late to create dynamic controls. They have missed the population of viewstate, and so won;t have any state.
You're also adding an empty literal every time ? Is this to space the control ? Have you tried css ?
developer.ravish wrote: for(int i=0; i<= Convert.ToInt32(txtbox.Text)-1;i++)
If someone types in 'one' here, your page will blow up.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
For better reliability of the code,
Always use try block when use "Convert" class.
Cheers!!
Brij
|
|
|
|
|
Dear All,
I am working on web development i am using VS 3.5 when i was doing code then suddenly sever explorer disappear then i open view menu and click on server explorer to view it again no server explorer didn't appear i restart IDE and also system abut still its still not solved i am avoiding to install IDE complete if any suggestion you have then kindly tell me.
Please kindly do replay
Sajjad Ali
|
|
|
|
|
|
i need to remove browser toolbars when page onload.. eg. such as toolbar=no, statusbar=no
Dushan Perera
|
|
|
|
|
I don't believe you can do that, except in some older version of IE. They fixed it as it is a security issue.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
thanks for your reply Christian Graus and can u tell me what are the alternatives to do this..
Dushan Perera
|
|
|
|
|
I have a functionality in my code which uses crystal report object to create an excel report directly on the click of a button.
Firstly the aspx page runs which uses the crystal report object. Later this page closes and the Excel sheet opens.
But I have a problem here. On some machines the aspx page closes automatically. But on some other machines the aspx page remains until it is closed manually!!!
Can anybody please suggest me on what can be checked or done here??
|
|
|
|
|
In the aspx page, the report engine URL is Redirected with certain parameters for the Report Engine.
|
|
|
|
|
naveen678 wrote: On some machines the aspx page closes automatically. But on some other machines the aspx page remains until it is closed manually!!!
Might be some browser settings. Since it is controlled by browser, ASP.NET can't do anything.
|
|
|
|
|
I am using a CheckBoxList for convenience, as I have several. But I notice the CheckBoxList itself is the sender when one checkbox is clicked. So, how do I know which one was clicked?
Thanks.
|
|
|
|
|
Try SelectedItem property. Something like
checkBoxList1.SelectedItem
|
|
|
|
|
SelectedItem or SelectedIndex will tell us which are selected - but I want to know which one is clicked.
Any other idea?
Thanks.
Ekjon
modified on Thursday, December 18, 2008 12:41 AM
|
|
|
|
|
Hi all,
How to retrieve querystring value in td using asp.net.Please help.
Thanks.
|
|
|
|
|
What do you mean in td?
To receive a the value of the querys string you use Request.QueryString.Get(mystringid), where mystringid is the id of the querystring you want.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
First you can saveit in a hdden variable from querystring then you can access it in td as
<%=hdnval.Value%>
also
You can access querystring using javascript
Cheers!!
Brij
|
|
|
|