FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How does javascript linked to an asp.net page?





gctpoy
I have created separate javascript file and trying to link with aspx file.
This method i used in page load of the aspx.cs file.
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "hello1();", true);

This is the javescript's content
function hello1()
{
alert("Hi welcome");
}


On page load and click of button,the hello1 method is called.I believe this is something with nature of register client script block.

Please advise how to attach javascript file along with asp.net file.

Meanwhile I would be googling around,expecting replies from you guys.
gctpoy
The event onclientclick is used for handling client events.
Related topics
I'd love ASP.NET support
Using TinyMCE with ASP.NET
Flash & ASP.NET
ASP.NET - Is this possible with frihost?
Web hosting com Asp.net
Suggest me a ASP.NET Spidering Book
Running ASP && ASP.NET -> APACHE
Asp.net 2.0 and ajax technology
asp.net 2.0
Javascript vs asp/php
Using Windows Media Player with Asp.NET
Does Grid view in ASP.net have ItemDataBound event
Using Windows Media Player with Asp.NET
asp.net email form
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.