Monday, March 26, 2012
Please Help - me
I have a table which contains all the sub folders for my drop down menu...
when the mouse goes over the menu, the sub folders are displayed,
the problem is that the sub menu tables are displayed behind everything
else...
How can i change it to be displayed on Top'
thanks
AdamPC@dotnet.itags.org.hotmail.comUse the CSS style z-index.
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.
"ACaunter" <AdamPC@.hotmail.com> wrote in message
news:6489CE5A-EA20-41C2-BC4D-AE09A269795C@.microsoft.com...
> Hi there
> I have a table which contains all the sub folders for my drop down menu...
> when the mouse goes over the menu, the sub folders are displayed,
> the problem is that the sub menu tables are displayed behind everything
> else...
> How can i change it to be displayed on Top'
> thanks
> --
> AdamPC@.hotmail.com
Please Help - me
I have a table which contains all the sub folders for my drop down menu...
when the mouse goes over the menu, the sub folders are displayed,
the problem is that the sub menu tables are displayed behind everything
else...
How can i change it to be displayed on Top??
thanks
--
AdamPC@dotnet.itags.org.hotmail.comUse the CSS style z-index.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"ACaunter" <AdamPC@.hotmail.com> wrote in message
news:6489CE5A-EA20-41C2-BC4D-AE09A269795C@.microsoft.com...
> Hi there
> I have a table which contains all the sub folders for my drop down menu...
> when the mouse goes over the menu, the sub folders are displayed,
> the problem is that the sub menu tables are displayed behind everything
> else...
> How can i change it to be displayed on Top??
> thanks
> --
> AdamPC@.hotmail.com
Please help - retrieving session variable before pageload sub
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.
I am using session variables fine in other parts of the program but I'm reading them after the page load.
<%@dotnet.itags.org.Import Namespace="System.data.SqlClient" %>
<%@dotnet.itags.org.Import Namespace="System.data" %>
<script runat="server">
Dim SQLCmd as string
Dim dbConn = Session("UserConnectionString")
Sub Page_Load
...
Thanks!Just set the enableSessionState to true.
If that dosen't work, just pass the conn string in to the URL, less secure though.
Thanks for the reply! I can't use a querystring in this instance and I've tried putting a PAGE directive with enablesessionstate but it didn't work. The session variable becomes available after the pageload so I think that session state is enabled.
Any more help would be greatly appreciated!
Wednesday, March 21, 2012
Please help me find a solution
1. I want to build a tree view structure which dynamically maps the dirs and sub dirs on the server. In another word, if the directory/folder structure on the server has been updated, then it shows dynamically/automatically on my web page.
2. I want user to be able to save word document as .html file under the server directory, so that when I click the node of treeview on my web page, the word document could be shown up in the right panel of the web page.
what is the best way to implement it? I have these available:
a.)asp.net /asp
b.)vb.net /vb
c.)write activex control using vb or vb.net then embed it into the web page.(I don't like activex control though)Any from a and b would do. Just remember that asp goes with vb and asp goes with vb.net, the way you have written it looks as if you may be a little confused here.
Friday, March 16, 2012
Please Help me understand how this works......
Hi. I have this code below and wondering what file I need to import to get the pageContentsCell.Controls.Add(control) line to work.
Private Sub Page_Load(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles MyBase.Load,Me.Load' Save DepartmentID from the query string to a variableDim departmentIdAs String = Request.QueryString("departmentID")' Save the search string from the query string to a variableDim searchStringAs String = Request.QueryString("Search")' We need to find out if the ViewCart parameter has been suppliedDim viewCartAs String = Request.QueryString("ViewCart")' Load page contentsIf Not viewCartIs Nothing Then' we display the shopping cartDim controlAs Control control = Page.LoadControl("UserControls/ShoppingCart.ascx") pageContentsCell.Controls.Add(control)ElseIf Not searchStringIs Nothing Then' you're searching the catalogDim controlAs Controlcontrol = Page.LoadControl("UserControls/SearchResults.ascx") pageContentsCell.Controls.Add(control)ElseIf Not departmentIdIs Nothing Then' you're visiting a department or categoryDim controlAs Controlcontrol = Page.LoadControl("UserControls/Catalog.ascx") pageContentsCell.Controls.Add(control)Else' you're on the main pageDim controlAs Controlcontrol = Page.LoadControl("UserControls/FirstPage.ascx") pageContentsCell.Controls.Add(control)End If End Sub Private Sub viewCartButton_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles viewCartButton.Click' Get the query string as a NameValueCollection objectIf Request.QueryString("ViewCart")Is Nothing Then Response.Redirect("default.aspx?ViewCart=1&" & _ Request.QueryString.ToString())End If End SubWhat's the error message you got for the linepageContentsCell.Controls.Add(control)? You may take a look atCreating Custom Web Controls with ASP.NET 2.0