Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack){
- var ctrlName = Request.Params[Page.postEventSourceID];
- var args = Request.Params[Page.postEventArgumentID];
- HandleCustomPostbackEvent(ctrlName, args);
- }
- }
- protected void Page_Init(object sender, EventArgs e)
- {
- var onBlurScript = Page.ClientScript.GetPostBackEventReference(txtPoraka, "OnBlur");
- txtPoraka.Attributes.Add("onblur", onBlurScript);
- }
- private void HandleCustomPostbackEvent(string ctrlName, string args)
- {
- if (ctrlName == txtPoraka.UniqueID && args == "OnBlur"){
- //Се деси блур!
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement