c# - Using Page.IsPostback Within a USer Control Wrapped in an Update Panel -


I have a main page in which I load user controls with the grid and add / edit link buttons.

If I bind the grid by setting the data source and calling the datebind () method in the page load event, it sets it correctly. However, I want to place the selected row between the postback, so I wrap the bind code normally as "if (! Page.IsPostBack) {}" my problem is that PageLond is always registered as a postback And my code never runs.

I am using the 2.0 framework, and there is a 2008.1 infragistcs for the MU Grid 2.0.1 framework.

I think it should be something simple ... or anyway, hope!

Thank you in advance

If you have control over an UpdatePanel You should check

instead of .

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -