Thanks. Another tip that I get from compiler about the same error in the file where it errors out that statement, is that the "usp_filename has no parameters and arguments". The usp_filename is related to the file that errors, but I cannot seem to find the relationship. Are there any tips you...
The statement below errors out, says exception was not caught by the user. Any ideas what it could be?
Thanks.
...
Finally
' If the connection object is valid then close the connection
If conn IsNot Nothing Then
conn.Close()
End If...
Here is the code, if you want me to clean it up - let me know.
ASP.NET page:
Now that's relevant.
<%@ Page Language="VB" EnableSessionState ="true" AutoEventWireup ="true" %>
<script runat="server" >
Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)...
Ok, I have put code behind in ASP.NET page
<script>
Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Page.MasterPageFile = Session.Contents("myMaster").Value
End Sub
</script>
in the Master page I have put the code
<script>
Session.Contents("myMaster") =...
Isn't there a way just to do it something like this with syntax correction.
<%@ Page EnableSessionState ="True" Debug ="true" Language="VB" MasterPageFile ="~/home_<%=Request.Session.Content("mysession") %>.master" %>
I need to have multiple masters drivin by the session value.
I want the...
Sorry for being dense, but do you mean something like this.
Isn't there a way I can just pull the session value directly in the code line. But I'm sure this syntax is incorrect.
<%@ Page EnableSessionState ="True" Debug ="true" Language="VB" MasterPageFile...
I would like to replace the master name with a session value.
What would the proper syntax be to do this
<%@ Page EnableSessionState ="True" Debug ="true" Language="VB" MasterPageFile ="~/mysessionvalue.master" %>
Visual Studio Web Developer has not liked anyway I've tried to call it...
I was able to fix the problem. The builder of SQLDatabaseSource query gave me an option of choosing column1="QueryString" and column2="Session", when I was building the query using " choose data source " while creating a new SqlDatabaseSource binding.
The code I have so far and it works-
<!--...
What is the proper syntax for retrieving querystring in db query, if the querystring is in code behind?
Code that compiles but does not retrieve
<script runat = "server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim myvalue as String...
That's the code I use SqlDataSource with -
<asp:FormView
ID="FormView" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<asp:Label ID="label"
Text='<%# Bind("column2")%>'></asp:Label>
</ItemTemplate>
</asp:FormView>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.