|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Determine Recordset Attribute Type
I am creating an ASP page for members of my team to add and delete records from specified tables. This table is choose by the user and I am dynamically creating text boxes. I also wish to include the type of the attribute to assist the user. Can anyone help?
<% for s_intCounter=0 to objRs.Fields.Count -1 %><tr> <td width="34%"><% objRs.Fields.Item(s_intCounter) %>: <input type="text" id = <% objRs.Fields.Item(s_intCounter) %> > </td> <td width="66%">Type: <% INSERT ASP FOR RETRIVING TYPE</td> </tr> <%next%> |
|
#2
|
||||
|
||||
|
well if you are using MS SQLServer you could do it this way, though its not too efficient
slqstatement="sp_columns tablename" and then just access the 6th record in the set so it would be something like <%=RS(5)%> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Determine Recordset Attribute Type |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|