Hi everyone,

I have Javascript function (say hello()) in page (abc.aspx)

I want to call this function from (abc.aspx.cs)

In .cs file I have a function say

fun1()
 {
    -
    --
    if (var==1)
         call javascript function here
 }

how can I call javascript function from IF condition??

I dont want to use any web control to raise event and then call javascript.

Is is possible to return a value from javascript and capture it here in .cs file...even a boolean value will do.

please help asap.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.