Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > ASP.NET 4.5 General Discussion
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 4.5 General Discussion For ASP.NET 4.5 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 18th, 2018, 06:23 PM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2018
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default Table Developer Greyed Out - Visual Studio 2015

I need help urgently. I am working in Visual Studio 2015 going through Imar's BEGINNING ASP.NET 3.5 IN C# AND VB (Chapter 13). I have shown Table Developer icons from Toolbars. When I add new Tables in Server Explorer and want to create RELATIONSHIPS, TABLE DESIGNER is not activated, it is still greyed out. What can I do?
Reply With Quote
  #2 (permalink)  
Old January 19th, 2018, 07:47 AM
Imar's Avatar
Wrox Author
Points: 71,768, Level: 100
Points: 71,768, Level: 100 Points: 71,768, Level: 100 Points: 71,768, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,032
Thanks: 80
Thanked 1,580 Times in 1,557 Posts
Default

Hi there,

Can you be a bit more specific about the exercise and steps you're on? ASP.NET targets Visual Studio 2008 so I am pretty sure some stuff will be quite different.

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!
Reply With Quote
  #3 (permalink)  
Old January 19th, 2018, 05:28 PM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2018
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default Table Designer Greyed out in Visual Studio 2015

Thanks Imar,
I am on page 444, Try It Out - A SIMPLE LINQDATASOURCE APPLICATION. I can create the two tables PhotoAlbum and Picture but I cannot establish the relationship because Table Designer is greyed out. Even If I connect to another SQL database and create tables, the Table Designer cannot be available, still greyed out.
Kindly help.
Thank
Chalo


Quote:
Originally Posted by Imar View Post
Hi there,

Can you be a bit more specific about the exercise and steps you're on? ASP.NET targets Visual Studio 2008 so I am pretty sure some stuff will be quite different.

Cheers,

Imar
Reply With Quote
  #4 (permalink)  
Old January 22nd, 2018, 03:45 AM
Imar's Avatar
Wrox Author
Points: 71,768, Level: 100
Points: 71,768, Level: 100 Points: 71,768, Level: 100 Points: 71,768, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,032
Thanks: 80
Thanked 1,580 Times in 1,557 Posts
Default

Looks like what you're running into is documented here: https://social.msdn.microsoft.com/Fo...ner?forum=ssdt

The table designer is now legacy and works with old versions of SQL Server only. My recommendation would be to use SQL Server Management Studio (also discussed in the book) for all schema and data manipulation. That's what I switched to in later versions of my book.

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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
chalomwimba (January 22nd, 2018)
  #5 (permalink)  
Old January 22nd, 2018, 08:32 PM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2018
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi Imar, Now on a different one about an exercise in your book BEGINNING ASP.NET 3.5

I am doing Try It Out Exercise pg 451. Once done it throws an error as
Server Error in '/' Application.
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Error is in line 7 Response.Redirect(String.Format("ManagePhotoAlbum. aspx?PhotoAlbumId={0}"), myPhotoAlbum.ID.ToString())

MANY THANKS
Reply With Quote
  #6 (permalink)  
Old January 23rd, 2018, 02:42 AM
Imar's Avatar
Wrox Author
Points: 71,768, Level: 100
Points: 71,768, Level: 100 Points: 71,768, Level: 100 Points: 71,768, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,032
Thanks: 80
Thanked 1,580 Times in 1,557 Posts
Default

You're closing the call to String.Format too early. In other words,

this:

Code:
Response.Redirect(String.Format("ManagePhotoAlbum.aspx?PhotoAlbumId={0}"), myPhotoAlbum.ID.ToString())
should be this:

Code:
Response.Redirect(String.Format("ManagePhotoAlbum.aspx?PhotoAlbumId={0}", myPhotoAlbum.ID.ToString()))
Please don't send me your forum posts to my private email also. I am following the posts on this forum, so when I see one come in, I'll reply to it when I have the time.

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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
chalomwimba (January 23rd, 2018)
  #7 (permalink)  
Old January 23rd, 2018, 06:02 PM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2018
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
You're closing the call to String.Format too early. In other words,

this:

Code:
Response.Redirect(String.Format("ManagePhotoAlbum.aspx?PhotoAlbumId={0}"), myPhotoAlbum.ID.ToString())
should be this:

Code:
Response.Redirect(String.Format("ManagePhotoAlbum.aspx?PhotoAlbumId={0}", myPhotoAlbum.ID.ToString()))
Please don't send me your forum posts to my private email also. I am following the posts on this forum, so when I see one come in, I'll reply to it when I have the time.

Cheers,

Imar
Imar, Thanks a million. Your code is excellent and it worked. Sorry about sending to Private email, comments noted.
Cheers
Chalomwimba
Reply With Quote
Reply


Thread Tools
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
Ivor Horton's Beginning Visual C++ 2015 xfsgpr BOOK: Ivor Horton's Beginning Visual C++ 2013 0 February 24th, 2016 04:46 PM
Using this book with versions other than Visual Studios Enterprise 2015 apyds BOOK: Beginning C# 6.0 Programming with Visual Studio 2015 2 January 27th, 2016 04:52 PM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 06:03 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 06:02 AM
Visual Studio VS. Visual Web Developer expr Astrocloud BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 November 23rd, 2008 02:10 PM



All times are GMT -4. The time now is 04:34 PM.


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