Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 16th, 2007, 03:27 AM
Registered User
 
Join Date: Jul 2007
Location: Kolkata, West Bengal, India.
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.

To the ASP TEXTBOX i have attached ASP REQUIREDFIELDVALIDATOR control.

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
Reply With Quote
  #2 (permalink)  
Old August 20th, 2007, 12:37 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.

-Peter
Reply With Quote
  #3 (permalink)  
Old August 20th, 2007, 11:05 PM
Registered User
 
Join Date: Jul 2007
Location: Kolkata, West Bengal, India.
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

Hi,

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.



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.