Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
  #1 (permalink)  
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..
Reply With Quote
  #2 (permalink)  
Old September 22nd, 2010, 02:12 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: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
  #3 (permalink)  
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?
Reply With Quote
  #4 (permalink)  
Old September 22nd, 2010, 05:10 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: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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!
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
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



All times are GMT -4. The time now is 05:27 AM.


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