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 have a title in my master page, say, "I am master". In my content page, in the page_load event, I change it to:Me.Title = Me.Master.Page.Title & ", I am content"So I expect the title to be "I am master, I am content". However, it just shows ", I am content". This has been working so far.
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 have an HTML Helper that essentially renders static content read from HTML files (inside of a vdir). There are cases when the HTML file has a title element defined and in such cases, the current page should use the given title. The content inside of the body should be rendered where the Helper class is referenced in the View.
This is how I call the helper.
<%=Html.StaticContent("staticcontent.htm", new List<StaticContentTag>() { new StaticContentTag() {TagKey=ReplaceTags.MarketName, TagValue = "Austin"} }, Model, true) %>
I'm passing in the ViewModel so that I can set the title and the last parameter is a flag that says whether to force the title or not.
The head has the title defined like this.
<title><%=Model.Title%></title>
I know what I'm doing wrong here by referencing the Model.Title element before even calling the helper. Any ideas on how I can work around this?
I want to use a single Crystal report (.rpt) file for two actual reports, changing only the title and the data. I've got the data working, but I can't seem to get the title part right. I tried to follow this
tutorial, but when I do my report just disappears (whether I set the parameter or not). I created a "Report Title" special field and dragged it to my page header. Then I brought up the formula editor on the report title display string and clicked on my title parameter. So the formula ends up being
{?Title}
I'm sure I'm probably just making a rookie mistake here.
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?
We have recently bought a website that was programed in .asp. Every website page has a line of code that allows it to use the Meta title tag found in the 'Maincontent.master' file. This sample is taken for the about us page;
I want to each page to have its own unique title tag, however I am struggling to implement this. I have tried removing the above line and replacing it with a standard title tag line i.e. <title>About us</title> but when I do this it kills the page completely. how I could replace the above with a unique title tag, or is it not that simple? Descriptions and keywords are not a problem as they are already individually setup; it's just the page title
I have a site map on my project and I have section which get values from sql database and it changes according to querystring Id value. In my sitemap the title of the page is everytime same. but I want tpo change it at runtime. I am using multiple sitemaps and My sitemap is not the default one. its name is rootSitemap. I tried some code which I got from msdn but it seems doesn't work for me;
[Code]....
Here is my sitemappath code which is situated in my master page;
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'm using code to convert items in a Datagrid row from UPPERCASE to Title Case. It works good, but the problem is if it comes across a hyperlink field, it will put in a blank value. Not sure why its doing this, but here is the code below. Wondered if any one has came across this problem and managed to solve it?
I am try to get the title bar to flash, using very basic HTML. I've given it a shot, but the code below doesn't seem to work, and I have no idea why. Also, is there a way to make the title bar flash text, but only if the user is not viewing the current browser page?
I have four columns in database. Consider it as a,b,c and d. I'm trying to place a and b column values in TO part and c and d column values in CC part in outlook. a,b,c,d contains six digits numeric values. I just need to place a and b columns values in to and c and d values in cc part on click of a button.
but there is no component which wraps this code like Repeater, DataList or something like that. How can set the set a DataItem to this code to show the values of an object of a class.