tags:

views:

65

answers:

1

I have a login screen wheren i have 2 text boxes and 2 radio buttons.I have a ASP.NET button too.When the user clicks on the button in my codebehind, in the click even of button ,i have the below lines to check the user login

    string emailId=txtEmailId.Text.Trim();
    string password=txtPassword.Text.Trim();
    //Code to Check user is valid...
      if(isValid)
      {
         Response.Redirect("index.aspx");
      }
      else
      {
        lblMSg.Text="InValid Login";
       }

This is the typical ASP.NET procedure.Now i want to avoid the post bak of the page and would like to use jQuery's form posting.Can any one guide me how to do it ? HEre i can read the ASP.NET controls value as "=txtEmailId.Text" . Can i do it in jQuery form posting method.I know i can do this by passing emailid and password as query string.Now I dont want to use query string to do this. Any thoughts ??

Thanks in advance

A: 

use $.Post to post back to your page http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype

Expose your method as a service method so that you can call it in the format "pagename.aspx/methodname"

Rony
how can i read my text box there in the processing page ?
Shyju
some info about it here: http://forums.asp.net/t/1439512.aspx
russau