Based on the feedback on this forum, I used a Literal control in the <Marquee> tag. But I don't find many properties associated with this control. I would like set the color of the marquee text to Red color to grab the attention of the user.Don't know how to do that.
I have a master page and set it's back ground color in the body tag <body style="background-color:Red">. Now that is fine for the Master page. How do I set the back ground color of the content page to a different color?
i am working in asp.net and c# i have a grid view. i have 10 columns in that grid view. I have some problems with grid view header text color.some of the columns header have link (for sorting). the color of such header text is a light blue.after clicking the blue color change to another color.
some of columns header does not have link. the color of such header text is gray. i want to make the color of entire header text to single color like gray. after clicking the link it must be in same color.
A sorting requirement changed and the client wants to have the last edited record appear at the top of the listview. So after the save, the ListView is getting updated as I am using AJAX and not taking it out of edit mode. If the record the were editing was #3 in the list, it would move up to the first row now, but the ListView is still highlighting row 3.
I am capturing a GUID in just setting it to "display:none" on the tag. So I have a unique to work with if I need to. Is there a way to accomplish this in C# code-behind?
however everytime i reload the page,backcolor disappears.If i move it out from IsPostBack block ,it works fine but i want to load grid only when the page loads for first time(inside !Page.IsPostBack).
i have tool tip for an image in asn asp.net & c#.net and i want to set particular part of the tool tip text to be bold with different font color,how can that be done?
I have sutmbled across somethig strange. When you ser theYou cannot set the color in a style and apply it to the heading of a grid, it will show in the templated columns, but not in the non-templated columns.
You can set the color for the non-templated columns with the HeaderStyle-ForeColor attribute, but it seems strange for it not to recognize the color in the style and seems redundant to have to specify a style and a color seperately.
Am I doing somethign wrong. Is there some sort of setting I have wrong that is causing this?
I have an asp.net gridview which represents some kind of reservation calendar. Each row represents a workplace and each column a day. The header value (date) is set by a method since the start of the time period shown by the gridview can be selected by the user. Since the date column can start at every day of the week I wanted to mark the weekend day columns with a special background. How to set this? (See .aspx code snippet below which is currently used for each column ().
Remark: ItemStyle-BackColor= '<%# %>' (dynamic) annotation isn't allowed in the <TemplateField> Tag and the actual date must be evaluated somehow from the header or another control.
Sample code to show how to fill in a color of part of an image to the border? I have a white background image with black lines drawn as a head with hair outlined. i want to fill in the face with a skin color selected and then the same with the hair. How can i do this in asp.net on the server side? I will be returning the image after it has been modified.
I just installed Safari, Chrome, Opera and Firefox on my machine that runs VS 2008. Prior to this, IE was the browser used whenever I would run a project to test. Now it is executing Chrome, even though I said it's not the default browser.
Does anyone know how to change this setting in VS 2008 or wherever else it may be required?
I have a DropDownList being filled from a data base. Now, when I select the drop down arrow, is there a way to set the size of how many lines to show initially ?
Like: DropDownList2.Attributes.Add("Size", "16")
I cannot find an event when clicking the drop down arrow.
My login.aspx is in a Login folder of my website. I want this to be the default document of my website in IIS. is this possible? or should I create a home.aspx page that redirects to login.aspx?
I've developed my .net web application in Visual Studio 2005. It's been running in production on a hosted server. We recently brought in-house our own servers and configured one as a web server. I am trying to set up my web application over there and am getting your typical errors like the resource cannot be found. If you could point me to a good link, that would be great, too. I know I am having very elementary problems like creating the correct virtual directory, etc.
Below is a line I have in my ItemTemplate of a FormView. The value in the table is null rather than true/false. Is there any way I can set the default for this to be false if it is null? Or can I do this in my stored procedure in the Select statement to return false if null?
I want to remove the (Page1)that appeared in the header and remove the footer of the page and change the top and the left of the document
I'm using this code for printing
HTML Code:
<script type="text/javascript"> function PrintText() { var p1 = document.getElementById('<%=txtName.ClientID%>').value; var p2 = document.getElementById('<%=txtCity.ClientID%>').value; var p3 = document.getElementById('<%=txtPoNumber.ClientID%>').value;
I am trying to send an email using the gmail smtp server. I am trying to enter the SMTP settings into the Web Site Admin tool. I have set
Server Name: smtp.gmail.com server port: 587 from: myemail@gmail.com
Sender's User Name: my real gmail username Sender's Password: my real gmail password
I am getting the following error when I try to send an email as a result on using the CreateUserWizard after successfully creating a new user.
Code:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. i29sm30127820vcr.12
I have read many pages on detecting mobile phones but my question is for setting the screen size for this. I can easily made the screen the same size as my mobile phone but on some devices you still have to zoom in to see it. Is this mainly on the device side that needs to be set? Is there any way to tell the device to show the page zoomed in?
I just recently installed VS 2008 on my workstation. I tried creating a simple web site just to check if the installation was fine. The project compiled without error but when I tried running it, the Macromedia Dreamweaver software is being launch. It tried it several time and it's all the same.I remember during the installation there was an option that was displayed asking me to select Designer or Coder. Since the default is Designer i just click next.
Is there a way to stop launching dreamweaver from VS 2008 every time i try running the web project? Is because I selected "Designer" during the installation?
Setting value in html control in code behind without making server control
<input type="text" name="txt" /> <%--Pleas note I don't want put runat=server here to get the control in code behind--%> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
Code behind
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { //If I want to initlize some value in input, how can I set here } } protected void Button1_Click(object sender, EventArgs e) { Request["txt"] // Here I am getting the value of input }
I have a class (let's call it Car) that has a property of type System.Drawing.Color (Call it CarColor). I have a script service function that uses this Car class as a return value, which works just fine. I then have another script service function that takes a Car object as a parameter. I would like to change the color of the car in Javascript, but I am finding it difficult to do so without adding another parameter that takes in the color as a string and is then translated at the server. Are there any ideas on how to set the Color property of the Car object in Javascript and maintain it through to the server?