Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 2nd, 2008, 11:24 PM
Registered User
 
Join Date: Oct 2008
Location: Dunwoody, GA, USA.
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
  #2 (permalink)  
Old October 3rd, 2008, 12:01 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
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

  #3 (permalink)  
Old October 3rd, 2008, 10:45 AM
Registered User
 
Join Date: Oct 2008
Location: Dunwoody, GA, USA.
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

  #4 (permalink)  
Old October 3rd, 2008, 11:13 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
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.

  #5 (permalink)  
Old October 3rd, 2008, 11:26 AM
Registered User
 
Join Date: Oct 2008
Location: Dunwoody, GA, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah Ok. Great, thanks.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:33 PM.


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