Issue I have a gridview that putted in ASP.NET Panel. both of panel and Gridview are in an UpdatePanel. there is a column in gridview that Causes Partial PostBacks. i want to Maintain Panel Scroll position on those postbacks. Is
Continue readingTag: postback
[SOLVED] Why is the value of my boolean variable lost between postback
Issue I have a boolean variable called CheckBoxActivated that I assign to true after validating a user name and password. string name = us.UserName; string password = us.Password; if (name.Equals(txtName.Text) && (password.Equals(txtPassword.Text))) { CheckBoxAvtivated = true; The strange thing is,after
Continue reading[SOLVED] Base class includes field but type not compatible with type of control
Issue The base class includes the field ‘lbl’, but its type (web.App_Code.CustomLabelControl) is not compatible with the type of control (web.App_Code.CustomLabelControl). I had done many custom controls before the same way but today I ran into this error. I have
Continue reading[SOLVED] Check condition before some postback
Issue In my scenario i have many asp.net button in the page. Each asp.net button when rendered on client side has a strucutre like the following : <button onclick="__doPostBack(‘ctl00$…ID’,”)" type="button" class=".."></button> Some of the button in the page have a
Continue reading[SOLVED] Why doesn't returning false from OnClientClick cancel the postback
Issue I have a LinkButton where I use the OnClientClick property to ask the user whether he really wants to perform an action, e.g: <script> function confirmDelete() { return confirm(‘Do you really want to delete?’); } </script> <asp:LinkButton runat=”server” OnClientClick=”return
Continue reading