Thanks, your code helped me to include css file also, i was not able to include css file through cs by my code. All i did is:
protected void Page_Init(object sender, EventArgs e)
{
Servicepath = "xmls/saltours/general/services.xml";
string jspath = "scripts/companyname/main.js";
String csname = "PageLoadScript";
Type cstype = this.GetType();
ClientScriptManager cs = Page.ClientScript;
cs.RegisterClientScriptInclude(cstype, csname, ResolveClientUrl("~/" + jspath));
ClientScript.RegisterClientScriptBlock(typeof(PackageList), "one", "");
ClientScript.RegisterClientScriptBlock(typeof(PackageList), "two", "");
}
and I got what was required.... Thanks,
Anand Desai Developer Atharva Infotech