PC Review


Reply
Thread Tools Rate Thread

DataBind OnSelecting and ReInit Page variables

 
 
edoardo.pistoletti@gmail.com
Guest
Posts: n/a
 
      27th Aug 2008
Hi,
I have a problem with page private variables (but it also arises with
controls in the page).
The page is a Search Page with 2 textboxes and a search button with a
repeater to show
the results.
The repeater is bound on an objectDataSource.
On the OnClick event handler I set an Int32 variable inside the page
then I call the DataBind
on the repeater.
The strange thing is when I step into the OnSelecting handler of the
objectDataSource.
I need the Integer value to pass as an InputParameter to the
SelectMethod and the value
is always 0... It seems like the Page object is reinitialized.
Then, If I step into a subsequent event handler, as PageUnload, the
variable has the correct
value...
Can someone help me to discover how it can happen ?

Thanks a lot,
Edoardo
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Page.Databind =?Utf-8?B?SG9ja2V5RmFu?= Microsoft VB .NET 0 2nd Aug 2006 06:12 PM
Session variables and Databind UJ Microsoft ASP .NET 4 18th May 2005 04:43 PM
databind to variables from request.quersting in aspx page (not code behind) Martin Microsoft ASP .NET 1 22nd Sep 2004 02:27 AM
Page.DataBind() =?Utf-8?B?SmltIEhlYXZleQ==?= Microsoft ASP .NET 2 3rd May 2004 04:46 AM
What is Page.DataBind doing? For what is this useful? Andreas Klemt Microsoft ASP .NET 1 14th Jan 2004 01:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:05 PM.