> Here's what I'm trying to do. I have a form with a text box called
> "accountNum". I have a label under that text box called "orgName".
[quoted text clipped - 8 lines]
> Thanks!
> Jeremy
>Let me clarify...I'm not trying to learn how to write the Web Service
>itself. I have that done already. What I'm needing is to return that
>result to a Label without hitting a submit button. You know, kind of
>like how the AJAX CascadingDropDown control works.
Use asynchronous client-side javascript methods to handle the
textbox's OnTextChanged event. The script can call the web service
when the Enter key is pressed.
I do not like the idea of calling a web service from client-side
scripting. Too much information is publicly exposed about something
that may need to be a private resource. Instead I would call a page
specifically designed for the task and pass the text in the query
string.
protected void Page_Load(object sender, EventArgs e)
{
string textboxText = Request.QueryString["TextboxText"].Trim();;
string labelText - getLabelText(textboxText);
Response.Clear();
Response.Write(labelText);
Response.End();
}
Doing this keeps the async call within the scope and security of the
session.
>On May 22, 9:19 am, cap...@gmail.com wrote:
>> Here's what I'm trying to do. I have a form with a text box called
[quoted text clipped - 9 lines]
>> Thanks!
>> Jeremy
cappjr@gmail.com - 27 May 2008 21:13 GMT
> >Let me clarify...I'm not trying to learn how to write theWebService
> >itself. I have that done already. What I'm needing is to return that
[quoted text clipped - 40 lines]
>
> - Show quoted text -
Thanks for the reply. I'll give both a try.
cappjr@gmail.com - 27 May 2008 22:09 GMT
This does almost exactly what I want it to do!
http://www.semenoff.dk/en/Code-Corner/ASP.Net.AJAX/WebService-From-JavaScript.aspx
> >Let me clarify...I'm not trying to learn how to write theWebService
> >itself. I have that done already. What I'm needing is to return that
[quoted text clipped - 40 lines]
>
> - Show quoted text -