The codebehind is the C# code, the callback is a Javascript function. Or 
maybe I didn't quite get your question.

if you have something like :
//C#
textBox.Attributes["onchange"]="test(this)"

[AjaxPro.Method]
public string test(id string) {
    return id;
}

//Javascript
function test(textBox)
{
    DefaultPage.test(textBox.id,cb_test);
}

function cb_test(response) {
    var textBox=document.getElementById(response.request.args.id);
    [...]
}

You cannot send directly the textbox to an AjaxPro method as it is self 
referencing.

Hope it helps
____________
Costin Manda
ECRM Europe
----- Original Message ----- 
From: "Wasim" <[EMAIL PROTECTED]>
To: "Ajax.NET Professional" <[email protected]>
Sent: Tuesday, September 19, 2006 1:14 PM
Subject: [ajaxpro] Getting HTML Control values


>
> Hi, I'm creating a feedback form that hase the name,email and enquiry
> html textboxes. The from is processed through a callback. Now in my
> code behind (Callback method) how can i access the values entered by
> the user?
> Please help. Thank you


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to