Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 October 2nd, 2008, 11:24 PM
Registered User
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question about ASPNETDB.MDF

Hi All,

I'm reading through this book and am currently in Chapter 4. I have a question regarding the ASPNETDB database.

This chapter explains about Exploring the Default SQL Server Data Store, where it mentions the database designs and data structures.

So, my question is: How was the database created in the first place? What was it based on? Since it's the "Default SQL Server Data Store", does that mean there is some SQL utility to run that will automatically create the database and all the tables, views, stored procedures?

Thanks in advance for your reply.

Regards,
Franky
 
Old October 3rd, 2008, 12:01 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
quote:Originally posted by frankym



does that mean there is some SQL utility to run that will automatically create the database and all the tables, views, stored procedures
Yes, it's called aspnet_regsql.exe. You can run it from the VS command line.

http://msdn.microsoft.com/en-us/library/ms229862(VS.80).aspx

 
Old October 3rd, 2008, 10:45 AM
Registered User
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Lee.

I have another question, not related to ASPNETDB, but rather to images.

I created a folder called "images" under "App_Themes". Inside this folder, I have 2 images: pic1 and pic2. In Visual Studio, Source View, when I tried to point to the images using <asp:Image ImageUrl="">, it's complaining that the image was not found.

In the "Select Project Item" window (the window you get when you select "Pick URL..."), VS.NET can see the folders (App_Themes/images), but can't see any files in that folder.

Any idea why this is?

Thanks,
Franky

 
Old October 3rd, 2008, 11:13 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Remember that themes are only compiled at runtime. Therefore, images folders under App_Themes are not meant to be used for "general" image storage, but only for images directly referred to by skins or stylesheets in the same theme, like for bullets, background images, and such.

If you want to be able to refer to images in server controls like <asp:Image>, or in HTML controls like <img>, you need to store them in a different folder outside of App_Themes. Any folder should do, as long as it's not inside a "special" ASP.NET folder App_Themes, App_Code, App_Data, App_Browsers, etc.

 
Old October 3rd, 2008, 11:26 AM
Registered User
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah Ok. Great, thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Get password value from aspnetdb.mdf rsearing ASP.NET 2.0 Basics 8 October 12th, 2007 09:12 AM
ASPNETDB.MDF Changing motemape BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 27th, 2007 06:14 AM
Combining aspnetdb.mdf and another DB rsearing ASP.NET 2.0 Basics 1 February 8th, 2007 11:44 AM
aspnetdb.mdf Jackxxx ASP.NET 2.0 Basics 0 January 9th, 2007 01:37 PM





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