|
window.open("http://....");
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
It will open the window as popup !!!
cheers,
Abhijit
|
|
|
|
|
Yes, sorry for that. it was my mistake
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
no i dont want open a new page
function move()
{
i think its window.location = "http://...."
}
has it ; in the end or not
and when i want to call it i how should i write?
onclick=javascript:move();
|
|
|
|
|
change window.location.href
Cheers!!
Brij
|
|
|
|
|
use this
<script type="text/javascript"><br />
<!--<br />
window.location = "http://www.codeproject.com/"<br />
</script>
and Here is
5 different way[^]
cheers,
Abhijit
|
|
|
|
|
Hi friends,
I am using .NET 2008 version. I want to include my js files, but not by standard way like '<script type="text/javascript" src="scripts/companyname/main.js"></script>' but from .cs file.
The problem is in above example, "companyname" can change and its comming from another xml file, which i am reading in .cs, so i have to give source of js file in cs.
I have found 1 function "RegisterClientScriptInclude" in C#, but its not working. Please any one can help me to perform my task or please show me how to use "RegisterClientScriptInclude" function.
Thanks for any help in advance. Happy Coding.
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hi Anand,
try this line of code where u r currently writing the RegisterClientScriptInclude function,replace with this
ClientScript.RegisterClientScriptBlock(typeof([ur .cs classname here]),"one"," ");
company name is a variable that will include the name from ur xml file
hope it helps
Rajeesh K
|
|
|
|
|
Thanks Rajeesh,
It is another good and shorter way, let me try by urs way, it'll save my time.
Thanks for help.
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
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", "<link href="\"styles/companyname/style.css\"" type="\"text/css\"" rel="\"Stylesheet\"" />");
ClientScript.RegisterClientScriptBlock(typeof(PackageList), "two", "<link href="\"styles/companyname/st_home.css\"" type="\"text/css\"" rel="\"Stylesheet\"" />");
}
and I got what was required....
Thanks,
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Dont bother for this question friends, i have solved it myself. all i did is:
string jspath = "scripts/" + this.company + "/main.js";
String csname = "PageLoadScript";
Type cstype = this.GetType();
ClientScriptManager cs = Page.ClientScript;
cs.RegisterClientScriptInclude(cstype, csname, ResolveClientUrl("~/" + jspath));
Thanks friends and use this if any one is faciong this problem.
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
just rember one more thing, when you have AJAX on that page you have to use ScriptManager, insted of ClientScriptManager
cheers,
Abhijit
|
|
|
|
|
Thanks buddy
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
how do i use this by using system.web.mail
or
system.net.mail;
any code sniptte that will help
please give me .
thanks in advance
|
|
|
|
|
Well, as your question is somewhat obscure, try google.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
what is this
Cheers!!
Brij
|
|
|
|
|
Dont SPAMing This Site
cheers,
Abhijit
|
|
|
|
|
I have to make an application similar to google calender.can any one help me how to do this.
the problem is I am unable to display a empty gridview
modified on Tuesday, October 14, 2008 6:39 AM
|
|
|
|
|
raghvendrapanda wrote: can any one help me how to do this.
Have you tried Google?
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
use table rather than GridView,we have made a similar application using table itself.
cheers,
Abhijit
|
|
|
|
|
One thing,You can use google calendar it is free.if you want to make a own custom calendar use Exchange Server and the custom application
Cheers!!
Brij
|
|
|
|
|
can you describe your problem in nit detail n specifocally
Cheers!!
Brij
|
|
|
|
|
After loging into gmail>more>calender
in this page there is a canender control and a gridview like control. in grid view like control we can set our events on click event at every one hour interval.
I have to make this.
please help.
|
|
|
|
|