![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
As I do to fill out two droplist of different tables in the event open of the webforms. I get to fill out one, but when I try two says that cannot open another connection. |
#3
| |||
| |||
|
|
Can you provide some more details.... Is there any exception? The stacktrace and, preferably also, the code. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.org http://www.edujini.in ------------------- "Frank Dulk" <fdulk (AT) bol (DOT) com.br> wrote in message news:OR0VdS5fGHA.3456 (AT) TK2MSFTNGP05 (DOT) phx.gbl... As I do to fill out two droplist of different tables in the event open of the webforms. I get to fill out one, but when I try two says that cannot open another connection. |
#4
| |||
| |||
|
|
That is the code that I am sweating for filling out the dropdownlist1 with the records of the table1. How do I do to fill out other dropdownlist2 with the records of another table2? |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
I've been using a tool called the DataSet Toolkit to handle Fills and Updates of multiple DataTables like you're doing. It will manage your connection for you so you don't need to worry about creating a new one, and it will even write the SQL to fill your table at runtime, so you won't need to do that either. You can find it here: http://www.hydrussoftware.com John B. http://johnsbraindump.blogspot.com |
#7
| |||
| |||
|
|
Does he/she/you have how in the dropdownlist to show the name and does keep the id in the table, as if it was two columns? |
#8
| |||
| |||
|
|
Hi Frank, Does he/she/you have how in the dropdownlist to show the name and does keep the id in the table, as if it was two columns? Probably couldn't understand your question. Here's my understanding: Table1: id, name DropDownList: DisplayText => name Value => id eg: option value='1'>Gaurav Vaish</option where 1 is the value of the field id and "Gaurav Vaish" is the value of the field name. That should be trivial. ddl.DataTextField = "name"; ddl.DataValueField = "id"; -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.org http://www.edujini.in ------------------- |
#9
| |||
| |||
|
|
would have as in a text box to type +1 or -1 or +74 or... but would have to impose a limit up to +170 or -170 |
|
But has to have that mask.+ or - |
#10
| |||
| |||
|
|
would have as in a text box to type +1 or -1 or +74 or... but would have to impose a limit up to +170 or -170 Use javascript to validate the value. onchange (client side) event. But has to have that mask.+ or - That should be trivial. You would need even smarter / faster event -- onkeypress, again the client side. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.org http://www.edujini.in http://webservices.edujini.in ------------------- |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |