Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 12th, 2007, 09:34 PM
Authorized User
 
Join Date: Oct 2006
Location: , , .
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.

  #2 (permalink)  
Old March 13th, 2007, 01:57 AM
Imar's Avatar
Wrox Author
Points: 72,022, Level: 100
Points: 72,022, Level: 100 Points: 72,022, Level: 100 Points: 72,022, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,076
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #3 (permalink)  
Old March 13th, 2007, 09:06 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
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.

  #4 (permalink)  
Old March 13th, 2007, 02:50 PM
Imar's Avatar
Wrox Author
Points: 72,022, Level: 100
Points: 72,022, Level: 100 Points: 72,022, Level: 100 Points: 72,022, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,076
Thanks: 80
Thanked 1,587 Times in 1,563 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.
 


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
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



All times are GMT -4. The time now is 08:01 PM.


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