J
JB
Hello
I have a c# ASP.NET web application that uses Javascript and
codebehind. There is a CheckBox on my web page that the onclick event
onclick="DisplayInfo()" executes a javascript function named DisplayInfo()
that looks like this:
function DisplayInfo()
{
}
The Javascript function DisplayInfo first does some things and when it
finishes it needs to call a procedure in the codebehind of the C# ASP.NET
application that looks like this:
public void ReadRows()
{
strsql.connection = new sqlconnection();
strsql.command.text = "select * from dSource";
strAdapter.selectcomman=strsql;
strAdapter.fill(ds, "tblname");
}
Can Anyone tell me how I can call the above public void ReadRows()
procedure in my ASP.NET codebehind page from the above javascript function
named DisplayInfo()?
JB
I have a c# ASP.NET web application that uses Javascript and
codebehind. There is a CheckBox on my web page that the onclick event
onclick="DisplayInfo()" executes a javascript function named DisplayInfo()
that looks like this:
function DisplayInfo()
{
}
The Javascript function DisplayInfo first does some things and when it
finishes it needs to call a procedure in the codebehind of the C# ASP.NET
application that looks like this:
public void ReadRows()
{
strsql.connection = new sqlconnection();
strsql.command.text = "select * from dSource";
strAdapter.selectcomman=strsql;
strAdapter.fill(ds, "tblname");
}
Can Anyone tell me how I can call the above public void ReadRows()
procedure in my ASP.NET codebehind page from the above javascript function
named DisplayInfo()?
JB