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

  • Home
  • SEARCH
  • 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 8580017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:44:12+00:00 2026-06-11T20:44:12+00:00

In a user control I have an unordered list that contains items showing editable

  • 0

In a user control I have an unordered list that contains items showing editable file data.

I create these items in my javascript using a JSON string set in a hidden field when the page is loaded or when the controlling element (AJAX async file upload) performs it’s OnClient_UploadComplete function.

Everything I have is solid so far: the items are created on the client side, and I can get any values changed using an existing hidden field and transfer the data back to a BL object when I need it.

My problem is that during the server-side On_UploadComplete function, my server code cannot find any of the dinamically created items created by my javascript to add essential data to the new item.

I have to be missing something. The value I get from the control is "/r/n"..

My best guess is that my c# code is set up wrong. On the page, to find the ul I have:

Control m_ulFileItems = m_fuPhotoUpload.FindControl("m_ulFileItems");

I’ll do some more loking, but this is an important aspect of getting this control to work.

  • 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-06-11T20:44:13+00:00Added an answer on June 11, 2026 at 8:44 pm

    I do not have any idea how you could be able to access these controls on server side. However, what I would suggest is that you pass their values from client to server, perhaps like this:
    $.ajax({
    url: …,
    type: …,
    data: ids and values from your controls in json format
    });

    Here are some more details:
    if this is the HTML:

    <div>
        <div id="placeHolder"></div>
        <input type="button" value="Submit" onclick="submit();" />
    </div>
    

    And I have added some text boxes the following way:

        $(document).ready(function () {
            for (var idx = 0; idx < 10; idx++) {
                $('<input class="myInput" type="text" />').appendTo($('#placeHolder'));
            }
        });
    

    Then this should work:

        function submit() {
            var jsonInput = '{';
            var inputList = $(".myInput");
    
            for (var idx = 0; idx < inputList.length; idx++) {
                jsonInput = jsonInput + 'txt_' + idx + ': ' + $(inputList[idx]).val() + ',';
            }
    
            jsonInput = jsonInput.substring(0, jsonInput.length - 1);
            jsonInput = jsonInput + '}';
            alert(jsonInput);
    
            $.ajax({
                url: "WebForm1.aspx/HandleSubmitClick",
                data: jsonInput
    
            });
        }
    

    Hope it helps.

    If you do not like the Ajax call to the server I can suggest to use a hidden control, and put that string into the hidden control before you go to the server. Then you will be able to take the value of that hidden control on the server side.

    Anyway, this is the basic idea – collect and prepare the data on the client side, then send it to the server side somehow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a user control that displays a list of categories. In that user
I have a user control I have created that contains a details-view that I
I have code that adds list items to an unordered list, and associated with
I have an ObservableCollection that is created in user control that contains a custom
within my current project file I have a user control that has a storyboard
I have an User Control that host another controls like panel, chart controls. Right
I want a create a custom/user control that has children. For Example, I want
I have a user control which contains the following code: <form id=CurrencyForm method=post runat=server>
Inside my user control I have a collection call Solutions public List<string> Solutions {
First, I'm really new to Asp.Net Ajax I got an user control that have

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.