Ask a Question related to ASP.NET General, Design and Development.
-
CT #1
Re: runat=server
Can you show use some of the HTML in question?
--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
[url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
"trinitypete" <support@trinity.com> wrote in message
news:0b9401c3575b$51b20ed0$a401280a@phx.gbl...> if you have an tag/control that is marked up runat=server,
> then can you still apply client side Java?
>
> e.g. I have an aspx form and in the HTML HEAD I decalare a
> javascript function - DoSomething()
>
> The body tag looks like this:
> <body id="bodyelement" runat="server">
>
> This is so that I can access the document back colour from
> code behind.
>
> I modify the body tag by appending inload="DoSomething()"
> but when the form runs it says form.aspx does not contain
> a definition for DoSomething()
>
> Thanks in advance. Pete.
>
>
CT Guest
-
Add form runat=server tags in Composite Control
Hi, I am using a Composite Control that encloses two Usercontrols. Both Usercontrols require to be enclosed in a <form runat=server> tag. I... -
'DataGridLinkButton' must be placed inside a form tag with runat=server
Can you please explain this more? I am new to asp.net, and not sure I understand what you're saying. Do you mean simply make sure your control is... -
error..of type 'TextBox' must be placed inside a form tag with runat=server
Try removing Runat=server from the textbox inside the template. Eliyahu "Jim" <peesa_govno@hotmail.com> wrote in message... -
runat=server on HTC defined tag.
Is there a way to access an HTC defined tag as an HTMLControl. I want to set an attribute on the tag from the server. <myNamespace:myTagName... -
runat="server"....a simple html textbox or a webform server textbox...that is the question.
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the... -
trinitypete #2
Re: runat=server
HTML being used
<HTML>
<HEAD>
<title>Bug Maintenance</title>
<meta content="Microsoft Visual
Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript"
name="vs_defaultClientScript">
<meta
content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<script language="JavaScript">
<!--
function dosomething()
{
alert('DoSomething Reached');
}
//-->
</script>
</HEAD>
<body id="bodyelement" runat="server"
onload="dosomething()">
etc.
When the form loads I get the message
Compiler Error Message: CS0117: 'ASP.BugMaint_aspx' does
not contain a definition for 'dosomething'
Thanks, PeteMSF>-----Original Message-----
>Can you show use some of the HTML in question?
>
>--
>Carsten Thomsen
>Enterprise Development with Visual Studio .NET, UML, andrunat=server,>[url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
>"trinitypete" <support@trinity.com> wrote in message
>news:0b9401c3575b$51b20ed0$a401280a@phx.gbl...>> if you have an tag/control that is marked updecalare a>> then can you still apply client side Java?
>>
>> e.g. I have an aspx form and in the HTML HEAD Ifrom>> javascript function - DoSomething()
>>
>> The body tag looks like this:
>> <body id="bodyelement" runat="server">
>>
>> This is so that I can access the document back colour()">> code behind.
>>
>> I modify the body tag by appending inload="DoSomethingcontain>> but when the form runs it says form.aspx does not>>> a definition for DoSomething()
>>
>> Thanks in advance. Pete.
>>
>>
>
>.
>trinitypete Guest
-
Unregistered #3
Re: runat=server
Serverside
<script> tags are distinguished from client-side <script> tags by the use
of the runat=server attribute.
This was taken from the book written by Dino Esposito on ASP.NETUnregistered Guest



Reply With Quote

