Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How to read embedded resource text file

How do I read an embedded resource (text file) using StreamReader and return it as a string? My current script …

.net embedded-resource streamreader
Gmail Error :The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required

I am using following code to send email. The Code works correctly in my local Machine. But on Production server …

c# .net smtp gmail
How do I get the current username in .NET using C#?

How do I get the current username in .NET using C#?

c# .net
Group By Multiple Columns

How can I do GroupBy Multiple Columns in LINQ Something similar to this in SQL: SELECT * FROM <TableName> …

c# .net linq group-by aggregate
Catch multiple exceptions at once?

It is discouraged to simply catch System.Exception. Instead, only the "known" exceptions should be caught. Now, this sometimes leads …

c# .net exception exception-handling
What is the syntax for an inner join in LINQ to SQL?

I'm writing a LINQ to SQL statement, and I'm after the standard syntax for a normal inner join with an …

c# .net sql linq-to-sql join
how to insert datetime into the SQL Database table?

How can I insert datetime into the SQL Database table ? Is there a way to insert this query through the …

.net sql sql-server sql-server-2005 c#-3.0
Inserting a tab character into text using C#

I'm building an application where I should capture several values and build a text with them: Name, Age, etc. The …

c# .net
Replace Line Breaks in a String C#

How can I replace Line Breaks within a string in C#?

c# .net string
Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction

In ASP.NET MVC, what is the difference between: Html.Partial and Html.RenderPartial Html.Action and Html.RenderAction

.net asp.net-mvc partial-views renderpartial renderaction