CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: C# Webform

  1. #1
    Join Date
    Mar 2009
    Posts
    5

    C# Webform

    Hey guys,

    I am new to C# and know very little about ASP.net and classes in general. All that to say I got a project file for Visual Studio 2008 that is a C# web form that is suppose to allow you to enter address info: Street, City, State and Zip and then in a text box below shows that info in a mailing address format, eg.

    123 Easy St.
    Anytown CA, 98541

    Anyway its got other classes in it and the webform .cs file has nothing in it. I was wondering why they did not use the .cs file from the webform also it has lots of errors in it, I guess because it can't connect the proper classes. In fact if I run as is it says:

    "'ASP.default_aspx' does not contain a definition for 'btnGetAddress_Click' and no extension method 'btnGetAddress_Click' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?) C:\Users\Jordan McGehee\Desktop\AddressApp\Default.aspx 59

    Why will it not run? Also can it be simplified using the webform (default) class? I am trying to get to know ASP.net but don't have a lot of direction. Attached is the Project File VS 2008.
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: C# Webform

    Hi there.
    If you are interested in learning ASP.NET I would suggest ignoring that project you got (by the way..where did you get it from?) and learn from the samples on this sitem ASP.NET Fundamentals. I would also recommend book. There are a lot of good ones. The Wrox series tend to be useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured