|
Havea look at the AdRotator control.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Do you know what Google AdSense is? Ads get displays on your website, all that you do is to place javascript on you page that displays the ad from Google on your page.
For each advertising company there is a different set of javascript tags that pulls the ad from the advertising company. I thought of putting each javascript into it's own user control, does this make more sense. And everytime the page is refreshed a different user control is displayed.
How?
|
|
|
|
|
.NET Enthusiast wrote: Do you know what Google AdSense is?
'fraid not.
However, if you need to render out some Javascript, a User control or Server control would be suitable. Use Page.ClientScriptManager to inject Javascript code into the page your control resides in.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i have one string and store charcter like 1,3,4,5,6. i want to split this string by , and find each value of string
please help me.
|
|
|
|
|
|
|
Parwej Ahamad wrote: string[] arInfo = new string[4];
Creating that array is totally superflous. It's only thrown away when you assign the result from the Split method to the variable. Just declare the reference:
string[] arInfo;
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Ok, Guffa
I have delete my post
Thanks
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Parwej Ahamad wrote: I have delete my post
Why?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
The string class has a split method - did you look ?
string s="1,3,4,5,6";
string [] nums = s.Split(",");
foreach (string s in nums)
{
int n;
if (int.TryParse(s, out n))
{
// Do something with n.
}
}
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
this message board discusses the ASP.NET issues
your question has no relation to ASP.NET
you better put such question in C# board
Mohamed Gouda
Egypt
|
|
|
|
|
how to create exit button? meaning close the window.
|
|
|
|
|
window.close() I guess. That's javascript, of course.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Is there any way to close the window without alerting the user?.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
No - the web is not a friendly enough place for browsers to allow that sort of thing.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how can i use it in asp.net? sorry to disturb u again..
|
|
|
|
|
It has nothing to do with ASP.NET. It's just javascript.
|
|
|
|
|
u might have heard about the monster.com website , there , the moment u update ur resume , there u can close the window by the button click , and without noticing the user !!!!!!
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Wednesday, March 5, 2008 2:35 AM
|
|
|
|
|
If your script had opened a window, you have the rights to close it through window.close() without requesting permissions from the user. Otherwise, the web browser is obliged to get a nod from the user whether to accede to your request.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
can u elaborate this process of closing the window without user permissions?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
What he is trying to tell is if the window has been opened through Javascript then you will not be asked for the permission otherwise confirmation box will appear.
Apurva Kaushal
|
|
|
|
|
window is opening through aspx page , still is does not ask the user confirmation , in the monster.com website , while u click the update button , to update the resume.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
If the window is opened by a JS, it is possible.
|
|
|
|
|
what is JS? i try to use Response.Close() but this page appear "Internet Explorer cannot display the webpage".
|
|
|
|