Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Four simple (I think) questions

Thread Tools

Four simple (I think) questions

Cal Who
Posts: n/a
The element shown below works OK. But if I add runat="Server" I get the
following compile error:

Too many characters in character literal
<iframe id="QQQQQ" name="QQQQQ" src="../Home/TestFile.htm"

onload="setWidthHeight('QQQQQ');" style="border: 2px solid aqua;"


Got any idea what is wrong?

Second question:
When is it OK to use "this" in an aspx file to refer to the element it is
As in: onload="setHeight(this);"
(I understand how to use such an argument in the JavaScript function)

Third question:.
Does onload refer to a code-behind method or a Javascript method. Or maybe I
should ask: When does...

Sometimes I see both "name and "id" specified (as in the above)

I remember reading the doc and "name" had to be used if, for example, the
iFrame is a Target of a TreeNode. I do that and it works OK but I wonder
what is the rational for not using Id? When do I need to specify both?

I really appreciate the answer to one or more of the above!

Reply With Quote

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Canon EIS mirrorless system - Four Thirds, but not Four Thirds! Bruce Digital Photography 31 09-25-2010 05:38 AM
One computer out of four on network VERY slow =?Utf-8?B?QmlsbHlCb2I=?= Wireless Networking 4 12-29-2005 02:49 PM
Four Rinda Questions entropic_rune Ruby 1 11-21-2005 06:33 PM
Re: Questions....questions....questions Patrick Michael A+ Certification 0 06-16-2004 04:53 PM
Newbie questions (four of them) Blue Ocean C Programming 40 01-14-2004 12:34 AM