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 5984533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:23:24+00:00 2026-05-22T22:23:24+00:00

I have a page that dynamically generates any number of divs.  Inside the div

  • 0

I have a page that dynamically generates any number of divs.  Inside the div is a bunch of user information with a text area and a button to close out the record.  Please take a look at the HTML here (I’ve stripped out all the stuff not required to answer my quest):

 <form action="/Recruiter" method="post"> 

 <span id="1" class="underline" >Click Here</span>
 <div id="notes_1" style="display: none;">
   <textarea cols="30" id="PostBodyText" name="PostBodyText" rows="10"></textarea>
 </div>

 <input id="btnCloseOut" type="submit" name="Command" value="Close out" title="Close out."/>
 <input type="hidden" name="recruiterQueueId" value="2" />
 <input type= "hidden" name="queueRecordId" value="1" />

 <span id="2" class="underline" >Click Here</span>
 <div id="notes_2" style="display: none;">
   <textarea cols="30" id="PostBodyText" name="PostBodyText" rows="10"></textarea>
 </div>

 <input id="btnCloseOut" type="submit" name="Command" value="Close out" title="Close out."/>
 <input type="hidden" name="recruiterQueueId" value="2" />
 <input type="hidden" name="queueRecordId" value="2" />

 <span id="3" class="underline" >Click Here</span>
 <div id="notes_3" style="display: none;">
   <textarea cols="30" id="PostBodyText" name="PostBodyText" rows="10"></textarea>
 </div>

 <input id="btnCloseOut" type="submit" name="Command" value="Close out" title="Close out."/>
 <input type="hidden" name="recruiterQueueId" value="2" />
 <input type="hidden" name="queueRecordId" value="3" />

And finally here’s the what the controller piece that gets posted to looks like:

[HttpPost] 
    public ActionResult Index(int recruiterQueueId, int queueRecordId, string postBodyText)
    {
        CloseOutQueueRecordResponse response =
            checkInService.CloseOutQueueRecordRequest
            (
                new CloseOutQueueRecordRequest()
                {
                    RecruiterQueueId = recruiterQueueId,
                    QueueRecordId    = queueRecordId,
                    CloseOutNotes    = postBodyText
                }
            );
            // details ommitted...

}

The problem is the information from the first div is always posted no matter which button I hit. I’m not complaining about that, that’s what it should do.
I’m just looking for ideas/suggestions on how to post the information I want

OR

… the other thing I wsa thinking was inside of a button using an @Html.ActionLink …. this almost worked for me. I was able to get the appropriate IDs to the controller, but I’m not yet able to extract the contents of the text area in this case… 

 

Any tips/suggestions?

  • 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-22T22:23:25+00:00Added an answer on May 22, 2026 at 10:23 pm

    If you are only interested in the data from one “div”, you could create a form for every div. Only the data from the form the submit button is in, will be posted.

    Also: The ID’s of every element should be unique. So you should work on that to. You do not have to supply an ID.

    The names do not have to be unique. If you are using multiple forms you will be fine.

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

Sidebar

Related Questions

I have a page that is basically this: <div id=thelist style=height:100%; width:100%></div> <script type=text/javascript>
I have an ASPX page that is dynamically creating a gridview from a database
I have a page that has fields dynamically loaded via JQuery. It allows a
I have a .Net application that dynamically creates a small HTML page and pops
I have a page that contains a user control that is just a personalized
I have a selection list that is generated dynamically, it lists a number of
I have a page that is generated dynamically via the URL (GET Method). This
I have some static html content (included on a dynamically generated page) that I
So I have an .aspx view that dynamically adds validation images to the page
I have a page that searches a database and generates the following array. I'd

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.