Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > LoadControlState Event Not Firing?

Reply
Thread Tools

LoadControlState Event Not Firing?

 
 
seraphimrhapsody@gmail.com
Guest
Posts: n/a
 
      05-23-2006
Hello all,

I've created a custom control that inherits CompositeControl for the
purpose of extending the gridview and using dynamically created
dropdowns to filter that gridview.

My main problem is persisting the dropdowns' values across postbacks,
so I thought that control state would be perfect for this issue (since
it's required for the control to function properly).

After reading countless tutorials and blogs and newsgroups posts about
the subject, I'm finally at my wits end. I seem to have setup
everything correctly, and my SaveControlState() event fires as
expected, but the LoadControlState() event never fires at all.

I've posted my fully commented code here: http://pastebin.com/733065

Am I missing something? Did I not require it correctly? Is that
statement in the incorrect place?

Thank in advance for anyone's help!
--SeraphimRhapsody

 
Reply With Quote
 
 
 
 
seraphimrhapsody@gmail.com
Guest
Posts: n/a
 
      05-23-2006
Also, the implementation of using this control would look something
like this:

cc1:FilteredGV ID="FilteredGV1" runat="server" SelectCommand="select *
from companies where (([ID] like @ID) AND ([CompanyName] like
@CompanyName) AND ([SubmitName] like @SubmitName))"
ConnectionString="Data Source=dev;Initial
Catalog=myDB;Persist Security Info=True;User ID=sa;Password=*****" >
<Parameters>
<asp:ListItem value="ID"></asp:ListItem>
<asp:ListItem value="CompanyName"></asp:ListItem>
<asp:ListItem value="SubmitName"></asp:ListItem>
</Parameters>
</cc1:FilteredGV>

 
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
TkInter bind() event is not firing event trigger Anthony Papillion Python 3 06-23-2010 12:55 AM
LoadControlState not being fired K Viltersten ASP .Net 0 06-17-2009 03:58 PM
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
PreRender Event occurs immediatley after Load event =?Utf-8?B?QWxpcmV6YSBaaWFp?= ASP .Net 1 02-09-2004 10:19 AM
Event On Form From Control Event Dave Wurtz ASP .Net 1 12-09-2003 10:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57