Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6735253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:59:14+00:00 2026-05-26T10:59:14+00:00

I have a gridview with row selection which should set the page’s elements value

  • 0

I have a gridview with row selection which should set the page’s elements value by the selected id… When I press the row, I want my (ajax-editable)combobox to change its value(index) by the data turning from async page. I tried almost everything… Please need urgent help… 🙁

function VeriYaz(id) {
        $.ajax({
            type: "GET",
            url: "VeriAl.aspx",
            data: "id=" + id,
            async: false,
            success: function (data) {
                var urunler = data.split('|');
                document.getElementById('<%= cmbkategori.ClientID %>').value = stripHTML1(urunler[0]);}
        });
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:59:15+00:00Added an answer on May 26, 2026 at 10:59 am

    You can use the val([value]) function to set the selected value with jQuery:

    $("#<%=DropDownList1.ClientID%>").val("1");
    

    EDIT

    If you want to set the selected value based on the data returning from your AJAX call, you should be able to do this:

    $("#<%=DropDownList1.ClientID%>").val(stripHTML1(urunler[0]));  
    

    To set the selected item by the text, you can do this:

    $("#<%=DropDownList1.ClientID%> option:contains(" + stripHTML1(urunler[0]) + ")").attr("selected", "selected");
    

    EDIT

    It sounds like you’re using the AJAX Toolkit ComboBox, in which case you can try something like this:

    $find("<%=ComboBox1.ClientID%>").get_textBoxControl().value = stripHTML1(urunler[0]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a gridview which is databound, I want to dynamically add a row
i have a databound GridView in asp.net 2.0 with a row-selection link. When a
I have GridView which I can select a row. I then have a button
I have a GridView in which each row has a custom view. The grid
Have a gridview control which will show X amount of rows. I want to
I am deleting a row from gridview for which i have used gridview's default
I have asp.net's .aspx page. that have GridView let say GridViewParent and Each row
I have a Javascript object that basically represents a Row in an .NET GridView.
I have an ajax control toolkit modal popup on my page and in that
I have a gridview control with delete asp:ImageButton for each row of the grid.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.