Buttonimage Alternate Text Not Visible?

Feb 8, 2011

I've a problem with asp:image and asp:imagebutton alternate text: it's not visible when I move the mouse over the image. I declared the object in that way:

<asp:ImageButton ID="ButtonStatus"
ImageUrl='<%# IIF(Eval("Active")=1,"../images/folders/actived.png","../images/folders/deactivate.png")%>' CommandName="ChangeStatus" CommandArgument='<%# Eval("id_repository") %>' OnCommand="FolderCommand"
Enabled = '<% #iif(mySecurity.Admin=1, "True", "False") %>' Width="24px" AlternateText="Change the status"
runat="server" />

and for asp:image

<asp:HyperLink runat="server" ID="url_groups" NavigateUrl="~/action/Group_manager.aspx?action=2">
<asp:Image id="img_groups" runat="server" ImageUrl="~/Images/folders/group_config.png" AlternateText="Group manager"
EnableViewState="false" ImageAlign="Middle" Width="32px" CssClass="navigation" />
</asp:HyperLink>

View 2 Replies


Similar Messages:

C# Storing Alternate Text In Session Variable Or Retrieving From Db?

Mar 2, 2010

I'm building a web system and various clients will have alternate text for default instances throughout the site. One place is the main nav but there are others. The default may be "project" but they may want to call it "event".I'm heading down the road of calling all the terminology settings (there's a list of about 15) and creating an ArrayList that has the id and either the default or their replacement as the items in the ArrayList.I've also got a enum key list called TermKey that has the defaults and the corresponding ID number.

Throughout the code I'll reference TermKey.Project and then do one of these things that I see as options.
1-pull the text from the session (if the client has set it to "event" then the text "event" will be waiting for the call there)2-pull the text from the database every time I need it.3-pull the client's list each time a page loads.Some thoughts on the impact each way or if there is a best practice for

View 5 Replies

Internet Explorer - LinkButton Tooltip Gets Overriden By Image Alternate Text?

Aug 27, 2010

I'm using a lot of LinkButtons in my web application with text and images inside them. All LinkButtons are set with a ToolTip and all images inside the LinkButtons are set with an alternate text.

<asp:LinkButton CssClass="button button-input" ID="btnSearch" runat="server" CausesValidation="False" ToolTip="Search">
<img id="imgSearch" runat="server" src="../../../images/icons/magnifier-left.png" alt="search-something" width="12" height="12" />
</asp:LinkButton>

The problem is that in Internet Explorer the alternate text of the image is shown instead of the ToolTip of the LinkButton. In Firefox this problem doesn't exists, it always show the ToolTip of the LinkButton.

This is the produced XHTML:

<a href="javascript:__doPostBack('...','')" title="Search" id="..."><img width="12" height="12" alt="search-something" id="..." src="../../images/icons/magnifier-left.png"></a>

Is it possible to overcome this issue? Removing all alternate texts will resolve the issue but a better (more standard) way is always welcome!

View 1 Replies

Textbox Text Not Becoming Visible

Oct 3, 2011

I have working on a form where the textbox.visible=false, however if certain conditions are met, such as the selection of something in the dropdown box, the textbox.visible should change to true.

This is not the case, each time, I select the item in the dropdown box the textbox doesn't appear.

Here is the section of the code that doesn't appear to be working as I thought it should

Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
If IncentDescription = "ALL LOAN FEES" Then
TextBox4.Visible = True
Else
Exit Sub
End If
End Sub

View 2 Replies

AJAX :: Accordion Controls Is Visible As Plain Text?

Jun 2, 2010

I am trying to use an accordion control in a sharepoint webpart. The problem though is that all panes that i add to the accordion appear on the page as plain text (no graphics whatsoever). Also, if i hover the mouse over the control or press on a pane using IE8, then i get the error message that the variable $common is empty or not an object.

View 2 Replies

Web Forms :: Radio Button List Missing But Text Is Visible?

Jun 29, 2010

I have a simple form that I am developing with a Radio Button Control with 2 list items. The other day everything looked fine, but today when I run the program and view the form, the circular buttons are missing, although the text of the list items can be seen. When I look in the design view, I can see both the buttons and the text.

View 2 Replies

Web Forms :: Make A Panel Visible Based On The Validation Of A Text Box?

Oct 11, 2010

I have a text box and some validation on it. I want to make a panel visible only when

it is successfully validated,i.e.,textbox entry is valid.Also,I want to capture the entered valid value(it should be integer within 1-8) in a session,based on this number,I am going to add that many rows in an editable grid view.

View 1 Replies

Populate All Text Boxes And Make Them Visible Once A Button Is Clicked?

Mar 10, 2011

I was looking for some better way of coding to populate all text boxes and make them visible once a button is clicked, is there a better way of doing this than I describe below?

The scenario

I have a letter like format on a page with labels displaying address, name etc and it was recommended that on this page some of the information should be able to be edited. The idea I had was to keep the labels displaying the information but then when the edit details button is clicked the labels disappear, text boxes will appear and be populated with the same text as the label to allow the user to edit the details.

I seem to repeating lines of code but changing one thing each time

on page load

Dim Sname As String = Request.QueryString("Name")
lblStuName.Text = Sname
tbStuName.Text = Sname
tbStuName.visible=false
Dim Saddress As String = Request.QueryString("Address")
lblAddress.Text = Saddress
tbAddress.Text = Saddress
tbAddress.visible = false
etc...
on edit button
tbStuName.visible=true
tbAddress.visible = true
etc..

on the save button

sqlStatement = "UPDATE StuTable SET Name = '" & lblStuName.Text & "', Address = '" & lblAddress.Text

My code seems very repetitive in many parts, I was looking for a better coding style to do this can anyone suggest a better way to do it? Is my idea sound right way to do this or can anyone suggest a better way it can be implemented?

View 3 Replies

AJAX :: HTML Editor Custom Popup Button Text Is Not Visible?

Aug 8, 2010

I want to customize Ajax HTML Editor's insert link function so I derived a custom button from OkCancelPopupButton and related popup from OkCancelAttachedTemplatePopup, but the button texts don't appear. See picture below (Cím: URL, Megjelenő szöveg: Display text).

View 6 Replies

Web Forms :: Make All Buttons Visible In TinyMCE Rich Text Editor

Jul 16, 2013

How can I ensure there are proper icons available, like Bold, Italic, Underline, and etc, to the Edit area on the page?

<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="App13._Default" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>TinyMCE_Test1</title>
<style type="text/css">

[Code]...

View 1 Replies

Forms Data Controls :: GridView No Results / Button To Become Visible (btnInsert.Visible=true)?

May 20, 2010

I have a gridview that is bound to a SQL datasource and is filtered via FilterExpression,

the FilterExpressoin is using Contro Parameters in a for of textboxes.

I want a certain button to become visible (btnInsert.Visible=true) when the filterExpression returns no results.

what event should I use? what is the code for that?

View 3 Replies

Making Menu Item Visible Or Not Visible In Master Page?

Jan 25, 2011

I have five menu items that i have created as a user control and placed on the master page. Now i want one of the menu items to be visible only for particular user role and not visible for others. Here is what I did. Its not working though.

Dim DST As New DataSet
DST = dataObject.RunSPReturnDataSet("uspUserProfile '" & Session("UserID").ToString & "'", "mytbl")
'Dim US As New DataSet
[Code]....

View 1 Replies

Web Forms :: Use The Radio Button To Control The Visible And In Visible In Textfield?

Oct 12, 2010

[Code]....

[Code]....

[Code]....

View 15 Replies

Web Forms :: Alternate Of Using Iframe?

May 3, 2010

In my application i am using Iframe for opening aspx page which slow down the speed while redering the controls. Is there any other way of calling aspx page from classic asp.

View 1 Replies

Alternate Row Color In A GridView Using Pure CSS?

Mar 9, 2010

I want to alternate rowcolor in a GridView, using pure CSS, ie: I don't want to use asp.net themes; I'd rather not have to use jQuery, or define define AlternatingRowStyle-BackColor on each gridview (unless there's a reason I must). Here's my CSS (that isn't working):

.gridView {font-size:11px
}
.gridView tr:nth-child(even) {background-color: #FFF}
.gridView tr:nth-child(odd) {background-color: #FFCC00}
.gridView tr:nth-child(even) td {background-color: #FFF}
.gridView tr:nth-child(odd) td {background-color: #FFCC00}

(I included the .gridView {font-size:11px} just to confirm I am using the proper CssClass.) Is this not possible, or am I doing something wrong.

View 1 Replies

Web Forms :: Alternate Way For Using Query String?

Dec 7, 2010

I am using query string when I do a Page redirect.Please could somebody give me an alternate solution for this.I do not want to use Query string in this case

[Code]....

[Code]....

View 4 Replies

Configuration :: .net App That Calls An Exe Under Alternate User Context?

Mar 28, 2011

I'm banging my head against a wall here... can't get to the bottom of this issue. I have code that works fine when debugging in visual studio but breaks when deployed to both IIS 6 and IIS 7.5. Basically, it uses Process and ProcessStartInfo to start a program
(a command line tool, exe) and redirect the output to the web page. It uses the username and password properties of the ProcessStartInfo class to run the exe tool as a specific user. The tool requires admin privelages so I need to run it as such, but certianly don't want to run the IIS service or the asp.net app pool under an admin context.

No exception occurs when run on IIS, but it does not work, when trying to run on IIS 6 I get this error dialog: "The application failed to initialize properly (0xc0000142). Click on ok to terminate the application." It's obviously a security/config issue, but what specifically is the culprit? For IIS 6, an application pool was created for this, runs under 'network service', as usual, but again the process being started by the system.diagnostics.process class is run under a different account, which is an administrator account. For IIS 7.5, same thing,an app pool was created, so it runs under the 'iis appPoolNameOfPool' context.

View 6 Replies

AJAX :: Update Panel To NOT Visible,makes The Media Player's Panel NOT Visible?

Sep 29, 2010

I have a web page that I have a media control player on along with other controls in a table.It's a training video, so the controls are not visible.So the user can advance to the next web page,I thought I would have a button control inside an update panel with a time control so that the user had to watch the video and then the button control would appear after the video completed.I'm setting the button update panel to NOT visible and then turning it one when the time control elapses the same amount of time that the video runs.My problem is that when I set the visible property of the update panel to NOT visible it also makes the media player's panel NOT visible too.They are in two different panels.The medial player in a standard panel and the timer control connected witha separate panel that contains the button for the user to proceed. When I set the visible property to "true" the media player runs but the update panel with the button is visible also.

[Code]....

This is the code for the update panel and continue button that is in a separate table cell.I even split the table and so this is in a completely separate table but I still get the same behavior.

View 1 Replies

AJAX :: Image Is Visible In Image Control In Design Time But Not Visible On Runtime

Oct 3, 2013

I am learning asp.net using Visual web developer 2008 express.

I have an image control with the html code below

<div class="Header">
<asp:Image ID="image1" runat="server"
ImageUrl="D:/Master/test.jpg" Width="500" Height="300"
AlternateText="UNRA Fort Portal Intranet"/>
</div>

In design view, the image shows but when i run the app, the image is not shown. Only the alternate text is displayed.

 The css code code as  below.

.Header
{
top:10px;
left:20px;
position:absolute;
width:800px;
background-image:URL(D:/Master/test.jpg);
background-repeat:repeat-x;
}

View 1 Replies

Getting Entity Framework Connection String From Alternate Location?

Mar 7, 2011

How can I retrieve the Entity Framework 4 connection string from a custom config file, not web.config?

Edit: Is it reasonable to delete the default constructor generated code and recreate it in a partial class to use the pulled in connection string?

I would really like to avoid changing all references to the EF context with an overloaded method including the connection string.

@BrokenGlass: This is what we ended up with:

[code]....

View 4 Replies

Generating Images: Alternate Font By User Agent (OS)?

Jun 7, 2010

I need to generate small images for certain parts of text. Those will have to fit into the text seamlessly. I know I can not make up for every browser font settings available, but how do I have to check for Linux, Mac and Windows users depending on the user agent? I want to use the right font (of the three "Verdana, Arial, Helvetiva") for the right user agent OS.

So:How do I check for the OS? What do I have to compare to in the user agentWhere can I get the other two fonts. Does the Windows-included Verdana look the same as the one used on Linux (or, is it free anyway? I don't know much about fonts)? Where do I get Helvetica? Is it Mac OS licensed?

Any code examples can be in either c# or VB.NET. I can read both.

View 2 Replies

Databases :: Alternate Logic For Removing Temporary Tables?

Feb 1, 2011

We have some stored procedures in mysql which use temporary tables.For performace reasons we need to replace them and write alternate code.

View 1 Replies

C# - Alternate Way To Store Large Dynamic Objects Instead Of Session?

Mar 29, 2011

I have a web application developed in .net 2.0 I am storing large business objects in session, which change frequently.

Some times I observe server error. Is this causing the error?

Is there any alternative way to store these objects?

View 3 Replies

Web Forms :: How To Provide Alternate Image When Original Is Missing

Oct 11, 2012

How to provide an alternate image when the original image is missing ....

View 1 Replies

Web Forms :: Using Loop To Send Multiple Emails With Alternate Views

Feb 1, 2010

[Code]....

Using a loop to send multiple e-mails with alternate views

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved