c# - Postback of a button happen after two clicks inside a Usercontrol -


please see below image. enter image description here

i have admin page in website.in there left side have menu.it treeview. when user click tree node right side controls loading. right side controls inside user controls. when come page select category. right side panel display. after fill data when click save button data inside textboxes cleared , no records go db. after fill record , when click button again record goes. after onwards have click one. records goes db.

so question why not work @ first time. want solve it

i load user controls using code

            clearpholdercontrols();             jobcategorycontrol jobcategorycontrol = (jobcategorycontrol)loadcontrol("~/uc/admin/jobcategorycontrol.ascx");             pholderadmincontent.controls.add(jobcategorycontrol); 

it more clear if can post post code guess have check if necessary code load right side controls @ right place post not overriding button click event.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -