Where to store client code

M

Mark Goldin

I want to add a client code - code that will be running on a client side.
Should I create a new class?

Thanks
 
C

CMA

when u need to run the client side code...
as an example, i need to give a simple message "Hello" to the user when
loading the page...
what i need to do is...

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
string strMessage = "<script
language=javascript>alert('Hello');</script>"
Response.Write(strMessage);
}

i think you can now arrange your code as you need....

CMA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top