This is the code I have at this moment:
Public Class ColoredDropDownList
Inherits System.Web.UI.WebControls.DropDownListProtected Overrides Sub RenderContents(ByVal writer As System.Web.UI.HtmlTextWriter)
Dim ...etc..
MyConnection = New SqlConnection(connectionstring)
MyCommand = New SqlDataAdapter("SELECT bgcolor FROM buffer WHERE page='" + Session("fileName").ToString() + "'", MyConnection)
I hope someone can help me. Thanks!You can access them inside a control via Context property which returns reference to the current HttpContext. To access Request or Session that would be Context.Request or Context.Session and so on.
0 comments:
Post a Comment