 |
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
|
|
|
|

October 2nd, 2008, 11:24 PM
|
Registered User
|
|
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

October 3rd, 2008, 12:01 AM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
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
|

October 3rd, 2008, 10:45 AM
|
Registered User
|
|
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

October 3rd, 2008, 11:13 AM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
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.
|

October 3rd, 2008, 11:26 AM
|
Registered User
|
|
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ah Ok. Great, thanks.
|
|
 |