Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - auto-populate
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

auto-populate

 Post Reply Post Reply
Author
a_roy View Drop Down
Newbie
Newbie


Joined: 27 June 2008
Location: minneapolis
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote a_roy Quote  Post ReplyReply Direct Link To This Post Topic: auto-populate
    Posted: 27 June 2008 at 8:40pm
Hi all,
 
 I am trying to design a web based form in ASP.NET, this is what i want.
 
when the user clicks on an item from a pull down menu, i want that to be listed in a dynamically generated text box with a check box next to it for approval.
e.g. when the user selects five different items from the pull down menu then i want all five of them listed in a column( preferrably) with check boxes next to each of them.
 
i am totally new to asp.net C# , working as an intern , so any help or hints would be really helpful. Looking forward to replies.
Thanks
Andy
Back to Top
Videoediting View Drop Down
Newbie
Newbie
Avatar

Joined: 30 July 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Videoediting Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2008 at 12:50pm
You can do this buy using javascript;

Here is the code for generating dynamic textbox
function abc(){
var myTable=document.getElementById('myTable');
var lastRow=myTable.rows.length;
var val='';
var rows = myTable.getElementsByTagName('tr');
var cels = rows[lastRow-1].getElementsByTagName('td');
var row = myTable.insertRow(lastRow);

var cell = row.insertCell(0);
var el = document.createElement('input');
el.setAttribute('type', 'text');
el.setAttribute('name','addte');
val='d'+lastRow;
el.setAttribute('id','d'+lastRow);
cell.appendChild(el);
}

similarly add lines to this function to generate dynamic checkbox.
Call this function on the click event on the item of the pull down menu.

Cheers,

SPBig%20smile
http://www.videoediting-direct.co.uk
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.