Web Forms :: How To Use CSS Style Sheets In Webpages
May 5, 2010How do I link a control to an external style sheet? What folder do I put the external style sheet in?
View 2 RepliesHow do I link a control to an external style sheet? What folder do I put the external style sheet in?
View 2 RepliesI have been looking for the last day since some who was nice enough to suggest I change the look of my web application theme by haveing different css sheets. I have found many references to
<link runat="server" rel="stylesheet" id="cssIE" type="text/css" />
cssIE.Href = "CSS/StyleSheet1.css"
the thing I want to do is
cssIE.Href = "CSS/" & stylesheet_name
where stylesheet_name is a value from a database entery
The css file has loaded into the app fine and I know the value of stylesheet_name does return what I want because I sent it to a label control and the file name comes up.
I have two conditional stylesheets referenced in the head of my master page. Because the are contained in conditional comments to show for IE6 and IE7, the relative URL to the css file isn't getting rendered correctly. Is there any way to rebase the URL within conditional comments as can be done for import css references? Current code below:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="xxx_web.master.cs" Inherits="website_master_xxx_web" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>xxx website</title>
<link rel="stylesheet" type="text/css" media="screen" href="../css/xxx_web_basic.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../css/xxx_web_structure.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" media="screen" href="../css/xxx_web_ie6.css" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" media="screen" href="../css/xxx_web_ie7.css" />
<![endif]-->
</head>
I have a cascading style sheet attached to my html (and they are both saved in the same file on my hard drive), but there are times when I close Visual Web Developer 2008 Express Edition (end of the day or whenever) and reopen it (the next day or a few hours later) to work on the same html, the style do not show up (the bottom of the screen says "Requesting Data...") and there is a clock next to the style sheet in the apply styles window. It never seems to request the data, and usually I have to open a new html page, save it in the same file, and copy the information over. Some times I have to do this 2-3 times before the style sheet will attach. If I open it in another html editor, the styles show up, but that editor does not have all of the functions that I need.
View 3 RepliesIn the root of my domain i have the CSS file style.css and the masterpage file site.master.The link to the CSS file within the site.master is
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
The problem is that webpages contained within subdirectories do not inherit the CSS file.What am i doing wrong here?If i copy the style.css file to the subdirectories everything works like a charm...UPDATE: If i change the path to /style.css or to ~/style.css the style is Not applied also to the webpages within the root folder.
My date picker has no style as in it doesnt seem to be recognising the style sheet
[Code]....
and my html
[Code]....
I know to populate Excel file using htmltextwriter from dataset.
I want to know how to populate Excel multiple sheets using htmltextwriter from dataset based on condition
My <style> for thumbnails currently looks like this:
<style type="text/css">
img.TN {
width: 100%;
margin-bottom: 5.294%;
cursor: pointer; }
</style>
This is annoying, because I have to apply this style to every single thumbnail image individually, when there could be any number of them on the screen at any given time. All of the thumbnails are inside a single <div> that groups them together, and I'd like to apply a single style to the <div> that will push the attributes I need down to all of the the <img> elements nested inside, regardless how many thumbnails there are.
I'm using ASP.NET 2.0, and CSS 2.0
Export to Excel with two sheets from two grid views. I am in need of export two grids into a single excel with two sheets.
View 2 Replieswe have a reseller web application that uses basically the same asp.net codes on different domains. However we replaced the cookies in the web.config files to the root domain of each domain and the timeout time to 1000
HOwever for the initial site that was setup, it runs well. But every additional site times out after about 2mins
I have looked through the web.config so many times to see if anything is conflicting but cant find anything.
I have 1 excel file 2007 that contains 10 sheets
First sheet Name : Remarks that contain only one column for remarks
the other 9 sheets name : Date1 Date2 Date3 Date4 Date5 Date6 Date7 Date8 Date9
each of the 9 sheets has 2 columns: Product Description and Qantity
I am using
[code]....
i need to edit this code to read two worksheet from excel ?
i have this code to read the first sheet from work sheet
[Code]....
I have a lot of excel sheets which columns are slightly different, i want to import all of these sheets (one at a time) into ONE SQL TABLE. I'll give an example : Say ive written the required program and called it Excel2sql converter. So Excel2sql takes an excel sheet and create a database table with the data of that excel sheet, For example say i have the following excel sheet:
Excel_Sheet_1
-----------------------------
FirstName MiddleName LastName
John A. Smith
when i run Excel2sql (Excel_Sheet_1), a database table should be CREATED for me with the following data in it:
FirstName MiddleName LastName
John A. Smith
Now, when i run my program again with the following excel sheet:...................
I am working on the Home Page of a new client. The client wants me to show 5 images in his home page, which he does not want to part with.I am using a master page and also a user control in the home page.All this make the home page too heavy(if this is the right word).All are .jpg images.
The master page contains logos and the user control is a table containing hyperlink to navigate to other web pages.
I have been working on a web application using C# and I want to capture images from my webcam on the registration page. The concept is as the page loads, the system checks for a webcam connected and if the webcam is found conencted, Image streaming should be done and the frames would be displayed on the page. As soon as I click the "Grab Image" button, the Image should be captured and stored to a database.
View 12 RepliesUsing Vb.net I created a html table with a hyperlink column to another ASPX.Net page. The page I am linking to has a text box that accepts a customer number and a button (NEXT) to link to another ASPX.Net page. When I link to the first page, the customer number is not in the textbox. Also, I do not know how to execute the NEXT button so it links to the final page.
[Code]....
I realize that subroutines in the 'C' language are now classes that are instantiated as objects in the C# language, but I don't know how to use them in a web page. I have several control event handlers that need to use the same function. Where is the class defined and how is it instantiated within the event handlers?
View 2 RepliesAny way to add powerpoint slides to the webpage.
View 3 Replieshow is it possible to embed any .swf file into any .aspx page?
View 2 Repliesi built a user control for login process, i'm using it in some of my pages, but something
wierd happens, in some pages it works fine, and in some page he just doing Postback,
and put this in the url:
?ctl00%24ContentPlaceHolder1%24LoginBox1%24TxtUserName=&ctl00%24ContentPlaceHolder1%24LoginBox1%24uiTxtPassword=&ctl00%24ContentPlaceHolder1%24LoginBox1%24SignInCmd=Sign+In
I transferred my precompiled Default.aspx and all related image files to the main folder of my www.freewebs.com account. I also transferred App_Code.compiled, App_Code.dll, App_Web_c871ipga.dll, App_Web_s_wu1khu.dll, App_Web_vy0pwb06.dll, and default.aspx.cdcab7d2. compiled in a new bin folder. When I accessed the URL address for the Default.aspx file in my freewebs account, all that I got back on my browser was: This is a marker file generated by the precompilation tool, and should not be deleted!
I also tried to deploy without precompilation. However, when I transferred my uncompiled Default.aspx web page to my freewebs account and entered [URL] what I got back on my browser was only a listing of the source code for the web page complete with my C# script code. Why can't I execute an ASP.NET web page?
I want to design a website wherein the page would be having 2 sections.
Section 1. Web page comming from other web site (this web page's domain may/ may not be the same wrt the website in which it would be getting displayed)
Section 2. Web page designed for this webSite
I don't want to use the IFrames for this purpose.
Further, the webpage from Section 2 would require the data from webPage of Section 1 (Interaction would be there)
Any one know how to export mutiple tables into one excel with different sheets in asp.net application.
View 7 RepliesI have a page with two gridviews and I want to export the gridviews content to excel in two separate sheets. How is it achieved?
View 1 Replies I create reports sometimes with a gridview and export the data to excel. Lets say I have like multiple gridviews and I wanted to export each gridview to excel under its own spreadsheet.
So gridview1, gridview2, gridview3 are exported to excel under $heet1, $heet2, $heet3.
I know how to export multiple gridviews to 1 excel sheet but I don't know how to export them separately under their own spreadsheet.
I've been researching online, and i'm continously searching, but does anyone know how to do what i'm trying to do with the gridview and excel or is this not possible?