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

September 22nd, 2010, 02:05 PM
|
Authorized User
|
|
Join Date: Sep 2010
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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..
|

September 22nd, 2010, 02:12 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

September 22nd, 2010, 03:12 PM
|
Authorized User
|
|
Join Date: Sep 2010
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

September 22nd, 2010, 05:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |
|