How to Separe TabContainers Post back

Posted by Jayakumars under ASP.NET on 5/10/2011 | Points: 10 | Views : 1438 | Status : [Member] [MVP] | Replies : 1

I have design Ajax Tabcontainer 4 tab First page i am using RequiredFieldValidator but i m go to 3 tab click button event my 4 tab page didnot
postback because first page i m using validation so how to rectify this
i need most urgent. how to handled tabcontainers event separate postback how to handled.

Mark as Answer if its helpful to you


Posted by: Sushilkumar.sush on: 5/10/2011 [Member] Starter | Points: 25


Hi R.Jayakumar ,
Instend of using RequiredFieldValidator Use the JavaScript Validation
for using the validation of control.
Like this way.
 Java Script Code

function txtlblTo() {
var RetValue = true;
var txtTo = document.getElementById('<% = txtTo.ClientID %>');
if (txtTo.value == '') {
document.getElementById('<%= rfvFirstname.ClientID %>').innerHTML = "Please Enter Email ID";
document.getElementById('<%= rfvFirstname.ClientID %>').style.display = "block";
changeBorderToOrange(txtTo, "Error")
RetValue = false;
else {
changeBorderToOrange(txtTo, '')
document.getElementById('<%= rfvFirstname.ClientID %>').style.display = "none";
RetValue = true;
return RetValue;
aspx Code.
<asp:TextBox ID="txtTo" runat="server" onblur="return txtlblTo()" onkeypress="return charEntered();"
CssClass="TextBox1 TypeWidth3"></asp:TextBox>

I hope You will get help from this.

Sushilkumar Shinde

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response