CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 11/27/2004 8:19:15 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
torhp
Asp.Net User
Saving ViewState of a modified control11/27/2004 8:19:15 PM

0/0

Hello again!!

I've extended the LinkButton control to also have an attribute which indikates wether it is aktivated or not. (bool isActivated). The class is called Menu_Item. i got an click event which changes the value betwen true and false. the isActivated is used to determine if sub menu items should be placed under the main Menu_Item.

But my problem is i can't save the value of isActivated when a postback occurs.
i've tried to save it to ViewState


Menu_Item m = new Menu_Item;
ViewState["menu_item"] = m;


and i've also tried to implement the IPostBackDataHandler but i don't know how too use
this interface. have read the KB at msdn.com but i can't make any sense of it..

anyone got a solution on how to save all the attributes in my new class on postback.

in advance thanx
joteke
Asp.Net User
Re: Saving ViewState of a modified control11/28/2004 1:32:09 PM

0/0

Hi,

post the code you have. It's easier to help you this way after seeing the code.
Thanks,

Teemu Keiski
Finland, EU
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Programming Visual Basic 2005 Authors: Jesse Liberty, Pages: 548, Published: 2005
Programming Visual Basic .NET Authors: Jesse Liberty, Dave Grundgeiger, Pages: 541, Published: 2003
Developing .NET Custom Controls and Designers Using Visual Basic .NET Authors: James Henry, Pages: 600, Published: 2005
MCAD/MCSD Training Guide (70-315): Developing and Implementing Web Applications with Visual C# and Visual Studio. NET Authors: Amit Kalani, Pages: 1200, Published: 2002
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
MCAD/MCSD.NET: Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Authors: Mike Gunderloy, Pages: 1104, Published: 2003

Web:
ViewState and Custom Control - ASP.NET Forums DO we have to manually load and save viewstate in custom ctrls? .... view state only if the property is modified after initialization. ...
Issue with ratings control saving it's state in the view state ... Issue with ratings control saving it's state in the view state when ... I modified the AjaxControlToolkit Ratings Control example to use a placeholder ...
CodeProject: ViewState management using AOP - PostSharp4ViewState ... Sep 20, 2008 ... How to automate ViewState and control state management using AOP ... How to compress the ViewState of ASP.NET pages and save bandwidth. ...
ASP.NET.4GuysFromRolla.com: Dynamic Web Controls, Postbacks, and ... Sep 29, 2004 ... View state is utilized when a control's state - its properties - are modified programmatically. Recall that in the Instantiation stage, ...
ViewState :: DotNetJohn The Control.ViewState property is associated with each server control in ... whether someone has modified the contents of the ViewState in an attempt to ...
Yakko Warner: ASP.Net, Dynamic Controls, and ViewState (oh my) The controls in the placeholder could be modified as a result of some control event, but it really doesn't matter. The part that controls saving and ...
Server Control Properties Example The Control class implements the logic for saving and loading the modified items in the ViewState dictionary in its SaveViewState and LoadViewState methods. ...
Controls and ViewState out of sync (?) - .NET ASP the modified text value below doesn't save to the ViewState (why? .... set viewstate to false in the parent control it will be turned off in ...
Efficient Server-Side View State Persistence Aug 5, 2008 ... Then we're serializing BOTH the view state and control state to a ... Cache, and save the view state key to a hidden field to the page. ...
p2p.wrox.com Forums - how do i get the first viewstate of the page ... If you want to save the very first value of any control that is changed, you'll need to save it off manually. You can access the viewstate ...




Search This Site:










can some one please tell me if im right?

access version of the ecommerce starter kit

simple globalization/localization question

aspx doesn't get processed

access admin tool

login failed for user 'tb950\aspnet'

unknown error 0x800cc810

problem with productdetails page

generate thumbnails on the fly

commerce starter kid upgraded–free production site

view a datagrid instead of datalist

reviewlist doesn't get correct productid

everyone having cooking problems - no one has answers?

applicationblocks issue

directions on line shop

test connection unsuccessful

multbyte characters replaced to ??????

how does the software redirect to login.aspx?

paypal commerce kit

ozmcart modders unite~

join our team to develop the professional e-commerce kit from csk

cannot run the ibuyspy store application

textbox removes special characters(åäö)

just email the order

deployment

credit card w/starter kit

how do you remove "review this product" from product detail page?

need a push in the back......new(whanna)be!!!!

am i missing something, commerce starter kit

shopping cart - problem with update.

  Privacy | Contact Us
All Times Are GMT