Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Jamil Akram   on Sep 18 In Asp.net Category.

  
Question Answered By: Geldefsman Bakker   on Sep 18

Get that code  out of Page_Load

Have it live in a sub or method.

Have the visible  property set invoke the method or the page.

Look at:
www.learnasp.com/.../sourcecode-searcheruc.aspx

specifically:
dbgrid.ascx

The database population code could not live in Page_Load because it would fire before the button event that gave it correct SQL. So that code lives in a sub called DataBind() although it could have been called GoGetdata() or whatever...

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Do not execute invisible usercontrol Or get search suggestion and latest updates.


Tagged: