Pages

Showing posts with label C #. Show all posts
Showing posts with label C #. Show all posts

Monday, December 2, 2024

Visual Studio IDE where pressing Space causes a character to be deleted

 

If you're experiencing an issue in Visual Studio where pressing Space causes a character to be deleted, this is likely due to a conflict or unintended feature activation in your settings. Below are a few potential causes and solutions to resolve this problem:

1. Check for Overwrite Mode

One of the most common reasons for this issue is that Overwrite Mode might be enabled. In Overwrite Mode, when you type, the new character replaces the existing character instead of being inserted.

To disable Overwrite Mode:

  • Press the Insert (Ins) key on your keyboard. This key toggles between Insert Mode (default) and Overwrite Mode.
  • When in Insert Mode, typing a character will insert it, while in Overwrite Mode, typing will replace the character under the cursor.

If this is the issue, pressing the Insert (Ins) key should resolve it.

Wednesday, August 27, 2014

how to design ASP.Net Grid control with Survey or quiz records in the Grouping Category of the Questions

1. Create DataList control.
2. Create Grid control inside the DataList
3. Bind Catagory data in the DataList control
4. It will loop all related questions during row databound.


 

Tuesday, April 2, 2013

Namespaces for .Net Fucntionality

1. Going to use upload functionality the use the namespace

using System.IO;

if (!System.IO.File.Exists(fileToUpload))
                throw new FileNotFoundException("File not found.", fileToUpload);

Otherwise it throws error
----------------------------------------------------------------------------------------------------------------

ASP.Net Validation Controls

1. Validation for Non-Numeric and Decimal Values

It will restrict alphabets characters. It will allow only Numbers or
decimal values.

style="text-align:right" Width="53px" BackColor="#82CAFA"
BorderStyle="Dotted" BorderWidth="1px">

                                                   
runat="server" ErrorMessage="Only Number allowed"
ControlToValidate="Target"  ValidationExpression="^\d*[0-9](|.\d*[0-9]|,
\d*[0-9])?$" ValidationGroup="METVAL">

----------------------------------------------------------------------------------------------------------------

Monday, March 11, 2013

ASP.Net and C Sharp String Manipulation


1.using foreach loop for split the comma in that string

 foreach (string c in Controls.Text.Split(','))
                    {
                        if (c == Target.ID)
                        {
}
}


2.Get the specific values in that string using substring method


3.Replace the string
toAddress = toAddress.Replace(";", ",");


4.Get the string after comma
string[] words = subject.Split(',');
                string title = words[0];
                string Roomtoretrieve = words[1];
                string MeetingRoom = words[2];