473,396 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
onSelectedIndexChange 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 3111
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(addition) in
our web server controls.

Rgds,

"DotNetTechi" <ta*************@yahoo.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.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
onSelectedIndexChange 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. "Professional 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 onSelectedIndexChange event, call my function
VAM_ValidateGroup("[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****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Sam Sam" <ta*************@yahoo.com> wrote in message
news:uI**************@TK2MSFTNGP10.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*@iinterchange.com> wrote in message
news:Oz**************@TK2MSFTNGP12.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(addition) in
our web server controls.

Rgds,

"DotNetTechi" <ta*************@yahoo.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.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
onSelectedIndexChange 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
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...
2
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...
1
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...
0
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...
0
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...
3
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...
0
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 ...
9
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:...
3
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...
9
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.