Web Forms :: Can Ssign A Border-radius Using A Skin To An Image
Feb 19, 2011I would like to apply rounded corners to all of my images of 5px. I tried doing it with a defniition in a skin (theme) file as :
[Code]....
I would like to apply rounded corners to all of my images of 5px. I tried doing it with a defniition in a skin (theme) file as :
[Code]....
I have put a hoplink inside an image like this. This is a test but when looking at the banner that is shown you can see a gray border along the banner (GIF).
Is it possible to get rid of this gray border that is around the actual banner here ?
[Code]....
I use image button in my page I don't want set image for it. My image button has border i set this code for it
border width : 0px
But again it has border how i can hide my image button border?
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 Repliessometimes we need to use the asp image control so we can generate empty alt tags (visual studio 2005 does not render any attributes set
to an empty string). I know how to do this and also how to remove the border style that is automatically added
(http://blog.josh420.com/archives/2007/10/aspnet-image-control-border-width-inline-style.aspx).
We implemented this 6 months ago, however, only today have I discovered that it does not work when images are created dynamically.The first implementation was for asp images that have been set up within an aspx page:
-<asp:image runat="server" id="imgMast1" GenerateEmptyAlternateText="True" alternatetext="" imageurl="" />
The above works-no border style is rendered and the imageurl is populated in code.I have other pages where I'm building up sections dynamically using C# code, such as:-
System.Web.UI.WebControls.Image featureImage = new
System.Web.UI.WebControls.Image();
featureImage.GenerateEmptyAlternateText = true;
featureImage.ImageUrl = imageSrc;
divImage1.Controls.Add(featureImage);
divImageFeature.Controls.Add(divImage1);
When creating controls dynamically like this, the solution describe above does not remove the border style.
Another problem I am having is I have an image at the top right of a page and I want it to be hard against the edge of the page with no border and I am really struggling to get this to happen.
View 1 RepliesI have an ASP.NET web site which contains some ImageButton controls that cause postbacks used to filter a list of products to certain groups of products.
The ImageButton was created something like this:
ImageButton _myImageButton = new ImageButton();
_myImageButton.ImageUrl = PicturePath + PictureName;
_myImageButton.Attributes.Add("border", "0");
_myImageButton.OnClick += handleImageButtonClick();
Controls.Add(_myImageButton);
Now I am moving to ASP.NET 4.0 with SEO-friendly paths like /products/category/item, and I'm using routing with Webforms to map URL's to webforms. In the process, I want to replace my image buttons with hyperlink controls showing the image, so that I can associate a navigational URL with each image.
I'm creating my new image hyperlink something like this:
HyperLink _myImageLink = new HyperLink();
_myImageLink.ImageUrl = PicturePath + PictureName;
_myImageLink.NavigateUrl = "/products/category/" + itemName;
_myImageLink.Attributes.Add("border", "0");
Controls.Add(_myImageLink);
The big problem I'm facing: the ImageButton used to put a border="0" attribute on the <img> tag in HTML to avoid a border around the image. But how can I achieve the same result using the hyper link control?
With the current setup, the border="0" gets stuck onto the <a href="...."> tag - and that's not exactly what I want / need.
I have some pretty straightforward HTML code with a few tables to organize various items of text or images. All works fine except that I need to place a vertical border on both the left and right sides of the screen. I am able to do this with a 2x2 pixel image that I stretch out. When the user has their screen maximized, everything looks great. But when the user hits "Restore Down", then the borders stay in place, but the tables get shoved down so that they start below where the borders end, which is off screen. in other words, the relational alignment between the borders and the tables gets all screwed up. Does anybody know how to make this alignment stay consistent on a restore down? I'm pretty much a newbie with html and asp, so speak slowly. If there is a better method to accomplish this, I'm all ears.
Here is the relevant section of code:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<form id="form1" runat="server">
<asp:Image ID="LeftBorder" src="../Images/Border_Blue.jpg" runat="server"
WIDTH="15" HEIGHT="1000" BORDER="0" alt="Image Missing" align="left"/>
<asp:Image ID="RightBorder" src="../Images/Border_Blue.jpg" runat="server"
WIDTH="15" HEIGHT="1000" BORDER="0" alt="Image Missing" align="right" />
<table id="BannerTable" style="height: 100px">
<tr>
<td width="934px">
<img src="../Images/Header.jpg"
alt="Image Missing" id="ImgBanner" align="left"/></td>
</tr>
</table>
I've looked everywhere and googled everything and couldn't find anything good. What I need is a class that is able to draw an image (graphics) with rounded corners (different on each corner is a plus) with a border and gradient fill.
All the examples I find have some flaws (like bad quality, missing functionality etc).
I will use this with a ashx that will draw the image and then show it to the user.
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?
I have sql server table which consis customername and address. I want to create a page where user will enter address and select radius in miles from a pulldown and click on search, so it will return the list of addresses near by entered adress and entered radius miles.
View 6 RepliesAnybody know of any web services or any other ways of finding all the zip codes within an x mile radius?I have referred to the following link for all the state and zip codes ttp://www.census.gov/tiger/tms/gazetteer/zcta5.txtJust looking for the best method to make this happen.
View 3 RepliesI look after a number of divisional websites for a uk based membership organisation and what we want to do is provide, as well as other address functions, is a closest member lookup to a web user from the websites themselves.A few use cases that I want to fill:ase 1: The user puts in their post code and wants to see all the members in a 5/10/15/20/30/40 mile radius from themCase 2: The member puts in an area (city, county, etc.) and gets a list of members in that area.Essentially what I'm looking for is a programmable API which I can code against to do:post code lookup and returns addresses (after picking house number for example).
search post code + radius (5miles, 10miles etc) and get a set of applicable post codes to then join onto the membership records in the databaseAny recommendations? It can be a quarterly update install on the server, it can be a queryable web service.
have a database of the US, CANADA zipcodes with latitude and longitude. I would like to implement search to show listings within specified radius. How can it be done with Linq to Entity, C#
View 1 RepliesI cant seem to find a good example of how to build the query logic. We are allowing users to search based on lat/long and need to add radius as another parameter. So you enter 29.30125 as the latitude and -95.04590 as the longitude and pick say 15miles as the radius, i need to return all records that fall within that radius.. can someone suggest a good site to review this type of query?
View 1 Repliesi am using skin for text boxes , for one perticular text box i don't wont any skin properties how can i disable
following code methods i used
i sets globally in master page
<%@ Master EnableTheming="true" Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs"
Inherits="MasterPage" %>
in skinFile.skin i used this tag
<asp:TextBox runat="server" BorderColor="#6BB7E1" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
for disable one text box i followed this method
<asp:TextBox ID="tb_search" runat="server" BorderStyle="None" Width="235px"
EnableTheming="False"></asp:TextBox>
with this, skin style not appeared in disable mode in all mozilla, and chorme
but IE 6 still i am getting skin properties , how can disable skin properties for IE 6 browser
I have a very simple Skin with the following:
[Code]....
And in my css I have the following:
[Code]....
The Basic Button CSS works in both browsers but my .BsicInput:focus CSS works only in Firefox. Any ideas about what is wrong?
I have four themes: Theme1, Theme2, Theme3, Theme4. Under every theme, it contains a skin file and css file. In every themes, there are some same css elements, skin elements and different css elements, skin elements. How can I put the same css elements, skin elements under one shared thems instead of every themes.
View 2 RepliesI'm in the process of building a webforms site. In the grand tradition of programmers, I have been looking for collections of skins/themes/css for asp.net controls to avoid the work of building them myself.Especially since I'm graphically challenged. I've found numerous sites with templates for drupal, DNN, etc but the only places I've found asp.net control themes/skin/css collections is within commercial component libs that cost more than i'm able to afford.
The absence of these collections is also making me question how I'm building the site since I assume the "theme" sites would be providing these collections if there was a demand.
Can anyone point me to where I can find inexpensive or free asp.net theme/skin collections or give me some pointers about how to build a site without requiring a bunch of work to create them from scratch.
i have master pages set to each page, i want to use skins, but i cannot attach it to master page
do i need to go in every page and set theme there ?
how can i apply it to master page, so that it gets applied to all the pages
Question: Is it possible to embed .skin files as a resource?
I am creating a library of user controls(grids, buttons, etc.) that are common among all of our web projects. I have included several common javascript files used by the controls by adding them as an embedded resource and registering them as a resource using RegisterClientScriptResource. Everything works great.
However, the last thing I would like to do is embed skin files in this project so that all the controls have the same look. I know I can control look solely with css, but I would like to control some of the other asp attributes as well(ie AllowSorting and AllowPaging attributes of a grid). Is it possible to embed skin files as a resource? Or will each individial project need a copy of the skin file? If anyone could provide insight on how I can go about embedding a skin file..
tried uploading themes,skins,css and master page files to be used by a page where it dynamically sets all of these at runtime? Also, if possible skin to contain other than styles like web layout (normally set in a master page)...
View 7 RepliesI am using Theme and skin to my current project.
I would like to know, can
1) Theme applied to asp:panel ?
2) Theme applied to AJAX update panel ?
How can I set skin file to master page. Is is possible?
Actually I want to set common skin for all content pages of the master page.
We have amended an existing skin which uses an ascx file. There is also an Html file of the same name but doesn't appear to be used. In the Html file we added the line<bodystyle="background:"VCS.jpg">to use the jpg as a background tile. However, as the Html file seems redundant we would like to use the ascx file but how do we effect the same background result in the ascx file?
View 2 Replies