Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 September 23rd, 2009, 11:35 AM
Authorized User
 
Join Date: Jul 2009
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Thumbs up login

Hello, and thanks alot for all you have done.
1.
When I do "View in Browser" from solution explorer I see the whole site.
I CAN do login if I wish but I can just view site without login.
It seems to me I have missed something during developement.
2.
This question may be out of the scope of the book and pehaps you can reffer me to the answer.
at Reviews/All.aspx I want the title field to be a link.
I changed the table property to Navchar (MAX) and put an <a href ... element.
When I do "View in Browser" from solution explorer I see the <a href ... element as is and not as a link.

Thanks in advance,
Dan
 
Old September 23rd, 2009, 11:40 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

1. Sounds like you forgot to add <location> elements to web.config?

2. How are you assigning the link? Sounds like you typed it in Design View? If that's not the case, can you provide more info?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Dan Cern (September 23rd, 2009)
 
Old September 23rd, 2009, 01:49 PM
Authorized User
 
Join Date: Jul 2009
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Thumbs up Login

Thanks for the reply.
regarding your first comment :
"1. Sounds like you forgot to add <location> elements to web.config?"
Where in the book can I find this issue?

regarding yoursecond comment :
"2. How are you assigning the link? Sounds like you typed it in Design View? If that's not the case, can you provide more info?"
I opened the "show table data" of the Review table.
I then changed the text to <a href="http://www.google.co.il"></a> AS IS
When doing view source I found this:
li>&lt;a href=&quot;http://www.google.co.il&quot;&gt;&lt;/a&gt;</li>
"&lt;" and "&gt;" are acronyms of "Lower than" and "Greater than", which are the "<>" tags.
The <> tags are translated into their html synonyms.

the problem can be either in the insertion of the data into the database or when the data is extracted from the database and parsed as an HTML. The insertion problem option seems unrelevant because I inserted the <a href ... manually.

Perhaps it has to do with some property.
Thanks, Dan
 
Old September 23rd, 2009, 04:27 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Dan ,

Chapter 15 is dedicated to security. Page 546 and onward show you how to use the <location> element to block the Management folder.

Also, check out page 520 and onward to learn more about setting authentication settings in web.config.

The HTML is indeed encoded as you're setting the Text property to a full anchor tag (<a>) and a URL.

Instead, enter http://www.google.com in the database and bind the NavigateUrl to it, like this:

<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "Eval("Title").ToString() %>'
Text='<%# Eval("Title") %>'></asp:HyperLink>

(Taken from Reviews/All.aspx and changed the NavigateUrl attribute)

Hope this helps,.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 27th, 2009, 09:21 AM
Authorized User
 
Join Date: Jul 2009
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Thumbs up Thanks alot for your help

Hello!
I wish to thank you for your continuous and ongoing help you provide me at need. I haven't managed to solve my problems yet and but I am still working on it.
Dan
 
Old September 27th, 2009, 02:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Feel free to post here if you can't make it work....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot implicitly convert type 'Login' to 'System.Web.UI.WebControls.Login' fh84 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 January 23rd, 2009 11:17 AM
Newbie Help. Login to unique login page per user Kainan Classic ASP Professional 10 May 3rd, 2005 07:47 AM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM





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