Hi,
I'm using a mix of both ways, inline code an external files. Have a
look at the example at
http://munich.schwarz-interactive.de/feedback.aspx. There I have an
external file scripts/feedback.js which contains something like a
class. In the html source I add following line:
<script type="text/javascript">
var f = new formFeedback(document.forms[0], $("d_Message"));
</script>
On the server-side code this will be done with <%= ClientID %>. So, a
mix of both is working perfect.
Regards,
Michael
On 5/10/06, Albert Weinert <[EMAIL PROTECTED]> wrote:
>
> Jolly schrieb:
>
> > Well, the simplest solution is to use inline ASP, and use ClientID
>
> I don't thing that inline ASP is general good solution. Personally i
> don't even like it :)
>
> > property of the control from within the javascript. Use following code:
> >
> > document.getElementById("<%= TextBox1.ClientId %>").value = rs.value;
>
> Which is not possible if you have the JavaScript in an external file. If
> you using Ajax.NET Pro you have large JavaScripts. So an external file
> is a lot easier to handle.
>
> --
> Freundliche Grüße
>
> Albert Weinert
>
> http://der-albert.com
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---