basically, you need to do something like aspx file<form runat="server"> <asp:Xml id="xml1" DocumentSource="people.xml" TransformSource="peopletable.xsl" runat="server" /> <asp:Button id="btn" runat="server" Text="submit" OnClick="DoSubmit" /> </form><script language="C#" runat="server"> void DoSubmit(Object sender,EventArgs e) { string s = Request.Form["id"]; //or go through Request.Form //update your xml file here } </script>
<node type="textbox" id="id" name="name"/>
化为html元素为
<input type="text" id="id" name="id"></input>
在textbox中加了个值为star之后,保存的xml节点如下
<node type="textbox" id="id" name="name">star</node>
------------------------
高手们请回答!!
<asp:Xml id="xml1"
DocumentSource="people.xml"
TransformSource="peopletable.xsl"
runat="server" />
<asp:Button id="btn" runat="server" Text="submit" OnClick="DoSubmit" />
</form><script language="C#" runat="server">
void DoSubmit(Object sender,EventArgs e)
{
string s = Request.Form["id"];
//or go through Request.Form
//update your xml file here
}
</script>