Hi Gurus,
I have a requirement like below. In my asp.net(C#) code behind file "MyPage.aspx.cs " file I have a function like below:
void PopulateAccount (int AccountNumber)
{
this.AccountNum ber.Text = AccountNumber;
}
I want to call this function from JavaScript (inside the window.onload function) from my MyPage.aspx page, something like below:
window.onload = function()
{
// I need to call my PopulateAccount method inside this function so that it can populate the AccountNumber Text Box
}
is this possible ?. Please help me how to do this . I am using ASP.Net 1.1 with C#.
Thanks and Regards,
Amit
I have a requirement like below. In my asp.net(C#) code behind file "MyPage.aspx.cs " file I have a function like below:
void PopulateAccount (int AccountNumber)
{
this.AccountNum ber.Text = AccountNumber;
}
I want to call this function from JavaScript (inside the window.onload function) from my MyPage.aspx page, something like below:
window.onload = function()
{
// I need to call my PopulateAccount method inside this function so that it can populate the AccountNumber Text Box
}
is this possible ?. Please help me how to do this . I am using ASP.Net 1.1 with C#.
Thanks and Regards,
Amit
Comment