Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 12th, 2007, 09:34 PM
Authorized User
 
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default CustomerSupport Site

I open InsertUpdateProduct.aspx, I filled all the required fields download the image and select SAVE. Nothing happens the RequiredFieldValidators on tagLine, product description throws a required field error message. Only the title field and the image is written into the database.

 
Old March 13th, 2007, 01:57 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 provide a little more information? How did you open the web site? Did you install it in IIS or are you opening it through Visual Web Developer?

Also, did you make any changes to the page? It's odd that the required field validators throw an error, yet the item is still saved.... Do you have JavaScript enabled in your browser?

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
Want to be my colleague? Then check out this post.
 
Old March 13th, 2007, 09:06 AM
Authorized User
 
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK Imar--The App is installed from the CD to IIS. Permissions to folders are already granted. I open it in Visual Studio Pro. I open the default page in VS pro and, view in browser and navigated to the management/products.aspx. I have not made any changes to the page.How do enable/disable Java csript(please refresh me). I am giong to try to install in a directory Folder instead of IIS---see if there is a difference.

 
Old March 13th, 2007, 02:50 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi papalolo22,

I just tried it again on a number of different PC's with different setups and with different browsers and it worked for me every single time.

What I find awkward, is that you say you get the validator message, yet the product is still saved. That shouldn't be possible if you consider this code:
Code:
Page.Validate()

    ....

    If Page.IsValid Then
 
      ......

      myProduct.Title = txtTitle.Text
      myProduct.TagLine = txtTagLine.Value
      myProduct.Description = txtDescription.Value
      myProduct.Keywords = txtKeywords.Text

      ......

      myProduct.Save()
      Response.Redirect("Products.aspx")
    End If
    As you can see, the Save method can only be called when the page is valid. Can you provide more details about what you do? What's the address in the address bar? What browser do you use? Do you see the FCKeditor appear? Do you have this problem with editing existing products too or only with new items?

JavaScript can be disabled with various add-on toolbars and through the browser's Options dialog. However, if you don't know how to enable or disable it yourself, there's a fair chance you have it on.

Sorry for the many questions, but I don't see a solution to your problem at this stage.

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
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Site Down pinch BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 25 October 15th, 2007 03:15 AM
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
site help LiquidMayCry Forum and Wrox.com Feedback 1 August 2nd, 2005 03:52 AM
how do i change the site icon on a geocitiies site uprocker2 HTML Code Clinic 2 March 4th, 2005 07:20 AM
need help new to this site dprulhiere VBScript 3 December 20th, 2004 09:10 AM





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