Click here to Skip to main content
15,887,596 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Viewstate Pin
Abhijit Jana23-Sep-09 21:58
professionalAbhijit Jana23-Sep-09 21:58 
Questionsql Pin
ritasaumya23-Sep-09 21:46
ritasaumya23-Sep-09 21:46 
AnswerRe: sql Pin
Vimalsoft(Pty) Ltd23-Sep-09 22:12
professionalVimalsoft(Pty) Ltd23-Sep-09 22:12 
AnswerRe: sql Pin
Manas Bhardwaj23-Sep-09 22:24
professionalManas Bhardwaj23-Sep-09 22:24 
AnswerRe: sql Pin
Christian Graus23-Sep-09 23:29
protectorChristian Graus23-Sep-09 23:29 
QuestionValidation Without Page Refresh . Pin
Priyagdpl23-Sep-09 21:36
Priyagdpl23-Sep-09 21:36 
AnswerRe: Validation Without Page Refresh . Pin
Abhijit Jana23-Sep-09 21:52
professionalAbhijit Jana23-Sep-09 21:52 
AnswerRe: Validation Without Page Refresh . Pin
Nisha Agrawal23-Sep-09 21:55
Nisha Agrawal23-Sep-09 21:55 
You can use the Generic Handler for this purpose. Just put ur whole logic to identify the duplicate email then call this handler via xmlhttprequest.


var xmlhttp;

function InitXmlHttpRequest() {

    xmlhttp = null;
    if (window.XMLHttpRequest) {
        // code for all new browsers
        xmlhttp = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        // code for IE5 and IE6
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
}


function CheckDuplicateEmail(url) {

    InitXmlHttpRequest();

    var handleStateChanged = function() {
        if (xmlhttp.readyState == 4) {  // 4 = "loaded"
            if (xmlhttp.status == 200) { // 200 = OK
                try {
                    alert("message from server : " + xmlhttp.responseText);
                }
                catch (e) {
                }
            }
            else {
                //alert("Problem retrieving XML data");
            }
        }
    };

    if (xmlhttp != null) {
        xmlhttp.onreadystatechange = handleStateChanged;
        xmlhttp.open("GET", url, true);
        xmlhttp.send(null);
    }
    else {
        //alert("Your browser does not support XMLHTTP.");
    }
}



now you can call this js method (CheckDuplicateEmail) on any event like textchangesd, lostfocus or keyup. Here the url is the Url of the Generic Handler u have created in previous step. The ResponseText will give you the data that u have returned from Generic Handler.

I hope it gonna help u.
QuestionProblem in firing event in firefox and google crome Pin
S.Aijaz23-Sep-09 20:44
S.Aijaz23-Sep-09 20:44 
QuestionContext menu in extended gridview is not working in Firefox [modified] Pin
Saritha Palekula23-Sep-09 20:17
Saritha Palekula23-Sep-09 20:17 
AnswerRe: Context menu in extended gridview is not working in Firefox Pin
sashidhar23-Sep-09 20:56
sashidhar23-Sep-09 20:56 
AnswerRe: Context menu in extended gridview is not working in Firefox Pin
Nisha Agrawal23-Sep-09 21:21
Nisha Agrawal23-Sep-09 21:21 
GeneralRe: Context menu in extended gridview is not working in Firefox Pin
Saritha Palekula23-Sep-09 21:34
Saritha Palekula23-Sep-09 21:34 
AnswerRe: Context menu in extended gridview is not working in Firefox Pin
Nisha Agrawal23-Sep-09 22:44
Nisha Agrawal23-Sep-09 22:44 
QuestionGlobal.ajax Pin
sris 42623-Sep-09 19:12
sris 42623-Sep-09 19:12 
AnswerRe: Global.ajax Pin
sashidhar23-Sep-09 19:37
sashidhar23-Sep-09 19:37 
AnswerRe: Global.ajax Pin
N a v a n e e t h23-Sep-09 19:56
N a v a n e e t h23-Sep-09 19:56 
GeneralRe: Global.ajax Pin
sris 42623-Sep-09 20:12
sris 42623-Sep-09 20:12 
GeneralRe: Global.ajax Pin
Abhijit Jana23-Sep-09 20:54
professionalAbhijit Jana23-Sep-09 20:54 
GeneralRe: Global.ajax Pin
sris 42623-Sep-09 22:06
sris 42623-Sep-09 22:06 
AnswerRe: Global.ajax [modified] Pin
Nisha Agrawal24-Sep-09 3:19
Nisha Agrawal24-Sep-09 3:19 
GeneralRe: Global.ajax Pin
Nisha Agrawal23-Sep-09 21:18
Nisha Agrawal23-Sep-09 21:18 
AnswerRe: Global.ajax Pin
Abhijit Jana23-Sep-09 20:04
professionalAbhijit Jana23-Sep-09 20:04 
QuestionDropDownlist Load Pin
Illegal Operation23-Sep-09 17:42
Illegal Operation23-Sep-09 17:42 
AnswerRe: DropDownlist Load Pin
Steve Echols23-Sep-09 17:50
Steve Echols23-Sep-09 17:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.