We have a database with around 5000 records in it. We also have a web page that displays many of the fields. One field is an nText field and displays up to several paragraphs. My customer wants me to add those A+ and A- buttons for increasing and decreasing the font size for this field. My problem is that many of the older records have quite a bit of formatting in the field. Most of the rest contain styles dictating a font size of 12 px. Is there a way to increase and decrease the font soze of the text without modifying all the records?
Just upgraded from SSRS 2005 to 2008 (on a test server). I have a report with a list and in this list are about a dozen fields in textboxes whose fonts are all set to Verdana 8pt. When I run the report from the Report Manager, one of the 12 fields is displaying in a serif font (like Times New Roman) at around 12pt. When I preview the report in Visual Studio every field looks fine and when I run the same report in SSRS 2005 every field looks fine. Has to be a SSRS 2008 bug!
I am using TabContainer with some controls on each tab (asp: labels, text boxes). When redirecting to the page that contains the TabContainer, the tabs and their content loads as expected, but when there is a postback, and the page refreshes, the TabContainer UI changes - the font size of the labels gets bigger, the text boxes become bigger and their location changes a bit (not aligned as before), and the tab header is partially hidden. I am using IE7.
I dont know if this is relevant but in some of the text boxes i use edit mask extender as well for date. Also, I have used a table inside the TabContainer for layouting the controls.
I know the content palcehlder does not have a size ,I have a masterpage and content page, the master page has a table with a header, content area, and footer, header and footer are fixed size, content area is 100%. As the user sizes the browser the content area grows and shrinks and the footer stays at the bottom of the browser window - perfect!
Problem: The contentpalceholder does not grow to fill the available content area. Now, the contentplaceholder gets its size from its contents, which in this case is a div holding a silverlight object.I was thinking I could hook the master or child page's re-size event and somehow pass that info onto the SL object, but as it turns out (and I'm surprised I never knew this) there is no aps.net page re-size event! (really?, wow.)
So is there a way to get a SL object hosted on a master page to size itself based on the size of the browser window?Or more generally, a way to size the contents (like a div or panel) of a contentplaceholder based on the browser? on a standard aspx page (not a master page) I CAN get the SL object to size itself based on the broswer, the problem seems to come from the fact that I'm hosting the SL object in a content placeholder.
I guess I could 'unroll' the master page into several standalone pages and have it work, but the menu is on the master page and I'm used to using them, plus it's already done...<sigh>
I have two panels in a formview. The first panel has a dynamically set image to be used as a stationary background and it has a fixed size. Inside of this panel, I have a second panel with its Z-index set to overlay the first panel. This second "text" panel has five labels in it. These five labels contain text of varying lengths. Some much longer than others.
How can I dynamically change the font size of the labels in the second panel (or the panel as a whole) so that the text (remember it has verying lengths) is contained within the margins of the stationary panel?
I am not certain that using panels is the right way to accomplish this, but could find no other way to do the overlay concept.
I want to be able to change the font size of the span style dynamically depending on how many days in the month will be filled up. I am using a calendar object and if only 7 days are filled up so far I want to make the font larger for the user. As the month fills up more days and I want to make the font smaller, so it will all fit on the page better. Is there a way to do this?Dim linkstr as string
i want to reduse the size of barcode image in this code . i tried to reduce but its cutting the number ... how can i reduce the size of this barcode image
string barCode = TextBox2.Text; System.Web.UI.WebControls.Image imgBarCode = new System.Web.UI.WebControls.Image(); using (Bitmap bitMap = new Bitmap(barCode.Length * 40, 80))
I have a response.redirect with javascript for popup, its working fine with the popup, but the page's fonts increase on click the link to a larger size.
Also there are 2 back buttons after the click.
So I need to disable the text(font) size changing and removing the additional back buttons(page history).
Code:
Response.Write("<script language = 'Javascript'>var win=window.open('" + "/" + dirrep2 + "/" + year + "/" + month + "/" + date + ".pdf" + "','true');</script>");
I'm drawing labels to an image file. It all works perfectly, except the font size.
gfx.DrawString( thisTempLabel.LabelText, new System.Drawing.Font( thisTempLabel.LabelFont, (float)thisTempLabel.fontSize ), Brushes.Black, new PointF(thisTempLabel.x, thisTempLabel.y) );
Problem is my users pick font sizes in PX, and System.Drawing.Font requires an EM size. I don't know how to resolve this. Can I render the text using pixels?
How do you set the font size for all GridView textboxes in Edit mode other than templating each. I have the font size for the GridView set <asp:GridView
ID="GridView1" ....... "x-small" but when I call the Edit mode the font defaults to medium.
I need to change the font size of bold thing below. I have a css for use but this bold part needs font changed to 8px instead of 10(css). how to change in Code behind.
Protected Function ReturnFontSize(ByVal Big As Boolean) As FontUnit If Big Then ReturnFontSize = FontSize.Medium Else ReturnFontSize = FontSize.Small End If End Function
But i get always a font very very small. So my question is : for changing "Font-Size" proprety of a control, from code behind, which return type i have to use, assuming that FontUnit not work?
var min = 11; var max = 18; function checkCookie(){ var FontSize=getCookie('FontSize'); if (FontSize!=null && FontSize!="") {var p = document.getElementsByTagName('p'); for (i = 0; i < p.length; i++) {p[i].style.fontSize = FontSize + "px"}} else { { var p = document.getElementsByTagName('p'); for (i = 0; i < p.length; i++) { p[i].style.fontSize = FontSize + "px" } } setCookie('FontSize', 13, 365); } } function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) c_end = document.cookie.length return unescape(document.cookie.substring(c_start, c_end)); } } return "" } function setCookie(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + exdate.toUTCString()); } function defaultFontSize() { var p = document.getElementsByTagName('p'); for (i = 0; i < p.length; i++) { p[i].style.fontSize = 13 + "px" } setCookie('FontSize', 13, 365); } function incFontSize() { var p = document.getElementsByTagName('p'); for(i=0;i<p.length;i++) { if(p[i].style.fontSize) { var s = parseInt(p[i].style.fontSize.replace("px","")); } else { var s = 11; } if(s!=max) { s += 1; } p[i].style.fontSize = s+"px" } setCookie('FontSize',s,365); } function decFontSize() { var p = document.getElementsByTagName('p'); for(i=0;i<p.length;i++) { if(p[i].style.fontSize) { var s = parseInt(p[i].style.fontSize.replace("px","")); } else { var s = 11; } if(s!=min) { s -= 1; } p[i].style.fontSize = s+"px" } setCookie('FontSize',s,365); }
The problem with the following code above that on every post the text size "flashes". By saying flashes i mean that it first is displayed with the default size (13px) and then is set to the value set by the cookie.