2013年9月12日星期四

Add background without user control after an event occurs .

I can succeed in the background, add your own writing custom user controls, and some of the code inside the control with events. Why add a new page after the control , how only a simple user control interface without doing backstage event code ?


------ Solution ------------------------------------ --------
need their own handwriting out events in the control's declaration > front knock spaces should appear automatically on the induction , there are events that you choose one , then = a self- defined event name and then . cs page statement inside this custom event name on the line.
example:
reception

<asp:Button runat="server" ID="btn_save" Text="提交" OnClick="btn_save_Click" />

background

protected void btn_save_Click(object sender, EventArgs e)
{
……//代码
}

This button 's OnClick default is no need to manually write or space view mode selection or double-click the button.
------ For reference only -------------------------------------- -
just found the problem. After testing is when the page loads judgment was wrong .
page.ispostback event to limit the amount . Results posted speed really how fast the 2nd floor .
------ For reference only -------------------------------------- -


Although there are differences with the topic see you so positive sake of gave you a

没有评论:

发表评论