</body></html></p><p>对应的cs namespace notpage { using system; using system.collections; using system.componentmodel; using system.data; using system.drawing; using system.web; using system.web.sessionstate; using system.web.ui; using system.web.ui.webcontrols; using system.web.ui.htmlcontrols;</p><p> /// <summary> /// summary description for addtopic. /// </summary> public class addtopic : system.web.ui.page { protected system.web.ui.webcontrols.textbox txtcontent; protected system.web.ui.webcontrols.textbox txtauthor; protected system.web.ui.webcontrols.textbox txttitle; protected system.web.ui.webcontrols.button btnsubmit;
public addtopic() { page.init += new system.eventhandler(page_init); }</p><p> protected void page_load(object sender, eventargs e) { if (!ispostback) { // // evals true first time browser hits the page // } }</p><p> protected void page_init(object sender, eventargs e) { // // codegen: this call is required by the asp+ windows form designer. // initializecomponent(); }</p><p> /// <summary> /// required method for designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void initializecomponent() { btnsubmit.click += new system.eventhandler (this.onsubmit); this.load += new system.eventhandler (this.page_load); } public void onsubmit(object sender , eventargs e) {