Welcome Guest Search | Active Topics | Sign In | Register

Capturing Data from View Before PageLoad caused by Tab Options
Don Habibi
Posted: Friday, March 4, 2011 1:00:32 PM
Rank: Newbie
Groups: Member

Joined: 2/5/2009
Posts: 1
Probably a simple way to do it but I need to capture my data from the view before the tab control has caused a PageLoad for the new View. By this point the data in the fields are lost. Trying to get the ClientSideOnItemClick to call a method, not happening.

Also need to dynamically change the items in the EO:Tab control, adding new items and removing old one. Looking for sample code for this too.

Don
eo_support
Posted: Wednesday, March 9, 2011 8:54:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

ASP.NET automatically captures input controls data (for example, a TextBox) when you post back to the same page. All data are discarded if you navigate to another page (or even reload the same page). Neither case has anything to do with the TabStrip control. I would recommend you to use standard ASP.NET/HTML elements to get it working first, then put the TabStrip back in.

To dynamically create tab items, you would do something like this:

Code: C#
//Create a new tab item
EO.Web.TabItem newItem = new EO.Web.TabItem();

...setting newItem properties....

//Add it to the tabstrip
tabStrip1.Items.Add(newItem);


You can also call Remove on Items collection to remove a tab item. Please see class TabStrip, TabItemCollection and TabItem in the reference section for a complete list of what's available on these classes.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.