Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 September 22nd, 2010, 02:05 PM
Authorized User
 
Join Date: Sep 2010
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default about javascript

in page 354, i write var YourName = $get('YourName'). value but intellisense doesn't recognize the value , it doesn't mention it in the list, also in the same source page, its gives me a warning the page cannot find the aspx.cs file??

another question about this javascript the helloworldcallback parameter result.. this is a constant name in all methods ? like the error parameter?

just these 3 questions :D

and why should the javascript code be below the button and textfield? can't it be above?

Last edited by Edward Colins; September 22nd, 2010 at 02:11 PM..
 
Old September 22nd, 2010, 02:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
in page 354, i write var YourName = $get('YourName'). value but intellisense doesn't recognize the value , it doesn't mention it in the list
That's by design. You can manually enter the value property.

Quote:
also in the same source page, its gives me a warning the page cannot find the aspx.cs file??
Hard to tell what the problem is as you're not giving me enough information as to where and how you get this error, what page this is about, whether or not the file is there and so on.
Quote:
another question about this javascript the helloworldcallback parameter result.. this is a constant name in all methods ? like the error parameter?
I don't understand this question.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 22nd, 2010, 03:12 PM
Authorized User
 
Join Date: Sep 2010
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the 3rd question, is the parameter always called result, and error? or could they be named other names?

another thing, does the javascript code has to be below the button and text?
 
Old September 22nd, 2010, 05:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
the 3rd question, is the parameter always called result, and error? or could they be named other names?
The best answer I can give you to that question (as you'll learn the most from it - which is what programming is all about) is: why don't you try it out?
Quote:
another thing, does the javascript code has to be below the button and text?
The functions can be placed anywhere, but the handler code has to be below as it requires the controls to be present in the HTML. If you don't want that, you can use code like jQuery's document ready to postpone exeution until the DOM has finished loading (which means the referenced controls are available).

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
about javascript imran_python ASP.NET 1.0 and 1.1 Basics 2 December 23rd, 2008 09:04 PM
stop current javascript function using javascript sakthi Javascript 3 June 2nd, 2008 03:30 PM
JavaScript sumith ASP.NET 2.0 Basics 2 October 2nd, 2007 09:59 PM
"text/javascript" and "javascript" rupen Javascript 1 June 24th, 2005 07:20 AM
new to javascript shankhan Javascript 2 April 26th, 2005 05:34 AM





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