.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

WebPartVerb separator

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :ASP.Net

I've got some webparts and I've added my own menu options to the dropdown.  Is there a way to add a seperate between parts of the menu?  If so how??? 

View Complete Post

More Related Resource Links

string.Split - not all characters allowed as separator



I am working on a site where I use the Split function on a string.

To make sure I used a separator character that I do not use anywhere in the data I selected the character '£'.

This worked fine in Firefox and Safari, but in IE8 I get an 'Index out of range' error, so apparently the '£' character is not handled correctly.

I changed the separator to ';', and then it works fine.



Use 1000 separator - using US separator instead of local separator

I'm having a bit of trouble to get the proper 1000 separator to show up in my number fields. I have an SQL Server 2008 Developer Edition running on a 2008 Server Enterprise Edition, all set up in English, but the input language is set to de-CH (German (Switzerland)). For my currency fields, I've configured the following number format string: 'Fr.' #,0 According to the Number section in the TextBox properties, the 'Current regional settings' is German (Switzerland) and the preview shows Fr. 12'345 which is exactly what I want to see. However, in the report preview, even after multiple refreshes and even a machine restart, in the report preview, the above number is returned as Fr. 12,345 So, the en-US separator is being used (for de-CH the number means 12 Francs, 345 cents.. not the twelvethousand threehundredfortyfive we're looking for). The only way to get around that is to set the language de-CH on the report itself. Though that begs the question why it picks the proper locale in the textfield properties (and thus returns the proper preview when configuring the number format), but then ignores the locale when running the preview.

add a line separator between combobox items using C#.net

i wanna to add a line separator between combo box items using C#.net. how can i do...

Menu Bottom Separator Image

Hello, When I add a static bottom separator image to my menu control, it is displayed in design mode. However, it does not show on the web page when testing. It does not render and displays the white box with red x. My other images are showing fine. I am using Microsoft Visual Web Developer 2010 Express and IE for my browser. Here is my code.<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource2" ForeColor="Black" Font-Names="Cambria" style="font-size: large; font-weight: 700;" Font-Underline="True" StaticBottomSeparatorImageUrl="~/images/separator.jpg"> <StaticHoverStyle BackColor="Silver" /> </asp:Menu> <asp:SiteMapDataSource ID="SiteMapDataSource2" runat="server" showstartingnode=false/> Thanks for your help!

sp_send_dbmail dashes separator line


I need to have an automated process to generate and send out csv data on a set schedule. Using the sp_send_dbmail routine is working great except for one small problem I am having trouble getting around.

I am specifying a query to be run and including the results as a file attachment. The customer wants a csv file with column names.

The attachment always includes a 'separator line' of dashes between the column header and the actual data. Is there any way to eliminate this line of dashes? When I use @query_result_header = 0 flag, it removes the line of dashes, but the column names are also removed as well.

I want to keep the column names, but just remove the line of dashes. Any ideas?


How to create a formatfile that eliminates Quates and changes decimal separator from comma to period



I,m starting to learn sql  2008 R2 express and i have managed to make a bulk insert but when trying to eliminate quates as text qualifiers i,ve seen that i have to make a formatfile. Which application should i use to make this formatfile and how should it look like to eliminate the quates that works as textqualifiers? I also wonder if it is possible to change the comma decimal separator to a period separator so i can use bulk insert for value fields. The file that i would like to bulk insert looks like this.

2010-09-16;"Some Project";"3010";10,15
2010-09-14;"Some Other Project";"4010";500,55552

Best regards


Arne Olsson

problem with decimal separator



I'm using "," as separator for decimal in my app ( price: for example 12,34 ). 

Everything was fine until I switch from my local machine to server. 

Then I found out, that my prices are shifted left by 2digits ( should be 12,34 but there is 1234,00 ). 

I guess that problem is with separator in "Regional and Languages Options". 

What can I do with this ? 

Thanks in advance 

Implementation of thousand separator for a Textbox


I need a JavaScript code to implement the thousand separator for a Textbox on KeyUp event.

Please help.

String.Split with with tab as separator


I should read the substrings of this file:

1	1	-1738.20118241	6787.03549108	
2	2	-1803.20118241	6759.73549108	
3	3	-2193.20118241	6759.73549108	

I haved used the tab control "\t" as the separator (there is a tab character between the columns):

      Dim separator() As String = {"\t"}
      Console.WriteLine("separator(0) = {0}", separator(0))
        ' Open the file to read from.
        Using sr As StreamReader = File.OpenText(nomeFile)
          Do While sr.Peek() >= 0
            'Dim line As New StringBuilder
            Dim stringline As String
            Dim stringarray As String()
            Dim x, y, canale 

DoubleConverter unable to parse values with thousands separator


While working with the TypeConverter class I ran into a situation where the string value I provide is a valid double but the underlying DoubleConverter is unable to properly process the value. To illustrate:


string x = "1,234.56" ; // is a valid double value
double y = y.Parse(x); // works as expected

but, if you use the TypeConverter it fails...

TypeConverter converter = TypeDescriptor.GetConverter(typeof (double ));
double z = converter.ConvertFromString(x); // will throw a FormatException!

As curiosity got the better of me I started poking around and discovered a subtle difference between the two approaches. Although the underlying DoubleConverter class (which is created via the TypeDescriptor class) ultimately also calls the double.Parse method it seems to forget to turn the NumberStyles.AllowThousands flag on, which is causing the exception. The code below has been taken from the System.ComponentModel

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