Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 December 15th, 2008, 02:02 AM
Registered User
 
Join Date: Dec 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default CMS integrate with other chapters

Hi Imar,

First, just wondering how you add your blogs category from chapter 6 as one of the category in your website http://Imar.Spaanjaars.Com? How you integrate both authentication into your CMS? I noticed your blog is under a content type then each blog as a category. How you load your blog site under the content place holder with authentication?

Actually I am trying to add a content type called it as module, then use iframe add your other chapters into a module category but there is no authencation parse through.

For my case, i tried each sub modules (sub menu) to load an iframe into the content page so that it can easily load a module dynamically into the cms. However, each site that I called will not parse authentication into iframe even though I have logon from the CMS. For example, I logon from the CMS, then load the blog site from iframe, the site has shown but it still required to logon again.

2nd, All tabs that generated virtually (except default, admin and logon), it will required click on read more to show full page. is there a ready code that can show full page without click on the read more?

Hope you can help on it or suggest a way for it.

Thanks,
-Kim-
 
Old December 15th, 2008, 02:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In my own site it's implemented very simple. I have a User Control called MainMenu that contains two Repeater controls: one for the Main Categories like Articles and Blogs and one for the sub categories.

Although you don't see it, the page containing that User Control has access to two query strings: ContentTypeId and CategoryId, corresponding to the two menu levels (I convert something like QuickDocId.aspx?QuickDoc=123 into something like ViewArticle.aspx?ContentTypeId=4&CategoryId=7 using Server.Transfer)

Inside the User Control, I get the main and sub categories from the cache, bind them to the Repeater and preselect the right item in code behind.

Not sure what else regarding authentication you're asking.

Hope this gives you some ideas.

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 December 15th, 2008, 11:02 PM
Registered User
 
Join Date: Dec 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

First of all, I would like to thank you so much for your quick response.

Well, from your site I can see that the content type which is the main category and category as a subcategory.

1) Example, for your blog tab in your ViewContentList, Content Type is Blogs and Imar's Blogs is one of the sub category. Then how you put your Blogs site under the content place holder?

2) The authentication I mentioned is, by default the blog site will not authenticate when it load from your chapter 'Blogs' alone. It will have login and logout. So from your site, when load Imar's Blogs there is no required for authentication?

In this case once I logon from the CMS, the subcategory 'Imar's Blogs' should auto authenticated since the CMS has been authenticated. Could you please provide some idea how you handle the blogs's authentication in subcategory? Also, did you separately store the entire blog site in a subfolder such as Apps_module? If so, do I need any other changes on the blog's webconfig?

3) Sorry for this stupid question again, how to display full site instead of with 'Read more' on ViewContentList? Actually I plan to have an option for some sites allow with full display.

Once I manage to load blog site in the content place holder( content list or content details) then I should able to load the rest of the chapter into the CMS... Thanks.

-Kim-
 
Old December 16th, 2008, 03:15 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I still don't really get what you're asking..... Questions like this:
Quote:
Then how you put your Blogs site under the content place holder?
don't make things any clearer....

But like I said, I have two simple Repeaters that display the right stuff. In the database I have two tables ContentType and Category. Blog is a ContentType and Imar's Blogs is a Category. As such, the Category contains a ContentTypeId column (as shown in the chapter on CMS).

In my own web site, the Blog section is NOT from the Blog chapter. It's simply a Content Type just like the others from the CMS.

On my own site, the Blogs can be read by everyone. I also have a /Management section on my site (that does require login using URL Authorization) that allows me to manage content. I don't have "front end-editing" as shown in the Blog chapter.

Quote:
3) Sorry for this stupid question again, how to display full site instead of with 'Read more' on ViewContentList? Actually I plan to have an option for some sites allow with full display.
It's not a stupid questions; it's a very unclear question. What do you mean with "display full site"? A page? An entire web site?

So, rather than finding out how my site works, try asking clear and concise questions. Otherwise you'll keep getting vague answers like these....

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 December 16th, 2008, 05:47 AM
Registered User
 
Join Date: Dec 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Quote:
Originally Posted by Imar View Post
I still don't really get what you're asking..... Questions like this:
don't make things any clearer....
Imar
Sorry for my unclear questions and thanks for your quick response again.

Quote:
Originally Posted by Imar View Post
In my own web site, the Blog section is NOT from the Blog chapter. It's simply a Content Type just like the others from the CMS.
Imar
I see. I thought you modified from the Blog chapter.

Quote:
Originally Posted by Imar View Post
I also have a /Management section on my site (that does require login using URL Authorization) that allows me to manage content. I don't have "front end-editing" as shown in the Blog chapter.
Imar
Well, I don't understand " that does require login using URL Authorization". As you mentioned you have management section on your site, which it means the same Admin page that comes with the CMS?

