C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

TabContainer and validation


Posted Date: 16 Dec 2008      Posted By: s.sheela      Member Level: Silver     Points: 1   Responses: 3



Hi All,
Can you please help me to validate the textboxes in tab container(Ajax toolkit)
Thanks
Sheela





Responses

Author: divya    16 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

Hi

<cc1:tabcontainer id="TabContainer1" runat="server" activetabindex="0"><cc1:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1"><ContentTemplate>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox> <asp:Button id="Button1" runat="server" Text="Button"></asp:Button> <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage='"Enter Value"' ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</ContentTemplate>
<HeaderTemplate>
One
</HeaderTemplate>
</cc1:TabPanel>
<cc1:TabPanel runat="server" HeaderText="TabPanel2" ID="TabPanel2"><HeaderTemplate>
Two
</HeaderTemplate>
</cc1:TabPanel>
</cc1:tabcontainer>



Author: s.sheela    16 Dec 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 3

Hi Divya,
Thanks for your response. Is thier any way to validate each panel by using javascript.And also the validation has to be happen when the mouse over to the next control.
suppose if i am using five panels, atlast when i am submitting finish button, if the error in the first panel it should be displayed.
Thanks
Sheela



Author: divya    16 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 0

Hi sheela,
sorry,I dont know javascript.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Gridview Colspan (Code please)
Previous : Will caching works on same page
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use