Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Datagrid ItemCreated happens Before Postback???

Reply
Thread Tools

Datagrid ItemCreated happens Before Postback???

 
 
Lars Netzel
Guest
Posts: n/a
 
      09-10-2004
Hi! I'm so confused right now..

I have a Page that load a datagrid with a a bunch of radiobuttons in three
columns which are then checkes or uncheck in the ItemCreated.(it's supposed
to be a permission setting for different things in my application)
There is a save button on the page to save the permissions set in the grid.

The BindGrid() is called if it is NOT a postback in the PageLoad.

Then, in debugging, when the User presses the Save button update the
permissions, for some reason.. the ItemCreated is breaking before I have
even gotten to the PageLoad... and in there the Radiobuttons are set so that
the radiobutton for "no access" is checked, this means the selection of
Radiobuttons the user made is overwritten.

THEN is goes to the PageLoad and THEN is updates the Permissions... thru the
btnSave_Click()

Why on Earth is the ItemCreated Happening before the PageLoad...??? I see no
point in this and is there a way to stop it from happening?

Best Regards/
Lars


 
Reply With Quote
 
 
 
 
Greg Burns
Guest
Posts: n/a
 
      09-10-2004
I believe I fought with this before too. I think I moved my stuff to the
ItemDataBound event to make it happy.

Greg

"Lars Netzel" <[stop_spam]@host.topdomain> wrote in message
news:evW4%(E-Mail Removed)...
> Hi! I'm so confused right now..
>
> I have a Page that load a datagrid with a a bunch of radiobuttons in three
> columns which are then checkes or uncheck in the ItemCreated.(it's
> supposed
> to be a permission setting for different things in my application)
> There is a save button on the page to save the permissions set in the
> grid.
>
> The BindGrid() is called if it is NOT a postback in the PageLoad.
>
> Then, in debugging, when the User presses the Save button update the
> permissions, for some reason.. the ItemCreated is breaking before I have
> even gotten to the PageLoad... and in there the Radiobuttons are set so
> that
> the radiobutton for "no access" is checked, this means the selection of
> Radiobuttons the user made is overwritten.
>
> THEN is goes to the PageLoad and THEN is updates the Permissions... thru
> the
> btnSave_Click()
>
> Why on Earth is the ItemCreated Happening before the PageLoad...??? I see
> no
> point in this and is there a way to stop it from happening?
>
> Best Regards/
> Lars
>
>



 
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
What happens when type conversion between signed and unsigned happens? NM C++ 6 09-20-2006 05:39 PM
Why Repeater.ItemCreated is fired before Page_Load on postback Philippe Camus ASP .Net 2 03-30-2006 12:57 PM
DataGrid Itemcreated Problem! Lars Netzel ASP .Net 1 12-09-2004 03:59 AM
DataGrid and ItemCreated and Pager Binny ASP .Net 2 12-10-2003 06:38 PM
Re: getting column value in ItemCreated datagrid event Learning SQL Server ASP .Net 0 08-12-2003 01:38 PM



Advertisments