Quote:
Originally Posted by Imar View Post
It's not a stupid questions; it's a very unclear question. What do you mean with "display full site"? A page? An entire web site?

So, rather than finding out how my site works, try asking clear and concise questions. Otherwise you'll keep getting vague answers like these....
Imar
Sorry for another unclear question. Yes, I mean display a full page instead of click on Read More to show more.

Also, do you mind to send me the search.aspx from your site? also the web site search script that on top of your site header? (site.master)

Thanks,
-Kim-
 
Old December 16th, 2008, 04: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

No, my site is not necessarily related to anything you see in the book. However, I put what I have learned while buidling my own site into the book, so you'll see a lot of similarities. On my own site, the Management section (protected with standard URL authorization) is much larger than anything described in the book. I can manage categories, content, users, logs, statistics, squash data, sent and received comments and more. Because of the differences, let's focus on the book, not on my own site.

For an implementation of URL authorization, check out chapter 12 of the book.

Regarding the "full page" feature: simply display all content.So, instead of displaying just the IntroText in a Literal, use one for the Body as well and remove the HyperLink:

<asp:Literal ID="lblIntroText" runat="server" Text='<%# Eval("IntroText")
%>'></asp:Literal></div>

<asp:Literal ID="lblBodyText" runat="server" Text='<%# Eval("BodyText")
%>'></asp:Literal></div>


Regarding the search page: sorry, can't send it to you. First of all it's not just a page but also has a lot of custom classes that it uses. But more importantly: it uses the Google API which Google no longer supports. Shortly after I got my account, they stopped giving out license keys and now require you to use the Google Search AJAX API: http://code.google.com/apis/ajaxsearch/

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!
 
Old December 17th, 2008, 01:07 PM
Registered User
 
Join Date: Dec 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Again, Thanks for your advise.

Quote:
Originally Posted by Imar View Post
On my own site, the Management section (protected with standard URL authorization) is much larger than anything described in the book. I can manage categories, content, users, logs, statistics, squash data, sent and received comments and more. Because of the differences, let's focus on the book, not on my own site.
Imar
That's really a lot of differences. Well, in the meant time will focus on the book first and will check out the chapter 12 for the URL authorization.

Quote:
Originally Posted by Imar View Post
Regarding the "full page" feature: simply display all content.So, instead of displaying just the IntroText in a Literal, use one for the Body as well and remove the HyperLink:

<asp:Literal ID="lblIntroText" runat="server" Text='<%# Eval("IntroText")
%>'></asp:Literal></div>

<asp:Literal ID="lblBodyText" runat="server" Text='<%# Eval("BodyText")
%>'></asp:Literal></div>
Imar
Well, I have simply added in the second line of BodyText you advised. However, I got the following error message...

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'BodyText'.

Quote:
Originally Posted by Imar View Post
Regarding the search page: sorry, can't send it to you. First of all it's not just a page but also has a lot of custom classes that it uses. But more importantly: it uses the Google API which Google no longer supports. Shortly after I got my account, they stopped giving out license keys and now require you to use the Google Search AJAX API: http://code.google.com/apis/ajaxsearch/
Imar
That's enough. Will try to explore the Google Search Ajax API.

Thanks again.

-Kim-
 
Old December 20th, 2008, 12:12 PM
Registered User
 
Join Date: Dec 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

I found where to add the BodyText.

Quote:
Originally Posted by deepblue_km View Post

Well, I have simply added in the second line of BodyText you advised. However, I got the following error message...

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'BodyText'.

-Kim-
First I found the storedprocedure from SQLDataSource in the ContentList.aspx, then go to look for the storedrprocedure 'sprocContentSelectListByContentTypeAndCategoryId' and add in the Content.BodyText.

Run the script and it works. :)

Furthermore, I added the members.aspx and addmembers.aspx from maintenance folder in the cms, although there are alot of business logics and data access layer files need to be amended before it works to me.

Thank you so much for your feedback, without your valuable ideas and comments I will not able to know where to amend, get to know the manage user and add into the CMS's admin.

Would also like learn more from your book and site. Your articles from your site is also useful and it is a good knowledge based to me such as Layered Web Application and Layer Design.

Here, I wish you the very Best Christmas and a Fantastic New Year!

Thanks again,
-Kim-
 
Old December 22nd, 2008, 07:22 AM
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...

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
chapters 4,5,6 are so boring! johnperez BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 0 April 3rd, 2008 05:05 PM
Beginning ASP.NET 2.0 Chapters 3 + 4 ollie BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 June 5th, 2006 08:34 AM
Table and chapters details SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 April 10th, 2006 09:24 AM
Exercises at the end of each chapters! yajleejnus Forum and Wrox.com Feedback 1 June 11th, 2003 05:25 PM





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