Hi
Vinod,
You can write java script from server side (.aspx.cs) using following line:
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "ScriptRegistration", "getElementById('form').submit();", true);
Please do let me know, if you have any doubt.
Please provide
Vote if this would be helpful to you.
Thanks,
Imdadhusen