473,626 Members | 3,325 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validating Tabstrip with Multipage Control

hi all,
i am using tabstrip with multipage control in asp.net.i have put
some textboxes on the first tab.my requirement is that i whenever user
make somechanges in any of textbox and moves to next tab without saving
this data i want to display a alert message and stop user from moving
to another tab.
For this i have written a javascript function and called it
onSelectedIndex Change event.This function stops database processings
for the next tab but the html part get displays.
i just want not to allow user to change the tab if anything is unsaved
on current page.
please help me ....
Thanx in Advance
Sam

Nov 19 '05 #1
4 3123
This can be done by Group Validation.This feature is included in the ASP.NET
2.0.This can also be done in ASP.NET 1.x with slight changes(additio n) in
our web server controls.

Rgds,

"DotNetTech i" <ta************ *@yahoo.com> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.com...
hi all,
i am using tabstrip with multipage control in asp.net.i have put
some textboxes on the first tab.my requirement is that i whenever user
make somechanges in any of textbox and moves to next tab without saving
this data i want to display a alert message and stop user from moving
to another tab.
For this i have written a javascript function and called it
onSelectedIndex Change event.This function stops database processings
for the next tab but the html part get displays.
i just want not to allow user to change the tab if anything is unsaved
on current page.
please help me ....
Thanx in Advance
Sam

Nov 19 '05 #2

Thanx for your help.
but i am still not clear how can i prevent a user from naviagting to
next page without saving data on current page.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3
"Validation Groups" is the correct approach because it allows client-side
validation of a group of controls. In your case, those will be controls on a
single tab page.
Since ASP.NET 2.0 is not available yet, you cannot use this feature without
some clever hacks.

I wrote a replacement to Microsoft's validators that addresses its numerous
limitations and greatly expands validation. "Profession al Validation And
More" (http://www.peterblum.com/vam/home.aspx) includes validation groups
today. It also has 22 validators and they provide client-side validation on
many more browsers than just IE and IE/Mac that your current validators use.
It includes a utility to quickly migrate a page to my validators.

Here's how you would solve this with Professional Validation And More:
1. Convert the page using the utility
2. On each page, assign a name to the Group property of each validator. The
name should be the same across one tab page.
3. If you have a submit button on each tab page, set its Group property to
match.
4. If you have a submit button outside of the tabbed section, assign
Group="*" so it validates all pages.
5. In your onSelectedIndex Change event, call my function
VAM_ValidateGro up("[groupname]", true). It will return true if validation
succeeds. Always validate the group associated with the tabbed page.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlu m.com
Creator of "Profession al Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Sam Sam" <ta************ *@yahoo.com> wrote in message
news:uI******** ******@TK2MSFTN GP10.phx.gbl...

Thanx for your help.
but i am still not clear how can i prevent a user from naviagting to
next page without saving data on current page.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #4
what is "our web server controls"?

"V.Balaji" <vb*@iinterchan ge.com> wrote in message
news:Oz******** ******@TK2MSFTN GP12.phx.gbl...
This can be done by Group Validation.This feature is included in the ASP.NET 2.0.This can also be done in ASP.NET 1.x with slight changes(additio n) in
our web server controls.

Rgds,

"DotNetTech i" <ta************ *@yahoo.com> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.com...
hi all,
i am using tabstrip with multipage control in asp.net.i have put
some textboxes on the first tab.my requirement is that i whenever user
make somechanges in any of textbox and moves to next tab without saving
this data i want to display a alert message and stop user from moving
to another tab.
For this i have written a javascript function and called it
onSelectedIndex Change event.This function stops database processings
for the next tab but the html part get displays.
i just want not to allow user to change the tab if anything is unsaved
on current page.
please help me ....
Thanx in Advance
Sam


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2038
by: vikaskuk | last post by:
hi all, i am using tabstrip with multipage control in asp.net. i have put some textboxes on the first tab. my requirement is that whenever user makes some changes in any of textbox and moves to next tab without saving this data he should get alert message and should be stopped on current tab itself.
2
3142
by: floater55 | last post by:
So has anyone worked with the IE webcontrols much? I've found that they've come in very handy for Internet Explorer clients ... ON A WINDOWS PLATFORM ONLY! I've implemented the tabstrip control and it works out great (again only in IE on a PC). Does anyone have any suggestions for dynamically adapting this control to work with other browsers/platforms? Most specifically Safari on a OS X platform. The whole reason for my usage of this...
1
1543
by: szabelin | last post by:
Is it possible to dynamically add a PageView to MultiPage? TabStrip has items property, so Tab and TabSeparator can be added... how about adding PageView to MultiPage? If not possible please recommend another client-side tab control. Thank you
0
1525
by: Do | last post by:
Hi, I'm using the Microsoft IE Web Control for tabstrip. After a user enters some data and submits it, I want to activate another tab (and in making that tab active, I will also show another page (from multipage). How do I get at the tabstrip or multipage properties to set them? Do I set the selectedindex if I want it active?
0
1606
by: Greg Taylor | last post by:
I'm using the IE webcontrols (obviously) trying to dynamically generate a tabstrip based of a DTS package. I can get the tabstrip to show if I assign the generation after the page completely loads and I trigger the execution to a button/click/etc... However if I try to link the execution to onLoad I get "dynaPage is undefined." DynaPage being the multipage I create dynamically. Not sure why, and what I need to change to fix this. Any...
3
6158
by: DalePres | last post by:
I have an application that uses the Microsoft.Web.UI.WebControls.TabStrip and Multipage controls. When I test the app on my pc or on my client's development web servers the controls render properly. When I deploy the app to the test environment - supposedly an exact duplicate of the development environment - the TabStrip and Multipage controls do not render - the text of the tabs are displayed in a line, but no tabs. This is the same...
0
1031
by: sri_san | last post by:
Hello, I have a tabstrip/Multipage control. The data in the Multipage comes from the database. For some reason, even if the autopostbask is set to false, the tabtrip does a postback. Code outlined below: <iewc:tabstrip id="tabEditPendingSpInfo" autopostback="false" runat="server" Width="100%" TabSelectedStyle="background-color:#ffffff;color:Navy" TabHoverStyle="background-color:navy"...
9
8468
by: Phin | last post by:
Hi, I have spent some time trying to get the tabstrip and multipage to work (from the IE web controls). I read the article from: http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/tabstrip.asp On the bottom of the above URL there is a button that says "show me" where you can see the tabstip and multipage in action. On the "show me"
3
1140
by: Patrick.O.Ige | last post by:
I'm planning to use TABSTRIP as my Navigation menu for a HR Sysytem. As anybody used something similar and how did it go ? Any limitations etc..? Or a proposed MENU for a HR system? Advices are welcomes Thanks
9
2460
by: Mardy | last post by:
Hello I've been using the tabstrip and multipage controls and really like the way this combination allows users to switch between tabs without a postback. I'd like to get more detailed information about these controls but can only find basic information on the internet. In particular, I'd like to hide or disable tabs dynamically and I'm not sure how to do this. I'd appreciate any examples or insight.
0
8266
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8705
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8638
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.