C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

learn more… | top users | synonyms (4) | c# jobs

0
votes
0answers
15 views

Display entire IP Address range knowing Minimum and Maximum values?

I'd like to display the entire range of ip addresses given the min and max values of the ip range. So, if a user inputs: "192.168.1.1-192.168.2.255" I'd like to then display the individual addresses ...
0
votes
0answers
3 views

wkhtmltopdf Custom header and footers with ASP.NET MVC

Anyone able to use wkhtmltopdf custom header and footer with their ASP.NET MVC? I need your help. I see that wkhtmltopdf is updated and supports some new functionality (as of v0.10.0) for header and ...
0
votes
0answers
7 views

How to Search and Retrieve Image/Picture that was converted into bytes and saved in local database

I have a program here that saves an image in a local database with an Image data type in visual studio 2010 using a these codes: private void button10_Click(object sender, EventArgs e) { ...
0
votes
0answers
7 views

Error on IDs in postback

I have a drop down list and i populate it with data from db , and while selecting the drop down list items , buttons will be dynamically generated depends on the selection . But i encounter this ...
1
vote
1answer
18 views

Why isn't e.Handled stopping the beeps?

I've got multiple text and combo boxes in my Visual Studio 2012 project, and I have the keydown set to execute different events on Enter being pressed. And, there's that useless, stupidly annoying ...
0
votes
2answers
14 views

Object reference not set to an instance of an object asp.net , c#

Hey guys i get this error when i try to assign CartID to a string. Would really appreciate any help. Thanks private static string CartID { get { HttpContext cont = ...
0
votes
1answer
8 views

ORMs that can generate classes from an existing database

Except for Entity Framework, which ORMs can generate classes from an existing database? I am looking to move away from Entity Framework because it is just too slow. I am wondering which ORMs out ...
0
votes
0answers
12 views

PGP: Checking filetype and returning the extension using windows' FileSign.txt

I am actually looking for things like this: EncryptedFile.pgp ----decryption---> DecryptedFile(no extension) ----use some checking methods----> DecryptedFile.extension I know that there are alot of ...
2
votes
1answer
9 views

C# playing multiple audio files at once from your resources?

I'd like to be able to press a button to play a sound of a button being pressed while music is already playing. SoundPlayer is no help because it stops the music to play the sound. I have added the ...
0
votes
2answers
13 views

Exclusion conditions for Multiple criterias

i have the following line: if (PhoneNumber.EndsWith("_L") || PhoneNumber.EndsWith("_K")) Continue; what I want to know how to add another argument to exclude the PhoneNumber.Lenght !=4 meaning ...
0
votes
0answers
3 views

Relative path T4 for “Master” template, not children

My team is using T4 templates to generate some of our code based on and XML configuration file. Due to the parsing of the XML structure into a POCO we decided that using a common resource (A "master" ...
0
votes
0answers
2 views

Can't Delete Facebook Requests (user-to-user or app-to-user request) with Facebook C# SDK or with HTTPWebRequest

I have tried almost every variation I can think of but nothing seems to work. I am trying to simply delete a Facebook request (user-to-user or app-to-user request) using the delete method of the C# ...
-1
votes
0answers
11 views

Setting selected item of ListBox in winforms throws array index out of bounds exception

I'm currently working on a project in winforms and run into a little trouble with setting the selected item of a populated ListBox. Basically, I have an SQL database which holds what I guess could be ...
1
vote
3answers
33 views

How to pass an object instead of it value

I am trying to make a simple parser where I have key, value pairs that I would like to assign to variables. I want to map a String to a variable. I think the below test class should express what I ...
0
votes
0answers
7 views

TargetException was unhandled

I'm trying to allow someone to run a query on a single table by passing in a Dictionary of column names and values. It was originally breaking on when I was restricting returnVersions so I put in the ...

15 30 50 per page