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

Sunday, 5 June 2016

dotnetConf 2016 is back

Discover the World of .Net 
dotnetConf Virtual event, June 7-9 2016.






The dotnetConf is a free, 3 day virtual event co-organized by the .NET community and Microsoft. Over the course of the three days you’ll have a wide selection of live sessions that feature speakers from the community and .NET product teams. These are the experts in their field and it will be your chance to learn, ask your questions live and get inspired for your next software project.
For more details, check out http://www.dotnetconf.net
WHEN

Saturday, 28 May 2016

.Net sorting list with special characters

Sorting using c# .Net  doesn't use ASCII while sorting, It uses Unicode. When we perform a string sort, .Net by default uses the current culture.

Sorting a list in c# with special characters like "-", "/"

Example:
1.  Here is the Sample Data before sorting.


























We can't get sort String having the special characters, Now we can do with RegExpression.

using System.Text.RegularExpressions;


Ascending

response.Result = response.Result.OrderBy(f => Regex.Replace(f.Name.TrimStart().TrimEnd(), "[^a-zA-Z0-9_]+", " ")).ToList();


Descending

   response.Result = response.Result.OrderByDescending(f => Regex.Replace(f.Name.TrimStart().TrimEnd(), "[^a-zA-Z0-9_]+", " ")).ToList();


Result:

























































Saturday, 1 August 2015

Could not load file or assembly 'Antlr3.Runtime'.

Hi,

Basically in MVC4 we are getting this kind of Issue. Could not load file or assembly 'Antlr3.Runtime'.












To solve this Issue there are many ways to do to resolve this.

1. In Web.config file change Impersonate from true to false.

<system.web>

    <identity impersonate="false" userName=" admin" password="admin" />


The Username and password for the full access to the this User.

2. Other Solution to updating the antlr and webgrease nuget packages.


Friday, 31 July 2015

N' Rows were detected. The schema update is terminating because data loss might occur. ', 16, 127

Hello,

Today when i work with Database project publish i got an error while deleting a constraint .

Error:

N' Rows were detedted. The schema update is terminating because data loss might occur. ', 16, 127





To solve this issue while publish DataBase Project from Visual Studio2013. We need to change Options in Publish Project Window.





first we need to uncheck the 
Block incremental deployment if data loss might occur.






Friday, 12 June 2015

localhost website consistently making get arterySignalR/poll?transport=longPolling&connectionToken= calls /9ac086a69364466a841e03e001f946fd/arterySignalR/ping

Dear folks,

I found the Basic Issue while Working with Visual Studio 2013. found the issue



/9ac086a69364466a841e03e001f946fd/arterySignalR/ping
  
arterySignalR requests continuously going. this is because of In Visual studio 2013 Browser link feature introduced.


We can simply solve this issue just uncheck the "Enable Browser Link"




Tuesday, 26 May 2015

MUGH User Group Meet - May 2015

Microsoft User Group Hyderabad invites you to May 2015 User Group Meet on 30th May'15.

Agenda:

TIMETOPICS & SPEAKER
09:00 AM - 09:50 AMRegistration
10:00 AM - 11:00 AMASP.NET vNext (ASP.NET 5) with Visual Studio 2015

-  Shravan Kumar Kasagoni,Pramati Technologies
11:00 AM - 12:00 PMExploring C# 6 Inside Visual Studio 2015

Pranav Ainavolu, RealPage
12:00 PM - 12:10 PMBreak
12:10 PM - 01:10 PMCortana Extensibility in Universal Windows Apps

Arun Kumar Surya Prakash, Microsoft

Date: 30th May, 2015
Time: 9.00 AM - 01.15 PM

Venue:
Microsoft India Development Center
MPR Halls 1 & 2, Building 3,
Gachibowli Hyderabad,
Telangana 500081 India

Registration: https://mugh-may2015ugmeet.eventbrite.com

Sunday, 1 February 2015

QR Code Generator



What is QRCode:

QR code (abbreviated from Quick Response Code)is the trademark for a type of matrix bar code first is designed in Japan.


Nowadays, QR Code is mostly Used in Mobile phones to ease data entry.

Generation of  QR Code:

Nowadays, QR Code is mostly Used in Mobile phones to ease data entry.

QRCode Library provides Encode content into a QR Code image which can saved in JPEG, GIF, PNG OR BITMAP Formats

Install QRCode Library, run the following Command in the package Manager Console.
 


 Open package Manager Console from Library Packager Manager.









































 Added MessageToolkit

























Add the following to the default.aspx

<div>
      <asp:Image ID="imgQRCode" runat="server"/>
</div>



Now add the code in the Code behind.
add the namespaces as follows.


using System.Drawing;
using System.Drawing.Imaging;
using MessagingToolkit.QRCode.Codec.Data;
using MessagingToolkit.QRCode.Codec;


Add the QRCode generator in the Button click or based on your requirement.


QRCodeEncoder encoderObj = new QRCodeEncoder();
Bitmap bitImg = encoderObj.Encode("http://journeytodotnetauthority.blogspot.in/");
bitImg.Save(Server.MapPath("~/images/dotnetauthority.jpg"), ImageFormat.Jpeg);
imgQRCode.ImageUrl = "~/images/dotnetauthority.jpg";

The output as follows.
 























Read the QRCode from mobile