Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 8th, 2008, 02:47 PM
Authorized User
 
Join Date: Nov 2003
Location: Mataro, Barcelona, Spain.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tracing connectionstring

Hello,

I have a login aspx page which can't connect to sqlserver and I'd like to know how could I see the value of "ConnectionString", to verify it.

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SqlServerConnectionString %>"
...
(commands)
...
</asp:SqlDataSource>

Can I put some code to see this value? (this page hasn't any code asociated: ej. page.c)

Thanks in advance


Reply With Quote
  #2 (permalink)  
Old January 8th, 2008, 03:03 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Although I haven't tried it, you might be able to just put something like this:

<asp:label runat="server" text="<%$ ConnectionStrings:SqlServerConnectionString %>" />

-Peter
Reply With Quote
  #3 (permalink)  
Old January 8th, 2008, 03:26 PM
Authorized User
 
Join Date: Nov 2003
Location: Mataro, Barcelona, Spain.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you!

I must refresh my knowledge of asp.net... I've been a lot of time without writing a line!

Reply With Quote
  #4 (permalink)  
Old January 8th, 2008, 03:55 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

O the perils of drag-and-drop programming. ;)

-Peter
Reply With Quote
  #5 (permalink)  
Old January 8th, 2008, 04:24 PM
Authorized User
 
Join Date: Nov 2003
Location: Mataro, Barcelona, Spain.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You're right, but it's a funny way to start!

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracing xmlhttp traffic balaskumar XML 2 May 10th, 2006 09:48 PM
Data Value tracing Grid Anantsharma VB.NET 2002/2003 Basics 1 April 27th, 2005 04:28 PM
Need Help About Tracing An Application yoord BOOK: Beginning ASP.NET 1.0 1 October 5th, 2004 08:58 AM
Tracing via executable bmains VB.NET 1 April 29th, 2004 02:41 PM



All times are GMT -4. The time now is 05:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.