.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to write expression to get title name in bold and value in normal in a single Text Box

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :Sql Server


I have a requirment, where I need to display like Service Provider : Ram in one text box. I have written expression   ="Service Provider :"+Fields!Name.Value for this but I am getting any properties to make Service Provider : in bold. Please anyone can help me out.

For example:

If I want to display Service Provider  in Upper Case and Fields!Name.Value In Lower Case I can write Below expression to get this.


View Complete Post

More Related Resource Links

DropDownList to display values from Two Tables - bold sub heading and normal Text

Hello I hope I am not asking simple one.  SUPPORT SERVICES<     Computing Service    Library or Data Engineering    Civil Engineering    Electrical Engineering  I have the data to display in a DropDownList control shown as above. There is a distinct category Type(example Support Services) and Category Name i.e., Computing Services. I do not want to hard code the values into DropDownList control. I like to get the data from database to display as shown in above Table. Note that Category Type should be displayed in Bold and Category Name in normal Text. Question: In order to achieve the above, 1. How many database Tables and relationships between them  2. Query the data to display in the above format in drop down 3. how should be the code behind i.e, DataTextValue and DataValueField for DropDownList. Please provide with useful code snippets or references. Thanks,

Partially Bold Text in SSRS 2005 using Expression ?



I am using SSRS 2005.

I have one requirment. I need to Partially Bold some part of Text in column.

Below is the Example.

Name < - -- Column in SSRS 2005 Report.

This column contains combination of Last Name and First Name. All Database record contains Last name , while in some record our requirment is to append First Name with that.

That is i aleady handled using Nested IIF Expression.

Now, i want to display appended First Name in normal while all Last Name whihc is Database Field in BOLD Font.

How is it possible ?


Willing to Write Urdu in my text box


 hi want to write urdu in text box of my application if anyone has the solution how to do this kindly let me know

Change Text of Sharepoint Form Dialog title Bar

Hi, I am having Sharepoint 2010 RTM Trial on Windows Server 2008 SP2. I have published custom infopath form to sharepoint List. I have two views in that form, One is called AddItem and The other one is called EditItem. I have use the infopath rule to switch views depending on some condition and it is working fine. But when the view is switched to EditItem, I want to Customize the Title bar of Form Dialog to my custom text.... Can anybody have an answer ? Regards

Omitting text part using expression

Hello guys, i am newbie here. I wanted to omit some part of text value using expression. for example, i want to get rid of the part that are in the () from CAT 980 Loader (LO02). What function should i use here? i tried to use trim, right, left etc. No luck. Please help. Regards, Saikhnaa

How to make bold/regular font text the same width

Hi! In Excel the width of texts in bold font cells have the same width as regular font ones. My question is how to do that programmatically (in a DataGridView, labels, paint event, anywhere...). I can do this if I draw the string twice in the paint event (1 pixel shift for the second draw), but it requires 2 drawings of course, which I think is not too efficient. Is there any other solution? Some trick in creating the bold font? Thank you, Feri

How to write a stylized XML file to a text file?

Hello All,I am using the <asp:xml> tag on front end and I am supplying the Document Content(data source) as well as the transform source(XSL file) on the back end to display the stylized XML on a web page.Now, I want to write the transformed result to a text file. I want to fetch the transformed XML without having to parse through the source HTML. Any suggestions will be greatly appreciated.Thanks.

SSRS BUG? When a FontStyle expression is used in a report, the Browser Text Size setting overrides t

I have created a report that has the same font size for all the sections in the report. Some sections' fields use a FontStyle expression that changes the FontStyle between Normal and Italics conditionally. I run the report through the reportserver interface and the report looks fine. I run the report through the ReportViewer control and the the fields which use the FontStyle formula are overridden by the Browser's Page Text Size. Also, when I look at the inline HTML Style that's generated, the fields with the formula don't have a style, they are blank, while the fields with without a FontStyle expression have an inline HTML Style generated. And this is probably why the browser text size setting can override. This seems like a ReportViewer HTML render bug... Or is there a way around it??

How to read/write GIANT text file with no line breaks


I have to process giant XML files that are 6GB+ in size.  The problem is that there are no line breaks in the file, and the XML is improperly formatted (no root element).  Therefore I can't use the XML class to read the file, and I can't open the file in any text editor or even "Type" it in a command window because the 1 line in the file is over 6GB.

The file contains UTF8 characters.  What I want to do is first write a program just to read and display 100 characters at a time so I can look at the contents.  Next I want to be able to create a new file, write a root element, read/write the contents of the file and then write the closing root element.

Can anyone provide a code snippet of how to read and display the file contents 100 characters at a time.  I can then figure out the rest.


Rich text editor for Title field in Publishing site


I have one French publishing site. I want to set one page title like this: see BOTOX trademark here . To show title like this i need to put tag like Product <sup>MC</sup> . Problem is, if i put above tags in title text box at the time of page creation then page title showing Product <sup>MC</sup> not  like above site.


Regards, Sandip Patil, .Net,Sharepoint Developer www.worldofsharepoint.com

How to convert .html format data to normal text using Regular Expressions?

How to convert .html format data to normal text using Regular Expressions?

How to save a multiple user control to a few single record text?

I have a list with people pecker control that admits multiple users.
I like to have another list with one record for each user in the control that loaded before.
Is there any way in InfoPath or in a workflow to use something like FOR EACH to take one by one user in a control and write/update records after that?
Thank in advance

Help with a regular expression to skip certain text

I am trying to write a regular expression to find rtf tags with an rtf document so I can strip them out and get the text. And before everyone says to use the RichTextBox control we already used that but this causes problems since this DLL is being converted into an assembly that is used by SQL Server. And since RichTextBox is dependent upon System.Windows.Forms it is causing use problems.

I've never really used regular expressions and found some samples people used to strip the rtf tags. And it works for majority of the tags. But I created an RTF document which looks like the following;

the directory name is c:\par\li\rtf\text stuff in the name.
How does rtf save things with {\par \f2}

Here it is as RTF text;
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Msftedit;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs22 the directory name is c:\\par\\li\\rtf\\text stuff in the name.\par
How does rtf save things with \{\\par \\f2\}\par

So I need the expression to skip the directory name C:\par\li\rtf\text - and yes I used rtf tags in this directory name to see how it would be handled
I also put in {\rtf and \f2}

The expression I have is the following;

matchpattern =

Repeating table header text is bold and won't go


I have an InfoPath 2007 form that I have published to a SharePoint 2010 site with Forms Services.

When I open the form in the browser, the column titles in each repeating table appear in bold text. No matter what I do, I cannot make this go away. I have tried the obvious things, such as pressing the CTRL+B or CTRL+SPACE keys. I can apply or remove underline or italics but not the bold.

We are still in changeover period so I can publish this to a MOSS site (no Forms Services) and the table headers are not bold when they open in the InfoPath client.

Does anyone have any ideas?


regular expression alphanumeric all text not contains !


hello all am performing a validation on textbox I need to make it match this



the regular expression must match the whole word , not just contains !! I am writing this one but it's not giving right results




Regex alphaNumbericStringRegex = new Regex("^[A-Za-z0-9]$")

How to write ListViewItem that contain image , text and button ?


I need to write some listViewItem  ( using WPF ) - that contain image, text and button.

I want to inherit from the simple listViewItem class and add to the listview item that contain the three items ( image, text, button ).

I don't understand how the listView control will arrange the 3 items ( image , text, button ) in the right order in the control - how to tell the listview control that the image is first, text is second and the button is the third ?  

make bold part of the text



Is there a way to make bold part of the text in table cell in Reporting services 2005? Maybe some function that can do this?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend