Forms Data Controls :: Remove Border Datalist Using Hyperlink?

Dec 18, 2010

I have a Hyperlink inside a Datalist displaying an image... and on "IE" i get a blue border around it...

I´ve tried removing it through Css but didn´t suceed

Here is the .aspx page!

[Code]....

and here is The ItemDataBound

[Code]....

View 1 Replies


Similar Messages:

Web Forms :: Remove Red Border Around The Image When Using "HyperLink" Control?

Feb 9, 2011

I have few images on my aspx website and was trying to do a simple link to another page from the image. Noticed that the image control does not let me specify the url, and when i was playing wtih <a href... in source code i run into some issues.

Then i noticed HyperLink control and i used that one. In a property window i see "ImageURL", and "NavigateURL", so i guess that eliminated the need for a "Image" control.

The only problem that i run into with the "hyperlink" control is that once the link is created, the image has a "nasty" red border which i need to remove but i am not sure how to. I set border style to None and it did not work. Then i tried to set border width to 0 and still i have a red border around my image.

How do i remove that annoying red border and is there a better way to do image link with aspx?

View 4 Replies

Forms Data Controls :: Remove The GridView Outside Border For Chrome And Safari?

Apr 19, 2010

i have gridview its working in IE and FF fine, but when i'm run in the Google chrome and safari, i gor outside border.

how i can rmove the only outside border to this both broswer?

View 6 Replies

Data Controls :: Change Border And Background Color Of Button When Clicked In DataList?

May 7, 2015

After item databound I've one or more button inside a datalist. How can I format the clicked button with different border style from the unclicked buttons?

View 1 Replies

Forms Data Controls :: GridView Row Border Style And Border Color

May 6, 2010

i have a gridview that directly bind to a dataset.Hence there is no column in code behind for me to control the boarder color and border style.I try my code in RowDataBound, but it does not take effect.

View 3 Replies

Forms Data Controls :: How To Remove Hyperlink When The Gridview Column Value Is 0

Mar 8, 2010

[code]....

BroughtForward and Pending both columns contain hyperlink values. When we click the values then another page opens with the details. I don't want to open another page if user click 0 in any column or in other words how to remove hyperlink if there is 0 in any cell?

View 16 Replies

Forms Data Controls :: Using Hyperlink Control With DataList?

Mar 9, 2010

I have a datalist that displays text which links to another page. Depending on which value is selected the data shows the relevant data for the selected record. Using the code below I have tried to insert the 'RecId' value into the url to get the correct data but I get an error because the syntax is wrong.

<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" ShowFooter="False" ShowHeader="False">
<ItemTemplate>
<asp:HyperLink ID="EventDescLabel" runat="server" NavigateUrl=http://www.MySite.com/Courses/tabid/98/ModuleID/509/ItemID/" & '<%# Eval("RecId") %>' & "/mctl/EventDetails/Default.aspx"
Text='<%# Eval("EventName") %>' />
</ItemTemplate>
</asp:DataList>

View 4 Replies

Forms Data Controls :: Remove Control In Datalist?

Jan 18, 2010

i have an datalist and some controls are in itemtemplate in it, what do i do if i wanna remove specific control in datalist ?i try to use event Itemdatabound to remove control but nothing happenshere my code in aspx.cs :

[Code]....

here code in aspx

[Code]....

i have a Image control , and when ImageUrl is empty , i will remove it.

View 2 Replies

Forms Data Controls :: Hyperlink Inside DataList Doesn't Grab ID?

Oct 28, 2010

[Code]....

I'm trying to put the wordID as part of the hyperlink and it's not outputting the ID.

View 3 Replies

Custom Server Controls :: How To Remove The Border From Gridview Header

Sep 24, 2010

I have created a custom gridview that show "Select All | Clear All" hyper links in header to select the checkboxes in the gridview. That means that I have added these two hyperlink controls to the gridview header and am not showing the actual column headers.

[Code]....

Now, I want to remove the border that is displayed on the header row. How can I remove it? I tried th.BorderStyle = BorderStyle.None; but it didn't work. I need gridlines in the data rows but the header row should not have any border.

View 2 Replies

Custom Server Controls :: Remove The Border From Gridview Header?

Oct 21, 2010

I have created a custom gridview that show "Select All | Clear All" hyper links in header to select the checkboxes in the gridview. That means that I have added these two hyperlink controls to the gridview header and am not showing the actual column headers.

[Code]....

Now, I want to remove the border that is displayed on the header row. How can I remove it? I tried th.BorderStyle = BorderStyle.None; but it didn't work. I need gridlines in the data rows but the header row should not have any border.

View 7 Replies

Forms Data Controls :: How To Create Paging Facility For Datalist Dynamically With Hyperlink

Nov 1, 2010

i am trying to create a paging facility for my dalatist dynamically and for this i am taking a hyperlink and putting it in a panel and showing the list of pages

but the problem is that when i click on next page for example from 1st page to another then it refreshes the page and opens the page with IsPostback = False and thus my all values that i have stored in a session becomes null like fisrt time loading

so it there any way so that when i click on the link it just show me the next bunch of record without refreshing the page ??

Note: i have created paging in my Stored procedure where each page contains 10 record per page

the code that i am using to bind the pager is as below : where default value of _PageIdx=1 and _totalPages = the number of pages that are coming from the database, it vary from search to another search

[Code]....

View 3 Replies

Forms Data Controls :: Open Popup Window In Datalist Hyperlink With Databinding?

Feb 16, 2010

How to open popup window in datalist hyperlink with databinding

my code is:

[Code]....

View 2 Replies

Forms Data Controls :: URL Binding Using Eval In A Datalist/ How To Remove The Current Page URL

Jul 23, 2010

I am using Eval inside a datalist to populate a hyperlink within the datalist with a navigateURL value and I am using it as follows:

<asp:HyperLink ID="HyperLink_FullStory" runat="server" Text="Full Story" NavigateUrl='<%#Eval("LinkAddress")%>'></asp:HyperLink>

The issue I am facing is that the current page URL is getting appended to the 'LinkAddress'(the URL being fetched from the database) and thus,the final URL formed is not a valid one.Can someone suggest how do I remove the current page URL? Is there any way it can be done without writing code in the code behind page?

View 8 Replies

Remove The Border Of A UpdatePanel?

Jan 16, 2010

I can't able to remove the border of the Update panel. It does not support style property.

View 4 Replies

Data Controls :: Show Hide HyperLink Control In DataList Based On Session Value

May 7, 2015

Actually I have a datalist in which I am binding product name and product description and there is a hyperlink.

I am binding datalist in page load and checking that user is login or not using session.

if user is login then hyperlink text should be view more

else

hyperlink text should be login to view 

The code I have written is working fine but when user is logged in then Only one products hyperlink text changing. I want change it to all hyperlink text to view more when user login

View 1 Replies

VS 2008 - Remove CellSpacing / CellPadding / Border From Generated Markup?

May 6, 2010

I'm using a <asp:Login> control and it's automatically putting CellSpacing, CellPadding, and Border attributes into the generated HTML table. How can I stop ASP.NET outputting these attributes (without moving to ASP.NET 4)?

View 7 Replies

Web Forms :: How To Remove %20 From Hyperlink URL

Apr 25, 2012

I use asp.net in VS2008.

I use a database table field as a hyperlink in Gridview.

somehow it contains the %20 in the link.

I have trim the data from database.

Tell me how to remove the %20 from the hyperlink.

[URL] ...

View 1 Replies

Web Forms :: Remove Hyperlink On ASPX Page

Jun 6, 2012

i have a hyperlink on the master page so when i click on this link it will redirect me on another page.....and also this link is visible to me i want to hide this link.

View 1 Replies

Web Forms :: Don't Want Parent Node To Do Postback - Remove Hyperlink

Aug 3, 2010

I have dynamic menu with sqldatabse. i don't want my parent node to do postback. how to remove Hyperlink for my menu header(Parent node)

View 7 Replies

Forms Data Controls :: Show Border In Asp Gridview

Dec 15, 2010

I want to display border in my asp.net gridview ..ow to do this ..I set border style, border color, grid lines etc ..Still not working ..

[code]...

View 1 Replies

Forms Data Controls :: DataList No Results / Access Datasource On The Page With A Datalist To Show The Data?

Nov 15, 2010

The problem is that i have a search page. Access Database holding the information. I have a Access Datasource on the page with a Datalist to show the data. I need to find a way on setting it up to says "Sorry no results found" when the is no results. i am unsure on how to do this though.

Below is my datasource and datalist

[Code]....

View 6 Replies

Web Forms :: Bind Hyperlink URL And Text In DataList Control

Jul 19, 2012

I have 1datalist in my page that i define link button on it 

This is my House_p table

Image Description Behcode name Id

1.jpg 11test 4444 iron 1
2.jpg 11test 3333 sofa 2
3.jpg 11test 2222 laundry 3

View 1 Replies

Forms Data Controls :: Radio Buttons Within Datalist / Group Just Not Via A Datalist With Unique Names

Mar 16, 2011

Am building a Form for out intranet that runs on ASP.NET and C#, it is to be a survey from a SQL database. I have the connections setup can pull informations/Questions from the database. I am having a problem with setting up radio buttons within a datalist, ive never done this and i know they require unque names.

It is to be 4 radio buttons per question where only one can be select, i know how to group just not via a datalist with unique names

View 6 Replies

Forms Data Controls :: Paging With Datalist If That Datalist Is Populated With Inputs Coming From A Querystring?

Jun 4, 2010

How can I do paging with datalist if that datalist is populated with inputs coming from a querystring?

View 3 Replies







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