Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ifntech
  • Order by date
  1. ifntech

    What does VB Error mean

    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...
  2. ifntech

    What does VB Error mean

    ... Catch SqlEx As SqlException ... This statement was before the expression. It might help.
  3. ifntech

    calling session variable within @page syntax for master name

    If you don't mind I will come back to this question in a few days. Thanks.
  4. ifntech

    What does VB Error mean

    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...
  5. ifntech

    calling session variable within @page syntax for master name

    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)...
  6. ifntech

    calling session variable within @page syntax for master name

    I have a few pages with <asp:Content></asp:content> they inherit the master page.
  7. ifntech

    calling session variable within @page syntax for master name

    Code in ASP page <%@ Page Language="VB" EnableSessionState ="true" AutoEventWireup ="true" %> Code in master page <%@ Master Language="VB" %>
  8. ifntech

    calling session variable within @page syntax for master name

    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") =...
  9. ifntech

    calling session variable within @page syntax for master name

    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...
  10. ifntech

    calling session variable within @page syntax for master name

    I looked at that but unsure how to make the dynamic masterpage file within the code. Unsure on how that is added to the current code.
  11. ifntech

    calling session variable within @page syntax for master name

    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...
  12. ifntech

    calling session variable within @page syntax for master name

    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...
  13. ifntech

    querystring query with code behind

    ...ConnectionStrings:testConnectionString1 %>" ProviderName="<%$ ConnectionStrings:testConnectionString1.ProviderName %>" SelectCommand="SELECT * FROM [table1] WHERE (([table1.column1] = @column1) AND ([id] = @id))"> <SelectParameters> <asp:SessionParameter DefaultValue="session"...
  14. ifntech

    querystring query with code behind

    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...
  15. ifntech

    calling querystring within a db query syntax

    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>
  16. ifntech

    calling querystring within a db query syntax

    ...%>" ProviderName="<%$ ConnectionStrings:testConnectionString1.ProviderName %>" SelectCommand="SELECT * From table WHERE (table.column1 = N'&MyValue&'"> <SelectParameters> <asp:QueryStringParameter Name="MyValue" QueryStringField="value"...
  17. ifntech

    calling querystring within a db query syntax

    I have looked at the link. Even added as bookmark. This code is not recognized by the web developer 2005. It doesn't even compile with ' " & myvalue & " ',it errors it out. But the variable ' & myvalue & ' compiles. The code you gave, again, compiles, but does not retrieve the query from...
  18. ifntech

    calling querystring within a db query syntax

    ...%>" ProviderName="<%$ ConnectionStrings:testConnectionString1.ProviderName %>" SelectCommand="SELECT * From table WHERE (table.column1 = N'<%= myvalue %>'> </asp:SqlDataSource> Are there any changes to be made for retrieving information from the query?
  19. ifntech

    calling querystring within a db query syntax

    I have taken a look on parametrized queries, and tried code: <%= myvalue %> <# myvalue %> <# Eval(myvalue) %> <# Text(myvalue) %> <# Bind(myvalue) %> They all compile but don't show the query information at all.
  20. ifntech

    calling querystring within a db query syntax

    It compiles but retrieves no information from query. Are there any other additions to the code?

Part and Inventory Search

Back
Top