Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > ASP.NET 4.5 General Discussion
|
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 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 January 18th, 2018, 07:23 PM
Registered User
 
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?
 
Old January 19th, 2018, 08:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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!
 
Old January 19th, 2018, 06:28 PM
Registered User
 
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
 
Old January 22nd, 2018, 04:45 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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!
The Following User Says Thank You to Imar For This Useful Post:
chalomwimba (January 22nd, 2018)
 
Old January 22nd, 2018, 09:32 PM
Registered User
 
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
 
Old January 23rd, 2018, 03:42 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 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!
The Following User Says Thank You to Imar For This Useful Post:
chalomwimba (January 23rd, 2018)
 
Old January 23rd, 2018, 07:02 PM
Registered User
 
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





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 05: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 05: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 07: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 07: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 03:10 PM





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