Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Search this Thread Display Modes
  #21 (permalink)  
Old September 5th, 2007, 03:13 PM
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried using a Try..Catch..End Try logic, but still just receive this error:

The following error has occurred:

Class CustSignIn Error=Object reference not set to an instance of an object.


Reply With Quote
  #22 (permalink)  
Old September 5th, 2007, 03:18 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

How about putting a breakpoint in your code and see where it breaks?

From what I can see, your DB code is fine, so maybe it has to do with the methods in the base page you are calling.

Without a location where things break (e.g. call stack and detailed error info) we can all look at this for hours without coming up with a fix...

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #23 (permalink)  
Old September 5th, 2007, 03:30 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I believe the code is breaking here:

Code:
 Try
            SetPageTitle = m_objMessages.GetXMLMessage("default.aspx", "PageTitle", "Title")
            SetDesign(PageTable, PageSubTable, PageCell, ErrorAlignment, MessageAlignment)
        Catch ex As Exception
            Session("DetailError") = "Class CustSignIn Error=" & ex.Message
            Response.Redirect(StoreFrontConfiguration.SiteURL & "errors.aspx")
        End Try
Unfortunately, I do not see how the data would be wrote to the screen. Check what the values of ex.StackTrace and ex.Source are to get a further clue on what is going on.

Also, as Imar suggested, set a breakpoint and step through the code.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
Reply With Quote
  #24 (permalink)  
Old September 5th, 2007, 03:45 PM
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, I guess I'm not using the same tools you are. Break points seem strangely absent from Dreamweaver 8. Though seeing as it doesn't have a built in compiler, I'm not all that surprised.

I noticed that the imported CWebPage class has its own iteration of the Page_Load function. Unfortunately, turning this off breaks everything else. I was not there during the inception of this project, so I'm still unaware of a lot of the deep dark dealings of this system. That's originally why I was trying to do a more surface level query (in the ASPX file), rather than try bothering all the ghosts of this project's past.

Thanks,

blu

Reply With Quote
  #25 (permalink)  
Old September 5th, 2007, 03:53 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Dreamweaver is Imar's speciality. Breakpoints are used in visual studio and they allow us to step into a piece of problematic code and see what exactly is going on.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
Reply With Quote
  #26 (permalink)  
Old September 5th, 2007, 03:59 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Personally, I think you're *far* better off doing ASP.NET 2.0 projects in Visual Studio 2005. The Express Editions come for free, so price shouldn't be an issue.

Dreamweaver is very nice for plain HTML / CSS design, and somewhat good at building database driven sites with classic ASP / PHP and a few more other technologies, but IMO, it's unsuitable for any serious .NET development. The lack of IntelliSense, integrated tools / wizards (even support for something as simple as a Grid on a page) compilation and an integrated debugger make it very very hard to do .NET development with Dreamweaver, causing you endless hours of frustration and costing you and your client lots of money.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #27 (permalink)  
Old September 5th, 2007, 04:01 PM
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes I've used break points while coding in Visual languages before, but there's no such thing in tools like Dreamweaver.

One thought I had bouncing ideas around...

Create the login functionality in one page, the database query in another page... include the login script inside an <iframe></iframe> and let them each have their own pageload... Tiresome and probably very wrong somehow, but at this point...

Anyways, I want to thank you very much for helping me today. I've got some ideas going now, at least.

Reply With Quote
  #28 (permalink)  
Old September 5th, 2007, 04:05 PM
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks very much for the advice, Imar. I'll definitely be getting myself and my coworkers a copy of the express edition of Visual Studio, if not the full thing. This project is becoming much too cumbersome to work with in Dreamweaver alone. It's like trying to write binary in Notepad.

Reply With Quote
  #29 (permalink)  
Old September 5th, 2007, 04:11 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Yes, exactly. Not a pleasant or successful thing to do.... ;)

Good luck.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #30 (permalink)  
Old September 6th, 2007, 08:08 AM
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just letting you know, the problem was finally resolved... Here's how I did it...

I let the login function use the codebehind and do its thing with its own Page_Load() routine. I left it well enough alone by simply including an iframe including the other function that pulls from the database:
Code:
<iframe width="100%" src="featuredproducts.aspx" border="0px" scrolling="no" height="850" style="border-style:none;"></iframe>
This allows each piece of the page have its own Page_Load without interfering with each other. :)

Reply With Quote
Reply


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
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
Indian Rs Format simple Function for vb.net s.karthik General .NET 0 March 24th, 2008 06:27 AM
MSSQL 2005 and MSSQL 2000 tiredcat Visual Basic 2005 Basics 0 April 9th, 2007 12:56 AM
Simple ASP.NET message box with VB janicen General .NET 1 February 24th, 2005 03:31 AM
VB MSSQL database REmote connectivity srichary Pro VB Databases 0 November 28th, 2004 06:33 AM



All times are GMT -4. The time now is 12:55 AM.


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