Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 March 19th, 2007, 10:13 PM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MarkNorton
Default setting up virtual studio

My original post seems to have disappeared so will try again.

I'm working my way through Beginning ASP 2.0 and rather than use VB, I've downloaded the C# files and am going through these.

I seem to have something set up incorrectly as I'm not seeing the views I should. if I open a file, say editsquad.aspx.cs in VWD, the book says I should be able to select DetailsDataSource from the left hand menu and Updated event from the right hand one. Now I appreciate that DetailsDataSource isn't in c# but all I get in the left hand menu is 'editsquad'. Is this right? Does c# behave differently from VB in the browser?

I appreciate this is an extreme newbie question, but that's what I am.

Many thanks

Mark.
 
Old March 20th, 2007, 05:28 AM
Authorized User
 
Join Date: Feb 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah there you are, I was about to post on your last one then it just vanished.

I have the C# version of the book, and am struggling to find the section that you are on. What exactly is it you are trying to do?

C# behaves as it is programmed to behave the same is true of VB, the difference is in the syntax and a few features nothing more.

Let me know.
Graham


 
Old March 20th, 2007, 08:39 AM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Mark: Your original post didn't disappear, I moved it to the forum for the book you are discussing, here's the link:
http://p2p.wrox.com/topic.asp?TOPIC_ID=57787
Sorry for the confusion. You should have received an email notification from our system when I moved the post, could be an email block between us and you if you didn't. :)

Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Jim's Book of the week: No book this week - Donate to the Red Cross!
 
Old March 20th, 2007, 10:13 PM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MarkNorton
Default

Hi Graham and Jim. Thanks for both your replies.
Jim: just looked at the topic link and there aren't any replies so if you don't mind, I'll continue in this forum :) - it is a virtual studio query, it's just that I was plodding through the particular book when it appeared.
Graham: I'm on page 201, chapter 6 now and have come across the same problem again. If you do the 'try it out', point number 5 asks you to go to the dropdown lists on the top. I have these two lists but the left-hand one just shows the name of the file 'editsquad.aspx.cs', nothing else and the right hand one shows, amongst others, DetailsDataSource'. If I click on this, it just takes me to the EditSquad.aspx file and not to an empty event procedure. I have a feeling this is something I'm not understanding rather than an error but do feel rather stuck. Hope I've explained this OK.
Many thanks
Mark.
 
Old March 22nd, 2007, 05:44 AM
Authorized User
 
Join Date: Feb 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok finally think I have found the difference, sorry about the delay.

In the C# version of the book it reads:

6) Create an event procedure for the Updated event of the Details data source, by selecting the DetailsDataSource control and double-clicking into the Updated event when viewing the events in the properties page.


I think (do not quote me on this) that they are referring to this bit of the code, which you can see in the END folder of the C# version:

Code:
protected void DetailsDataSource_Updated(object sender, System.Web.UI.WebControls.SqlDataSourceStatusEventArgs e)
    {
        GridView1.DataBind();
    }


This is the line that directly refers to the Updated method. I also have the same issue with the drop down list, however it is interesting in that the C# version does not refer to it at all in the TRY IT OUT, may be it’s something to do with the build of Studio the book was written using. If my mind served me correctly then the C# version was done with a Beta perhaps it has changed in the final release.

To be truthful however, I code everything straight by hand, very rarely using a control so I have never noticed that quirk before.

Good luck, I hope that this solves your problem.

Regards
Graham





Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Visual Studio MarkNorton BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 15th, 2007 11:26 PM
Setting Up Full-Text Indexing from Visual Studio Aaron Edwards ASP.NET 2.0 Basics 0 July 1st, 2006 01:45 AM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM
Setting up Virtual Dir in IIS dsuratman ASP.NET 1.0 and 1.1 Basics 4 June 20th, 2005 07:57 AM





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