Share

Ajax.NET

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

I need help for asp.net using in Ajax

You are viewing a single message from this topic. View all messages.

  1. 2005-09-14 15:41:23 UTC
    Dear sir:
    I 'm writing a asp.net application.In this program,I writed aspx code like this:

    <asp:dropdownlist id="testDemo" ..../>

    then,I write a ajax.net method for set the dropdownlist's value.the client js code like this:
    ..
    newOption.text=res.value.Tables[0].Rows[i].Description;
    &#12288;&#12288; newOption.value=res.value.Tables[0].Rows[i].ProvinceID;
    &#12288;&#12288; drp2.options.add(newOption);
    ....
    so,I got the dropdownlist like I wanted.but when I want get the value of dropdownlist in aspx code,I lose! The aspx code just like this:(vb.net code)

    ..
    ProvinceID = testDemo.SelectedValue
    ..
    I can't get the testDemo's value,it seems that the javascript code can't affect the aspx code.

    How can I do? the Ajax code can't integrate with asp.net easily???

    please help me!


< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.