| | |
Passing values from server-side code to html
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2006
Posts: 7
Reputation:
Solved Threads: 0
Hi. Stuck with some problem again. Here is the case. I have a sql server database table for storing users information. In the table there's a field called menu_link which stores menu URLs for my web application. This is to restrict which menus are viewable to authorized users. Those who are not are unable to see these menus on the home page. so in the page load of the home page i have this:
I'm supposed to store the data set results into the menuLink array. Then from this result, I need to code my HTML so that the links could be arranged in table form. As in <table><tr><td></td></tr></table>. I need to place the result menu links within the <td> tags. I really have no idea how to do this. Please help. Thanks alot.
ASP.NET Syntax (Toggle Plain Text)
Dim menuLink() As String mstrSql = "Select taskID, menu_link from EClinicUser where roleID like 'N & %' " Try If gmyConn.State = ConnectionState.Closed Then gmyConn.Open() End If mda = New SqlDataAdapter(mstrSql, "Links") mds = New DataSet mda.Fill(mds, "Links") Catch ex As Exception lblAlert.Text = ex.Message End Try
![]() |
Similar Threads
- Opinions? javascript/php/etc and programming standards (JavaScript / DHTML / AJAX)
- Server side sends HTML over HTTP to browser (HTML and CSS)
- HTML and Server Side Includes (HTML and CSS)
- What is server and client side code? (ASP.NET)
- How to call a ServerSide Script through Javascript (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Please help me with my javascript popup window!
- Next Thread: MSSQL and ASP Query
| Thread Tools | Search this Thread |
.net 2.0 ajax alltypeofvideos appliances application asp asp.net bc30451 beginner box browser button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview gridview gudi iis javascript listbox login microsoft mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent problem radio redirect registration relationaldatabases reportemail save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





