0 answers

How can I get the method name from an Expression<Action<T>>?

So I have this extension method public static string GetMethodNameFromExpression(this Expression expressionBody) { MemberExpression body = expressionBody as MemberExpression; if (body == ...

3 answers

C#,what is the simplest way to add a class in List of class

I have record of a class multiple time.I make List and create object of Statsand then add to my List but the most recent record is copied by all. here is my code List<Account> account = ...

3 answers | 2 mins ago by Muhammad Nafees on Stack Overflow stackoverflow.com
1 answer

LINQ Filter rows based on left jon

I want a LINQ query to have two behaviours, dependant on a parameter. If param = -1, return all rows If param > -1, return select rows This is what I have tried. It emulates how I'd write it in SQL ...

1 answers | 2 mins ago by Janine Rawnsley on Stack Overflow stackoverflow.com
0 answers

process.Start() is throwing exception “The system cannot find the file specified”

process.Start() is throwing exception An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll The system cannot find the file specified C# Code is ...

1 answer

How can I call a Web Service from Xamarin Studio?

I have created a web service which works fine and i have also added the webservice to my android app project in xamarin studio but i dont know how i can call my web service to work on my android app. ...

3 answers

How can I receive SQL Messages in c#?

I want to show these SQL messages in c# My C# code: SqlCommand cmd = new SqlCommand(); cmd = con.CreateCommand(); string ab = ""; con.FireInfoMessageEventOnUserErrors = true; con.InfoMessage += ...

0 answers

Convert pdf to tiff using C# without 3rd party libraries?

I need to convert a PDF to a single tiff image (multi-page tiff obviously). I have figured out the tiff creation part. But the issue is with extracting a image/bitmap from pdf. Of course c# .net does ...

0 answers

Entity Framework queries are slow on one server but fast on another

I have a simple C# console application that uses Entity Framework 6.1 to access a SQL Server 2008 R2 database. When I run this application on two different servers, database reads take significantly ...

0 answers

C# Converting decimal 0 to string adds a thousand seperator and lots of 0's

I have an issue where a decimal 0, when converted to a string, adds a thousands separator (Danish formatting judging by how other values are converted) and lots of trailing 0's. From the data i have ...

1 answer

C# How to create custom section without parent node

I have worked by below article. http://www.jokecamp.com/blog/net-custom-configuration-section-collection-and-elements/ I can achieve if I do like what it said. But I want to remove parent node. I ...

0 answers

Create csv from a list without duplicating certain columns

I have a collection (List<ProfileDo>) which has the following structure... ProfileDo - StartDateTime - EndDateTime - Volume I am trying to create a csv file which looks like, ...

3 answers

WCF Service cannot return JSON of List of objects

I have an object defined as below. From my WCF Service I can return a List with no problems, but when I try to return as Json, it returns zero bytes. No error. I have about 80 other methods in this ...

3 answers | 10 mins ago by nealkernohan on Stack Overflow stackoverflow.com
1 answer

How to Reset Value of Ajax NumericUpDown into Minimum value

The title say's it all how to Reset Value of Ajax NumericUpDown into Minimum value through C# or Javascript? Let me say I have ajax NumericUpDown and Button If I click Button named Reset the value of ...

0 answers

Encrypt in C# using OpenSSL compatible format, decrypt in Poco

I'm trying to encrypt (aes-128-cbc) in Win OS using a OpenSSL compatible format and decrypt on Linux OS using Poco::Crypto that is a wrapper of OpenSSL. I'm using a pwd and salt. Digging in the ...

0 answers

How to export data into sheet 1,2 and so on, in xls using mvc razor?

i have my data to export into xls format.The data get converted and downloads in xls file format is perfect.But, the problem is, i have my data which contains three list.Here i can only give one list ...

1 answer

C# use a reader in another reader solution?

I need to get some mysql data into another mysql reader request anyway to workaround that I apparently can't have 2 readers open at the same time it will all end up in a datagrid public void ...

1 answers | 13 mins ago by Kaalund on Stack Overflow stackoverflow.com
2 answers

Linq to Entities join vs groupjoin

I have web searched but I still cant find a simple answer. Can someone please explain (in simple English) what a groupjoin is? How is it different from a regular inner join? Is it commonly used? Is it ...

2 answers | 13 mins ago by duyn9uyen on Stack Overflow stackoverflow.com
0 answers

Why don't the items from my dropdownlists in mvc get marked as selected?

I'm using SelectLists to populate the following DropDownLists from the respective models. <div class="editor-field"> @Html.DropDownList("Companies", Model.Companies) </div> <div ...

7 answers

C# - Call a function in a parent form

I'm trying to call a function in a main form from another form... Already got to call a simple function, by declaring it public static in main form, yet I can't call the needed one. The function to ...

7 answers | 15 mins ago by Grigory Kornilov on Stack Overflow stackoverflow.com
2 answers

How to add custom message exit dialog to wix installer

I want to add message to ExitDialog in wix installer. how can i do that? I need to add message like this - Please restart you machine to make changes. I have tried something like this. ...

1 answer

HttpWebRequest with GET: 401 unauthorized

I found some problem with httpWebRequest, I've read all the same issues on other forums, but answers don't seem to work. My code: HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url); ...

3 answers

Replace single group via RegEx in all matches

I have a text containing HTML-Elements, where hyperlinks contain not URLs but IDs to the item the hyperlink should open. Now i'm trying to get all those IDs and replace them with new IDs. The scenario ...

3 answers | 17 mins ago by Alexander Mills on Stack Overflow stackoverflow.com
0 answers

Xsd import doesn't work

I'm trying to use an xsd defined in http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd#. I saved that definition as one xsd file to my disk and change the import in a ...

1 answer

multipart sms sending failed with AT commands

I send one part pdu sms by AT commands, but when my message is more than 70 character my sms didn't sent. My text body is : نام و نام خانوادگی : احسان صادقی آخرین اعتبار موجود در کارت : 1597739 ...

1 answers | 17 mins ago by IT School on Stack Overflow stackoverflow.com
2 answers

Where should a singleton mutex be released in an IDisposable derived class?

Background I am working on implementing a derived class of a database accessor that should only allow one thread at a time access to the database. But this question should be applicable to any form ...

0 answers

C# SelectionStart resetting to zero in combobox

I am trying to implement autosearch function for my custom comboxbox. Whenever I am trying to enter backspace when an Item is selected its resetting the SelectionStart to zero even though text is not ...

0 answers

Multiple notify icons

I have created a multithreaded application in C# (VS2013 for desktop). The app consists of 1 main form with 12 modules running simultanously, each of them (based on its current state) runs on 2-3 ...

0 answers

Using jquery ajax post throws “500 Internal Server Error” in aspx

Using jquery ajax i am calling a method "Dispatch_Job" and passing parameters to it which does insertion but in here it throws error. Establishment_Controller.aspx code: function ...

1 answer

An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code

I've faced a problem that is: An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code Additional information: The Include path ...

1 answers | 19 mins ago by Jahan on Stack Overflow stackoverflow.com
1 answer

How do I create the asp.net Identity tables manually with migrations?

I would like the asp.net Identity tables to exist in my database, and as well, have the corresponding respective code-first models generated before I actually run the mvc app and create a user, so ...

15 30 50 per page
1 2 3