I have a page with multiple tables on it and I want to have a page break for printing between these tables.If I manually set the element's style to "page-break-after:always" it seems to work.
<table style="page-break-after:always;">But I'm added the tables dynamically so I need to do it in code .
I'm using user controls as web parts in an asp.net application. I have skinned the webparts by adding .PartTitleStyle (etc) to my css. I'd now like to let the user select from a list in an editor part to choose the style for the web part.I'm able to change the title for the webpart, but can't seem to figure out how to change the css to use .PartTitleStyleCustom instead of the default, even trying to set the wp.BackColor seems to have no effect. Here is the code I have so far in the page load event of my user control:
On the page is a div id'd as loginBar, and I have a corresponding visibility attribute. Also on the page is a simple modal popup and its controls.The issue is that whenever the login Div is set to hidden, the popup is also hidden. I cannot figure out why the two are linked. It is not the id name of the div, feel free to change it to whatever you like, and I don't believe I have any malformed tags.
I need to set a style property of an element to the value returned from a code-behind property. I have done this in the past, but it now seems everything I try fails. I get an error telling me that the literal is not formed correctly.These are some of the arrangements I have tried:
I am working on reporting services 2005. I have a problem setting table cell(textbox) borderstyle.Some cells are for 'Amount' summary, so I want to set those cells' top border as 'Solid' and It works, but at the same time, the table's top border is set 'Solid' as well, that is what I don't want. I only want to set the cell' border. So how should I do?
...where [HERE] is the placeholder for my value, from my code behind in ASP.NET before the page is rendered. I generate a guid, and I need that apart of the script on the page.
I want to code some colors in the style property of some controls. For instance, I want to use some like DarkGoldenrod, which is shown as
ARGB=(255, 184, 134, 11)
How do I convert this to something that I can use in a style property (e.g., style="color: #CCCCCC)? I know how to convert the first three numbers (255, 184, 134) into a six digit hex value, but what do I do with the fourth number (11)?
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 have an email field, which can't be null and needs to be valid. all that is working fine through my ascx file.
however, i am also checking if that email already exists, and i want to use the rquiredFieldValidator to show the message, and set the page as invalid.
i've tried the following:
valEmail.IsValid = False valEmail.Text = "xxx" the xxx never shows :(
On the RowDataBound event of a gridview I am setting the name of the HtmlInputRadioButton inside the GridViewRow. The problem is that asp.net automatically makes the name unique therefore ungrouping the radio buttons.
Is there a way that I disable this?
Edit - Here's how I am setting the name:
[code]....
Due to the numbers "106" and "107" in the name of the respective radiobuttons it ungroups them.
I have the following code to playback video clips.. we are getting to the point where i need to get this setup and populated from our table.. i already have the data i need to put into the needed parameters, but cant figure it out.. i have tried to add runat="server" and add an ID to the parameters i need to control, but when the page loads, the video window is displayed, but no video is available. and at the moment i have the video hard coded to test, but will need to replace that with video links stored in the table.. what am i missing or doing wrong?
I'm trying to dynamically create a grid view in C#, the grid will have two columns, one of which is a hyperlink field.Now i've noticed when creating the grid view statically in aspx, the DataNavigateUrlFields property accepts a single string as it's value (the field in the data source with the URL in).
When creating it in code, the very same property is a string[] array, rather than a single string, and is expecting multiple fields which combine together to make the URL (if I've understood MSDN correctly), but what if I just want a single field for the URL?
I am trying to set up my first custom validator in VS 2010 VB. I want it to use a Sub or Function that is in my code-behind. I have searched the WEB but the instructions and examples that I have found do not show me how to use code-behind.
The main problem that I am running into is that I can not find a way to connect the validator to a sub that preforms the validation check.
I created an image button in my header template. When clicked, it calls the Sorting method. When I change the image url in code behind, it does not render. By setting a break point, I can see the property being updated, but I assume it is getting overridden by the default I set in the HTML page.