CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/9/2008 8:07:32 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 106 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
jonnyjc273
Asp.Net User
asp:linkbutton mouse over messages in status bar1/9/2008 8:07:32 PM

0/0

Hi,

 When I mouseover an asp:linkbutton on my webpage some code shows up in the status bar, bottom left hand corner of i.e saying javascript:webform_....true..false etc, all I want to do here is display the page this link will navigate to. Is there a way this can be achieved?

 

Thanks, Jonathan 

AceCorban
Asp.Net User
Re: asp:linkbutton mouse over messages in status bar1/9/2008 8:13:40 PM

0/0

Try this:

I don't know how an asp:linkbutton will render in HTML (an anchor maybe?), but I'm pretty sure whatever it renders supports javascript's onmouseover, onmouseout functions.

 

<asp:linkButton onmouseover="window.status='your message';" onmouseout="window.status=''";/>
 
I never lose, some people are just better than me at winning.
jonnyjc273
Asp.Net User
Re: asp:linkbutton mouse over messages in status bar1/10/2008 10:06:32 AM

0/0

Thanks for your reply. Its nearly there once I 'mouseout' I get my message but unfortunately one mouseover I still get all the javascript code etc.

Below is the linkbutton I have created. (Please note I have tried with both the ; (semi-colon) like in the above example and get the same results.

 Any more ideas? 

 

<li><asp:LinkButton onmouseover="window.status='TEST'" onmouseout="window.status=''" ID="property" PostBackUrl="~/Default.aspx" CausesValidation="false" runat="server"><b>Property</b></asp:LinkButton></li>

 

Amanda Wang - M
Asp.Net User
Re: asp:linkbutton mouse over messages in status bar1/11/2008 11:20:30 AM

0/0

Hi,

jonnyjc273:
but unfortunately one mouseover I still get all the javascript code etc.

You should append the code: return true at the onmouseover event, but this will make the satus always dispay, so you also need to set the status is empty in the onmouseout event

You can try to refer below code:

1. the aspx code:

<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="http://ww.126.com" onmouseout="window.defaultStatus =''" >LinkButton</asp:LinkButton>
         <script type="text/javascript">
    function abc(url)
    {      
        window.setTimeout('window.defaultStatus =\''+url+"\'",10);
    }
   

2. the codebehind:

 protected void Page_Load(object sender, EventArgs e)
    {
        this.LinkButton1.Attributes.Add("onmouseover", "abc('"+LinkButton1.PostBackUrl+"');return true;");
    }

Hope it helps.
   


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Proceedings of the 2004 Summer Computer Simulation Conference: July 25-29, 2004 in San Jose, California, USA Authors: Agostino G. Bruzzone, Edward Williams, Pages: 578, Published: 2004

Web:
overwrite link button's status bar message - ASP.NET Forums I am using link button in some place. when my mouse is on the link button (on ... I was wondering if there is any way to over write the status message, ...
Change message on Status Bar [Archive] - DevX.com Forums [Archive] Change message on Status Bar ASP.NET. ... bar when the mouse is passed over a link button or an image > button on a Web Form? ...
ASP.NET.4GuysFromRolla.com: Displaying Text in the Browser's ... Oct 21, 2004 ... Move Your Mouse Over Me and Look in Your Browser's Status Bar! ... Extending the LinkButton Control One of the main reasons ASP. ...
Override the Standard Status Bar Message of the DataGrid: ASP Alliance Notice that the status bar shows "mouseover" as its message, which is what we ... Hover over the standard LinkButton and see the onerous javascript message. ...
Change display in status bar with link button ? - ASP.NET General RE: Change display in status bar with link button ? Posted: 07-02-2003, 01:55 PM . This problem can be partly resolved by using the mouseover ...
set javascript status bar text This script will allow you to write a message to the status bar at the bottom of the browser when a viewer places the mouse over a link on your page. ASP. ...
Getting Started with WebExtenders for ASP.NET Jul 15, 2003 ... LinkButton) Web Server control using the Microsoft Visual Studio . ... note the default status bar text before the cursor is moved over a ...
Override the Standard Status Bar Message of the DataGrid: ASP Alliance Steven Archibald demonstrates how to override the status bar message for ... user's mouse hovers over a link in the DataGrid, they will see a status message ...
How to place a custom Status bar message MouseOver this link and look at the status bar below. If you want to have a default status bar message other than the normal blank (nothing) enter another ...
Web Forms FAQ - Controls 25.15 How to implement mouseover effects in a web server control? .... 25.19 How to disable status bar messages for Hyperlink Controls? ...




Search This Site:










how to save profile properties in cookie?

question regarding version information

len, mid, right statements

name 'xxxxxxx' is not delcared

giving a drop down list a null value

convert asp to html

at the time of mouseover and mouseout pass the databse values and popup a detailsview using asp.net with c#

problems wiht drop down list

trying to create a dynamic dataadapter

string encoding

unable to update the data in the datagridview[c# asp.net]

please help! update statement issues!

a quick lesson on file uploads for me.

ssl port number in url-mandatory?

list box forgets the items selected

connection sql server 2005

asp.net and index server

preventing login request when attempting to write a file on a hosted server

data table empty

truncate string

settings the correct permissions for a xml file?

web config error

rss feeds - how to?

single point entry systems

stuck again

download file?

can "#include" directives be used within .aspx files on iis5.1?

can i limit the number of words in a text box?

need help setting up free 3 tier example ???

online booking system

  Privacy | Contact Us
All Times Are GMT