I m trying to insert italic fonts in title tags but when i use <i> it takes these tags as string
I have also tried with htmlencode but not working
below is my code
// Title is a string which will appear in the title tag
// BreedSpeciesName is a string which will get the dynamic data
// ScName is string which needs a <i> tag
Title = BreedSpeciesName + " (<i>" + ScName + "</i>) owner experiences.";
So I am a little new to this but have the proper FTP access username and password for my website and wanted to know how I can go ahead and edit my title tags via Notepad ++ I have downloaded notepad but am lost once I open up the file I don't know what or where to go from there.
I have a txt file with a list of <titles><meta keyword> and <meta description> and the link that these titles and tags should be associated with. how do i set the master page contentplaceholderid to read the text file and set the tags and titles accourding the the link on the txt file.
how can i add title and meta tags for content pages in a project base on master and content page(dinamically) ?
i used the blow method for master page :
[code]....
and the error is :(in line *)
Error 17 'System.Web.UI.MasterPage' does not contain a definition for 'SetMetaTags' and no extension method 'SetMetaTags' accepting a first argument of type 'System.Web.UI.MasterPage' could be found (are you missing a using directive or an assembly reference?)
i have created a aspx page with the script manager, update panels and so on. Now, when i use some jquery functions which are included inside the head tags, when the page is run, i find the script tags generated inside the body instead of the head tag. i'm using visual studio 2005 only.
I am building a forum and I want to use forum-style tags to let the users format their posts in a limited fashion.Currently I am using Regex to do this.As per this question:How to use C# regular expressions to emulate forum tags. The problem with this,is that the regex does not distinguish between nested tags.Here is a sample of how I implemented this method:
public static string MyExtensionMethod(this string text){return TransformTags(text);} private static string TransformTags(string input) {string regex = @"[([^=]+)[=x22']*(S*?)['x22]*](.+?)[/(1)]"; MatchCollection matches = new Regex(regex).Matches(input); for (int i = 0; i < matches.Count; i++) var tag = matches[i].Groups[1].Value; var optionalValue = matches[i].Groups[2].Value; var content = matches[i].Groups[3].Value; Now,if I submit something like [quote] This user posted [quote] blah [/quote] [/quote] it does not properly detect the nested quote.Instead it takes the first opening quote tag and puts it with the first closing quote tag.Do you guys recommend any solutions?Can the regex be modified to grab nested tags?Maybe I shouldn't use regex for this?
I am trying to programatically create a bitmap with a specified font in ASP.Net. The idea is that the text, font name, size color etc. will be passed in from variables and a bitmap of the text using the font etc will be returned. However, I have been finding that I am only able to do so using the following code with certain fonts.
<div> <% string fontName = "Segoe Script"; //Change Font here System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(100, 100); System.Drawing.Graphics graph = System.Drawing.Graphics.FromImage(bmp);
[Code]...
If I change the font name in the areas indicated by the comments to Arial or Verdana both the image and the label appear with the correct font. If however, I change the font name in both locations to something "Segoe Script" the Label will show up in Segoe Script but the image is in what looks like Arial.
Update:
Based on this question here I was able to get it working by using a PrivateFontCollection() and loading the font file like so.
Currently working on a project that will allow users to change the font of a richtextbox control. I gathered all the system fonts on form load into a combobox control. I am having difficulty having the richtextbox control's text change with the combobox control value is changed.
I have a WYSIWYG textarea (CKeditor) in my CMS.Most of the users write the article first in a word document and then paste it in the textarea.
Sometimes they paste as plain text, but sometimes not. And sometimes the articles final result is a mess because of the HTML that Word generates.
I have problems specially with the fonts, people change font face in Word and when they paste text in the textarea, the font face used in Word remains (seems that Word uses the <font> tag.
I am using a checkboxlist which I am populating from the database using Databind(). And i am having Dropdownlist in UpdatePanel to avoid postbacks which is also populated form database. Each Item in dropdownlist-> Associated to Many Items in Checkboxlist. Is there any way I can Make Associated listitems bold(to highlight them) on Dropdown Selected Index Changed Event so that user will know he has to select the highlighted checkboxes for the selected value in dropdownlist?I have tried using the listitem Attributes as well but it's not working. See the code below.
how can i show matter in Hindi Language on my asp.net page. and the main thing is that my text should be visible even if the Hindi font is not installed at client side. for that i researched on Google and find out that unicode can do it.. but i dont know how to work with it.
We are using ASP.NET ReportViewer Control to render rdl files. In the rdl files we have set the font to "Century Gothic" and in preview mode it renders the fonts nicely. However - when it gets rendered on browser we see the fonts defaulted to "Times New Roman".
I tried couple of things without success: 1. Setting the font family of the page () 2. Setting the FontNames of the ReportViewer control
One more thing is I don't see Century Gothic in the list of available fonts in the HTML Editor inside Visual Studio 2010. Do I need to add them somewhere?
Is there a way to apply your own CSS tags to <li> tags when using ASP .NET 4.0 menu control? For example, say I have an external style sheet that has tags "class1", "class2", "class3", and etc. I want to apply "class1" to the first menu item. Then if menu item is selected, I want to apply "class2" and if it's not selected, "class3". I played with various 'Static' styles, but just can't get it work. I finally gave up and created my own menu control that extends ASP .NET menu control and provides my own custom rendering. This works, but I'm wondering if there is a way to get it work with built-in menu control.
I'm trying to build a site that will allow its users to post articles and updates dynamically. I never had to build something like this before and was wondering if anyone has. What is required? How do I include options to change fonts, color, and size?
Is there a way to have multiple fonts and/or colors in one line of text in a table?Example:In this table I want the first part of the text (Cell 1 data, Cell 1 data, ect.) to display in Black and the second part of the text ((table name)) to display in Light Gray
i have in my website in which i have used certain fonts that are sometimes not present on clients computer is it possible to detect if certain font is present or not and if not present directly install it on client computer
I am Exporting Crystal Report to pdf in hindi font it displaying as boxes i have installed adobe reader 11.0 with asian extended language pack in my local system. (English is working fine problem is with only with hindi font)
i'm doing ajax website using PostWebRequest() function, when i call any .aspx page to the target html element the output is coming fine in IE but in FF(FireFox) is coming in html format(html tags) IE output : [URL] FF output : [URL]
javascript functions : function PostWebRequest(postPage, HTMLTarget, parameter) { displayElement = $get(HTMLTarget); displayElement.innerHTML = "<div style='text-align:center;'><br /><br /><br /><br /><br /><img src='images/ajax-loader.gif' algin='center' /></div>"; var wRequest = new Sys.Net.WebRequest(); wRequest.set_url(postPage); wRequest.set_httpVerb("POST"); var body = parameter; wRequest.set_body(body); wRequest.get_headers()["Content-Length"] = body.length; wRequest.add_completed(onWebRequestCompleted); wRequest.invoke(); } function onWebRequestCompleted(executor, eventArgs) { if (executor.get_responseAvailable()) { if (document.all) { displayElement.innerHTML = executor.get_responseData(); } else { displayElement.textContent = executor.get_responseData(); } } else { if (executor.get_timeOut()) { alert("Timed Out"); } else { if (executor.get_aborted()) alert("Aborted"); } } }
I'm using webforms ASP.NET, with masterpages. I want to add a LANG attribute to the <title> tag. ASP.NET automatically generates a title tag. I've tried adding my own tag with an ID and runat="server", like this:
<title id="titleBlock" runat="server"></title>
When doing this, I can set an attribute like the following without any errors.
titleBlock.Attributes.Add("lang", "it");
However, ASP.NET wipes out my <title> tag completely and puts its own in without my LANG attribute. Is there any way to accomplish this?