Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > createchildcontrols fires before click event

Reply
Thread Tools

createchildcontrols fires before click event

 
 
hsnkamal@yahoo.com
Guest
Posts: n/a
 
      06-26-2007
i have developed a web part using class library.when i clicked a
button it displayed a datagrid.after that i want to edit it.when i
click a edit button it goes to the original position where i the last
button.it means the grid is not visible.when i press a gain that
button it is visible again?can anyone help me to solve this matter?

 
Reply With Quote
 
 
 
 
Tom John
Guest
Posts: n/a
 
      07-04-2007
Hi

You need to ensure that the Grid is created/displayed on every postback.

I am guessing you are creating/displaying the Grid only after the button is
clicked. Maybe set a flag in the ViewState to indicate whether the Grid
should be displayed or not and query that when creating the child controls as
to whether it should be displayed or not. Then use the button click event to
set the ViewState flag.

Hope this helps get you going. If you want a code sample, post what you've
got and I'll help out.

Cheers

Tom John


"(E-Mail Removed)" wrote:

> i have developed a web part using class library.when i clicked a
> button it displayed a datagrid.after that i want to edit it.when i
> click a edit button it goes to the original position where i the last
> button.it means the grid is not visible.when i press a gain that
> button it is visible again?can anyone help me to solve this matter?
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When user press F5 after a button click event, the click event fires again! Max2006 ASP .Net 2 09-19-2007 05:37 AM
Event Fires after CreateChildControls John Bankhead ASP .Net Building Controls 1 07-18-2005 02:38 PM
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
CreateChildControls Event before Click Event Mark Sisson ASP .Net Building Controls 1 07-17-2003 03:46 AM
CreateChildControls Event before Click Event Mark Sisson ASP .Net Web Controls 1 07-17-2003 03:46 AM



Advertisments