Tagged Questions
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
0
votes
0answers
3 views
How to get chart type of a particular chart using Open XML SDK?
I have an Excel file with a chart in it.
I am able to reference the chart using the chartPart property provided by Open XML SDK.
How do I obtain the type of chart (bar, pie,line,etc.) from this?
...
-1
votes
0answers
8 views
Fast method to get row indices of selected cells in a DataGridView
I was previously using SelectedCells to get this information, but this takes around 40 seconds when there are 2 million rows and all are selected.
On Msdn it says that SelectedCells is slow for large ...
0
votes
0answers
4 views
Distinguish between HttpClient request failure types
I need to write code to handle the 2 distinct types of failures that can arise after issuing an HTTP request using an HttpClient object that comes with .Net Framework 4.5:
Connectivity failures, ...
-2
votes
1answer
11 views
asp.net c# 3 layer LinqTOSql project
I am looking for a template for a 3 layer architecture sample project which should contain the data access layer, the business access layer and the presentation layer.
Does anyone have a link for a ...
2
votes
0answers
5 views
Create Json Array with ServiceStack
Quite new to .NET. Still haven't gotten the hang of how to do dictionaries, lists, arrays, etc.
I need to produce this JSON in order to talk to SugarCRM's REST API:
{
"name_value_list": {
...
0
votes
0answers
6 views
Building and sending very large CSV data-set over C# WCF REST Web Service as MemoryStream
This topic is related to the question here:
How to send a CSV file using C# WCF RESTful (i.e. Web) Service?
I was able to send a very small data set by utilizing the method discussed at ...
0
votes
2answers
20 views
Run Javascript function after postback in asp.net
I have a button which causes a postback and also calls the javascript function hideInsert() which looks something like this:
function hideInsert() {
$('.hide').hide();
alert("hide");
...
0
votes
2answers
29 views
Is there alternative editors to ASP.NET and C#
same as title suggest, I have recently got into the asp.net business and I was wondering if there are better code editors available or better yet just simpler/more instinctive shortcuts and plugins ...
0
votes
0answers
4 views
How to show twitter login screen in TweetSharp
I am using TweetSharp to tweet like this
var service = new TwitterService("consumerkey", "consumersecret");
service.AuthenticateWith("token", "tokensecret");
service.SendTweet(new SendTweetOptions() ...
-1
votes
0answers
37 views
write to web text file
I am programming in Microsoft Visual C# 2010 Express.
I have a text file in a folder on my web server containing one character: '0'.
When I start my C# Application I want to read the number from my ...
-3
votes
3answers
56 views
Get Windows user C#
I have a WPF application that needs to get the Windows username of the user. I am using the following line of code:
MessageBox.Show("Your username is:\n" + WindowsIdentity.GetCurrent().Name);
This ...
3
votes
4answers
58 views
How do I replace a specific occurrence of a string in a string?
I have a string which may contain "title1" twice in it.
e.g.
server/api/shows?title1=its always sunny in philadelphia&title1=breaking bad ...
I need to change the second instance of the ...
0
votes
1answer
11 views
How do I suppress the following commands from throwing errors on a pre-build event?
I have tried piping the following two calls to NUL with no luck:
net stop "Logging Service">nul 2>&1
taskkill /IM LogServiceHost.exe /f >nul 2>&1
They will stop my build cycle ...
0
votes
0answers
9 views
Why does my custom DataGridViewEditingControl never receive KeyDown events for the Enter Key?
I have a custom DataGridView editing control which uses the Enter key for some of its functionality. It implements the IDataGridViewEditingControl interface method '`EditingControlWantsInputKey' using ...
0
votes
1answer
15 views
What is wrong with my accelerometer code?
I have been trying to learn XNA, and while I don't have access to books I've been relying on MSDN and tutorials to guide me along the way and I can now draw sprites and change their position and use ...