Try something like this;

Sujit Patil replied to Sanjay Verma at 05-Jul-08 06:00

put one hidden button like

<asp:TextBox ID="txtchange" runat="server" AutoPostBack="true" onchange="javascript:onchange();" OnTextChanged="txtchange_OnChange"></asp:TextBox>
<input type="button" runat="server" id="hidbtn" style="display:none;" onserverclick="txtchange_OnChange" />

You can raise the same textchage event in button serverclick.

In clientside do this


function onchange()
    {     
         if(parseInt(value) > 100)
         {
                  alert('Amount is greater than 100!');
                  return false;           
         }
        else
         {
                  document.getElementById('hidbtn').click();
                  return true;
        }

    }

May be this will help you.

Or you can use __doPostBack(textBox.ID,null); also

Best Luck!!!!!!!!!!!!
Sujit.



Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  (Solved) :: Call Server / Client side TextChanged event together - Sanjay Verma  05-Jul-08 06:11 6:11:14 AM
      try this.... - Vasanthakumar D  05-Jul-08 05:39 5:39:32 AM
          Not working - Sanjay Verma  05-Jul-08 05:46 5:46:19 AM
              try this... - Vasanthakumar D  05-Jul-08 05:57 5:57:55 AM
                  It Worked. - Sanjay Verma  05-Jul-08 06:05 6:05:03 AM
                      cheers... - Vasanthakumar D  05-Jul-08 06:05 6:05:33 AM
      Try something like this; - Sujit Patil  05-Jul-08 06:00 6:00:50 AM
          Not working - Sanjay Verma  05-Jul-08 06:01 6:01:50 AM
View Posts

promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   


"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class