Click here to Skip to main content
16,004,890 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Creating a folder for a user when they register Pin
Britney S. Morales7-Nov-06 2:24
Britney S. Morales7-Nov-06 2:24 
Questionvs2005 page inheritance and general oddities Pin
Guy Harwood6-Nov-06 10:17
Guy Harwood6-Nov-06 10:17 
AnswerRe: vs2005 page inheritance and general oddities Pin
minhpc_bk6-Nov-06 13:53
minhpc_bk6-Nov-06 13:53 
GeneralRe: vs2005 page inheritance and general oddities Pin
Guy Harwood7-Nov-06 4:07
Guy Harwood7-Nov-06 4:07 
QuestionConnectionString Problem!!! Pin
immori6-Nov-06 10:15
immori6-Nov-06 10:15 
QuestionSending Email through my ASP.NET application. Pin
victor_sinha6-Nov-06 6:50
victor_sinha6-Nov-06 6:50 
AnswerRe: Sending Email through my ASP.NET application. Pin
RichardGrimmer6-Nov-06 7:09
RichardGrimmer6-Nov-06 7:09 
QuestionConnection String Problem Pin
shapper6-Nov-06 6:32
shapper6-Nov-06 6:32 
Hello,

I am need to get a connection string details. I am doing as follows:

01: Dim connectionStrings As New ConnectionStringSettingsCollection
02: Dim connectionString As New ConnectionStringSettings
03: connectionString = connectionStrings.Item("MyConn")
04: Console.WriteLine(" Connection String: ",
connectionString.ConnectionString) *** ERROR ***
05: Console.WriteLine(" Name: ", connectionString.Name)
06: Console.WriteLine(" Provider Name: ",
connectionString.ProviderName)

I get my first error on line 04
System.NullReferenceException: Object reference not set to an
instance of an object.

To check my connection string I did the following:
Dim otherConnectionString As String =
ConfigurationManager.ConnectionStrings("MyConn").ConnectionString
Response.Write(otherConnectionString)

And I get:
Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\Documents and
Settings\User\My Documents\Visual Studio
2005\WebSites\MySite\App_Data\MySite.mdb; User Id=; Password=;

Which proves I have the connection string with name MyConn in my
web.config.

Could someone tell me what am I doing wrong?

I tried everything I could think off.

Thanks,
Miguel
AnswerRe: Connection String Problem Pin
Guffa6-Nov-06 9:42
Guffa6-Nov-06 9:42 
QuestionDefining master page in web.config file Pin
koleraba6-Nov-06 6:30
koleraba6-Nov-06 6:30 
AnswerRe: Defining master page in web.config file Pin
ednrgc6-Nov-06 9:24
ednrgc6-Nov-06 9:24 
GeneralRe: Defining master page in web.config file Pin
koleraba6-Nov-06 10:41
koleraba6-Nov-06 10:41 
GeneralRe: Defining master page in web.config file Pin
koleraba6-Nov-06 11:23
koleraba6-Nov-06 11:23 
Questiondate validation Pin
dhatchu6-Nov-06 6:10
dhatchu6-Nov-06 6:10 
AnswerRe: date validation Pin
ednrgc6-Nov-06 9:25
ednrgc6-Nov-06 9:25 
QuestionLinking style sheet to master page question Pin
dustin106-Nov-06 5:42
dustin106-Nov-06 5:42 
AnswerRe: Linking style sheet to master page question Pin
sp2774036-Nov-06 13:58
sp2774036-Nov-06 13:58 
GeneralRe: Linking style sheet to master page question Pin
dustin106-Nov-06 14:04
dustin106-Nov-06 14:04 
Questionasp vs asp.net Pin
haytham_mohammad6-Nov-06 5:00
haytham_mohammad6-Nov-06 5:00 
AnswerRe: asp vs asp.net Pin
just3ala26-Nov-06 5:02
just3ala26-Nov-06 5:02 
GeneralRe: asp vs asp.net Pin
haytham_mohammad6-Nov-06 5:05
haytham_mohammad6-Nov-06 5:05 
Questionproblem in FCK Editor Pin

MmM.net</

6-Nov-06 4:50

MmM.net</

6-Nov-06 4:50 
AnswerRe: problem in FCK Editor Pin
just3ala26-Nov-06 4:59
just3ala26-Nov-06 4:59 
Questionconfigure a virtual directory as an application in IIS Pin
John Gathogo6-Nov-06 3:36
John Gathogo6-Nov-06 3:36 
QuestionJavascript Pin
sribachana6-Nov-06 3:09
sribachana6-Nov-06 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.