hi
I have a usercontrol that loads in tabpanel.my usercontrol has two buttons(submit and cancel).when I click on these buttons for the first time nothing happens(progarm does not enter to onclick events when page is postback for the first time).but when I click for second time on buttons it works.what should I do to run onclick event in first click?would somebody please help me?
here is my code:
//usercontrol.ascx.cs
protected void btnOk_Click(object sender, EventArgs e)
{
string path = AppDomain.CurrentDomain.BaseDirectory + "XML.xml";
XmlDocument doc = new XmlDocument();
doc.Load(path);
XmlNode objRootNode = doc.SelectSingleNode("//root");
XmlElement objChildNode = doc.CreateElement("Member");
objChildNode.SetAttribute("id", this.txtName.Text);
objRootNode.AppendChild(objChildNod ...
Go to the complete details ...