Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2008, 02:47 PM
Authorized User
 
Join Date: Nov 2003
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


 
Old January 8th, 2008, 03:03 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
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
 
Old January 8th, 2008, 03:26 PM
Authorized User
 
Join Date: Nov 2003
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!

 
Old January 8th, 2008, 03:55 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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

-Peter
 
Old January 8th, 2008, 04:24 PM
Authorized User
 
Join Date: Nov 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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






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





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