Click here to Skip to main content
16,014,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir.
i have 5 aspx pages. in each page. i have 5 lables, 5 textboxes nad 4 buttons(new, save, cancel, delete). in each page new button creaates new page. save button saves the page. cancel button cancels the page. delete button deletes the record. according to controlsIDs functionality is different. so how i create a webusercontrol and i drag it to each page. now how can i write the functionality to those buttons at one place. because controlsIDs seperate in each page. if anybody know plz help me.
thanking you
Posted

1 solution

In handles u can put all button like this,
VB
Protected Sub Buton_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles Button1.Click, Button2.Click, Button3.Click
       //write ur code based on ur button click.
End Sub
 
Share this answer
 
v2
Comments
Toniyo Jackson 24-Nov-10 4:36am    
If it not working contact me. If working vote.
Dalek Dave 24-Nov-10 5:07am    
Looks good.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900