Using Patterns And Practices
I have a asp webapp that must use a .net dll (with com wrapper) that in turn
uses the patterns and practices libraries (june 2005 version) to access to
the database.My asp webapp can properly instantiate the c# dll, but I do not know how to
set the data needed to access the db. In asp.net I can add the configuration
info to web.config, pointing to a dataconfiguration.config and all works fine.
How can I put the needed info in the ASP configuration?
If it is not possible to do so, how can I set a single configuration file
for the enterprise library, provided that their dll are in GAC and that the
can be called from c# exe, asp.net webapps and asp webapps and all of them
should share a single configuration?
View Replies
how to add the symbol ' (Apostrophe) to the code so that the validation accepts this within a surname such as o'neill? this is wot i hav at the minute:
With regExName
.Pattern = "^[a-z]+$"
.IgnoreCase = true
.Global = true
End With
View Replies
View Related
I typically use a VB com component for handling business logic and data processing in my ASP projects.
In the past, if I wanted to get a forms contents into my VB layer I would simply pass it in the call and accept it in VB as a string which I could put into an xmldom object.
I am now experimenting with passing the entire form along as a form object (to be accessed as such in VB as a ASPTypeLibrary.Request type.
I have found two ways to do this.
1. pass the form as above using the listed request type in VB. This works great.
2. Dim up a ASPTypeLibrary.Request object in VB and assign it
GetObjectContext.Item("Request").
Using GetObjectContext is much more difficult to implement if you want to have debugging ability in VB (there are numerous security considerations).
My question is (and thank you for reading this far), do any of you know what the best practices is for a production environment? Can anyone think of any reason why I shouldnt just use the easy method (pass the form and define its type in the argument list for the sub or function)?
View Replies
View Related
What are the best practices when using a db and include files?
I typically store my connection string in an include file. I then open my db do what I need to and close the connection. I haven't put these in functions. How does everyone else handle the connections are the in functions? in includes?
View Replies
View Related
What are some best practices for classic ASP security? Can you point me to some "how-to" articles in this regard?
View Replies
View Related
When using cookies in classic asp, is it safe to assume that using a comma delimited list of values in one cookie is much more efficient than using multiple cookies? (example below)
Response.Cookies("someCookie") = "101,102,103,104,105,106"
If InStr(Request.Cookies("someCookie"),"103") 0 Then.......
vs.
Response.Cookies("101") = "True"
Response.Cookies("102") = "True"
Response.Cookies("103") = "True"
Response.Cookies("104") = "True"
Response.Cookies("105") = "True"
Response.Cookies("106") = "True"
If Request.Cookies("103") = "True"
Then.....
View Replies
View Related
I saw a brief blurb on this somewhere and am unable to recall where...
In the context of Security, what are some best practices for
handling -storing, locating, retrieving- database OLEDB connection strings?
I have typically used a single include file and even considered stuffing the
string in a document (XML or otherwise) outside of the root directory. I
know of and have used methods to store connection strings in the registry of
the server. My thinking is the optimal solution involves some form of
encryption and locating the string outside of the site itself. Code:
View Replies
View Related