问题描述
你好先生.
我有5个aspx页面.在每个页面中.我有5个标签,5个文本框和4个按钮(新,保存,取消,删除).在每个页面中,新按钮创建新页面.保存按钮保存页面.取消按钮取消页面.删除按钮删除记录.根据controlsIDs的功能是不同的.所以我如何创建一个webusercontrol并将其拖动到每个页面.现在我该如何在一个位置将功能写入这些按钮.因为controlIDs在每个页面中是分开的.如果有人知道请帮助我.
谢谢你
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
推荐答案
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
这篇关于用户如何控制编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!