D
Darrel
I'm working on an app where the ASPX pages aren't precompiled with the
class.vb files I'm. This is so people can add their own ASPX pages down the
road to the app (the .aspx pages become 'templates' in a way).
As such, each template has a function call at the top:
<% retrieveData() %>
and then within the page, wherever they want to show some text from the db,
they just use one of the variables sent in the vb file:
<%=pageTitle%>
My question is if my logic on the back end makes sense. Here's a general
outline of what I am using in the .vb file:
------------------------------------
Public Class retrieveData
Public Shared pageTitle As String
Public Shared contentTitle As String
Public Shared portfolioID As String
Public Shared pageContent As String
Public Shared Function getPageContentData()
Query = "SELECT * from Database where pageID =
HttpContext.Current.Request.QueryString("pg")
pageTitle = field from DB
contentTitle = field from DB
etc...
end function
end class
------------------------------------
This seems to work, and is very minimal code for the end-user of the ASPX
page to deal with. But is there anything wrong with my logic? Is there a
thread conflict issue where two people could hit two pages at the exact same
time mixing up the data?
-Darrel
class.vb files I'm. This is so people can add their own ASPX pages down the
road to the app (the .aspx pages become 'templates' in a way).
As such, each template has a function call at the top:
<% retrieveData() %>
and then within the page, wherever they want to show some text from the db,
they just use one of the variables sent in the vb file:
<%=pageTitle%>
My question is if my logic on the back end makes sense. Here's a general
outline of what I am using in the .vb file:
------------------------------------
Public Class retrieveData
Public Shared pageTitle As String
Public Shared contentTitle As String
Public Shared portfolioID As String
Public Shared pageContent As String
Public Shared Function getPageContentData()
Query = "SELECT * from Database where pageID =
HttpContext.Current.Request.QueryString("pg")
pageTitle = field from DB
contentTitle = field from DB
etc...
end function
end class
------------------------------------
This seems to work, and is very minimal code for the end-user of the ASPX
page to deal with. But is there anything wrong with my logic? Is there a
thread conflict issue where two people could hit two pages at the exact same
time mixing up the data?
-Darrel