Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 16th, 2007, 03:27 AM
Registered User
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dhurjati_sen Send a message via Yahoo to dhurjati_sen
Default Posting a page from AJAX Tab Control

I have an ASPX page where i do have an AJAX TAB CONTROL.

In one of the panels in the tab i have two ASP TEXTBOXes and an ASP BUTTON.


For the button i have set the CAUSESVALIDATION option to TRUE.

Now when i am trying to post the page it is doing nothing, by nothing i mean no event is fired, but when i am setting the CAUSESVALIDATION to false it is posting the page but none of the validation controls are working.

Is there any way to keep the causesvalidation set to true and post the page.
Is there a way to
Old August 20th, 2007, 12:37 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

It sounds like the problem is that you have a validation control on a tab that is not visible. The control is firing on invalid input, but you can't see it. This was a known problem with ASP.NET 1.1.

If you are in ASP.NET 2.0 you can try setting the ValidationGroup attribute of the appropriate controls. This isolates the validations into groups so that only certain validators fire based on the control causing the postback. In your case, create a group for each tab so that only the postback controls on the visible tab would trigger validation for those controls on the same tab.

Old August 20th, 2007, 11:05 PM
Registered User
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dhurjati_sen Send a message via Yahoo to dhurjati_sen


The problem is not this, in the tab panels i have form where the user can submit his details. At the end i have a submit button for which i have the attribute CausesValidation = true. But the problem is that until and unless i make this attribute CausesValidation = false the page is not beiong posted back. Rather no event is being fired, even though all the items entered is valid.

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable a tab on a tab control. dbradley VB.NET 6 April 14th, 2011 10:04 AM
Posting String Array From one page to another page Samatha ASP.NET 1.0 and 1.1 Professional 1 December 6th, 2006 03:54 AM
AJAX form posting problem. NisarAhamed Ajax 0 November 21st, 2006 01:09 AM
Calendar Control with Tab Control Slicemahn Access 1 June 12th, 2006 10:35 PM
Posting data from Control to Page bmains ASP.NET 2.0 Basics 1 December 6th, 2005 08:08 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.