ASP.NET calls the function in the user control and transmitting parameters

xiaoxiao2021-03-06  53

Step1: Register your user control in HTML:

<% @ Register tagprefix = "Module" tagname = "account" src = "./ modules / accountmodule.ascx"%>

Step2: Establish this user control

STEP3:

Protected AccountModule ModuleAccount;

Step4: Processing button Click event

Public Void SubmitButton_Click (Object Sender, Eventargs E)

{

//

// process the changes to the form

//

Moduleaccount.ProcessChanges (PARA);

}

转载请注明原文地址:https://www.9cbs.com/read-116865.html

New Post(0)