用户如何控制编码 [英] how to user control coding

查看:95
本文介绍了用户如何控制编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生.
我有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

推荐答案

在句柄中,您可以像这样放置所有按钮,
In handles u can put all button like this,
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


这篇关于用户如何控制编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