|
Unfortunately I suspect winamp may continue to live, even if he does post a link
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
I have a banner on my web page that loads when the user clicks a link but I want it to load automatically on page load and want it to be closed by selecting the close link. The first thing is not working for me. How it can be loaded on page load.
Thanks.
|
|
|
|
|
Your question makes no sense. Page load is an event that occurs during the page lifecycle. If you load it on page load or prerender, the end result is the same, it's seen when the lifecycle ends. If you want to open a popup when the page loads, you need to add javascript to do that. It's hard to know exactly what you want, based on this question, it's just not clear.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi
Here you can the banner that I meant
http://picasaweb.google.co.uk/arunagulla/Devloper
If I say close it will close my banner and shows more link. I know that we need to add javascript, I was using onclick event like here
<span id="btnInfoBar" onclick="Slide();" style="cursor:pointer;cursor:hand;font-size:12px;text-decoration:underline;"><b>close ...</b></span>
My page calls the Slide() javascripot function. This functionality is working only if i say onclick but i want it to work on page load so used onload event but still i cant see my banner after the loading the page.
I hope you understand it now.
|
|
|
|
|
So, you need to call Slide() when the page is loaded, not in page load in the code behind. RegisterClientScriptBlock will help wit this.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I put this this.Page.RegisterClientScriptBlock("onload", "Slide()");
in the code behind but its still no use.
|
|
|
|
|
You need to put the <script> tags in your string, counterintuitive, I know.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi
Agaibn related to using the create new user custom control
Once Ive created the user and navgate back to my website the user permissions appear to have been reset.
Is there a way to stop this happening?
thnaks
We are not a Code Charity
|
|
|
|
|
I'm on a role now!
Solved this one too, use the following:
LoginCreatedUser="false"
We are not a Code Charity
|
|
|
|
|
Hi
I am using the create new wizard tag for my website.
However for the continue buton event I want to close the window once the user has completed the process.
But when I put the following code in:
javascript:void(window.close())
it doesnt work, it just shows an error message saying that the page cannot be dispalyed instead of closing the window.
any help on this would be great, thanks!
We are not a Code Charity
|
|
|
|
|
Just found the solution:
Response.Write("window.opener=self;window.close();");
thanks!!
We are not a Code Charity
|
|
|
|
|
hello i m calling a javascript function on page load like...
Page.RegisterStartupScript("abs", "<script language=\"JavaScript\"> printAlert();</script>");
and my java script function is...
function printAlert()
{
var check=confirm("Do You Want To Print The Certificate");
print(check);
return check;
}
function print(res)
{
var color;
if(res==true)
color= document.getElementById("<%=btnPrint.ClientID%>").bgColor="red";
}
and on page load i m calling another funtion like
if (btnPrint.BackColor.ToString() == "red")
{
myC#function();
}
</pre>
js function is working fine but on page load btnPrint.BackColor is always showing empty...so my c# function is never called....
please someone help
|
|
|
|
|
Have you stepped through using firebug/firefox to see if the js is doing what you expect it to ? Is bgColor the right property here ? Or is it blah.style.bgColor ? js just invents properties the first time you access them.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
when i m doing ok on confirm box it is showing red on
alert(color);
but my c# function is not calling...please help me....i have also tried through...
.style.backgroundColor="red";
it is changing the button's color but my motive is not to change the button's color....i want to call my c# function on basis of my condition...
if (btnPrint.BackColor.ToString() == "red")
{
myC#Function();
}
but its not working...
please help me
|
|
|
|
|
If you do a postback, does it stay red ? If not, then the property is not stored in viewstate. If so, then I'd create a control and set the BackColor property in the aspx. Then I'd run the page, view the source, and see exactly what property ASP.NET is setting in the control.
At the end of the day, I'd still lean towards using a hidden field.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
my problem is still a problem....please someone help
|
|
|
|
|
I did. What happened when you did what I suggested ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
i tried that through hidden field....and on step by step debugging i checked that also...it is first compiling these lines...
if (btnPrint.Value.ToString() == "1")
{
myC#function();
}
and after that javascript function so my c# function is never called
please give me a solution
|
|
|
|
|
The solution is to debug your javascript - did you get Firebug and Firefox as I suggested ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi
I am sure what Gauss suggested is the way you must address the issue. Open your web page in Mozila FireFox ( this is just a browser like Internet Explorer but helps a lot for debugging Javascript error. ) and idntify which line of your JS code creates the problem !!!
Thanks,
Arindam D Tewary
|
|
|
|
|
hi
i am getting date value from database formate like '5/28/2008 10:12:00'
but i am exepecting result like 'May 28 10:12'
how can i convert like this
please help me
with regards,
bretto
|
|
|
|
|
Why did you expect that format ? Did you ask for it ? That's a custom format, you'd need to come up with a custom format string to pass to the ToString method.
10 seconds with google gave me this[^]. I googled datetime tostring. I suggest reading the article I link to in my sig.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
hi christiam graus
thanks for ur kind help
this link is very use full for me
with regards,
bretto
|
|
|
|
|
brettokumar wrote: '5/28/2008 10:12:00'
12 past 10 on my 30th birthday! nice.
|
|
|
|
|
In MS Aceess we use yesornO datatype but in SQL Server 2005 which datatype should use instead of yesorno datatype.
|
|
|
|