Passing values from server-side code to html

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 7
Reputation: danae is an unknown quantity at this point 
Solved Threads: 0
danae danae is offline Offline
Newbie Poster

Passing values from server-side code to html

 
0
  #1
Oct 24th, 2006
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:
  1. Dim menuLink() As String
  2.  
  3. mstrSql = "Select taskID, menu_link from EClinicUser where roleID like 'N & %' "
  4.  
  5. Try
  6. If gmyConn.State = ConnectionState.Closed Then
  7. gmyConn.Open()
  8. End If
  9. mda = New SqlDataAdapter(mstrSql, "Links")
  10. mds = New DataSet
  11. mda.Fill(mds, "Links")
  12.  
  13. Catch ex As Exception
  14. lblAlert.Text = ex.Message
  15.  
  16. End Try
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC