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
4 views

Copying a table from .docx to .xlsx with OpenXml

I want to look through a .docx-document for any tables and save them in a .xlsx-file. Is there any way to copy the whole table, or do I have to go through each cell and make a new table? With answer, ...
0
votes
0answers
8 views

ASP.Net Listbox: maintain listbox scrolling position after partial postback (not site scrolling position!)

On an ASP.Net page I have a listbox. When the selected items in it changes, a dropdownlist gets activated or deactivated depending on the item, and again depending on the listbox item another item in ...
0
votes
0answers
14 views

RedirectToAction not working in controller

Following is one Login function in my controller: [HttpPost] public ActionResult LogIn(string email, string password) { return RedirectToAction("Index", "Home"); } This ...
0
votes
0answers
6 views

XML Serialization - Convert object into XML in C#

I am serializing an object into XML. consider class public class EmpInfo { public string Code; public string FirstName; public string LastName; public string Designation; public ...
0
votes
0answers
15 views

mvvmcross support for asp.net programming?

MVVMCross ironically doesn't seem to include Asp.NET as a supported platform. Would it be hard to use MVVMCross under an Asp.NET environment implementing WPF views? Has anyone done this? What would ...
0
votes
1answer
28 views

c# Seek vs Read

Why is it better to read a file slowly to make a seek? //if (!read_fields[x] || !ok) //{ // if (l > 0) Seek(l, SeekOrigin.Current); ...
0
votes
0answers
11 views

Edit option is not working in dynamic grid

GridView gv = new GridView(); BoundField farmername = new BoundField(); farmername.HeaderText = "Farmer Name"; farmername.DataField = "farmername"; gv.Columns.Add(farmername); BoundField ...
0
votes
0answers
11 views

Persistent ServiceStack Authentication from MVC 4 Forms Authentication

I've set up a ServiceStack api with a custom auth provider. This all works fine and I can authenticate and use the api as I like. I've got a seperate MVC4 application with FormsAuthentication that ...
2
votes
0answers
17 views

Read Updated Resource file

I am unable to read updated resource file (Dynamically updated) when it is placed in another class library, even if i build the class library dynamically. i have tried with al.exe /t:lib ...
0
votes
1answer
13 views

WCF app sending html response for potentially dangerous request instead of fault exception

I added a global error handler in my global.asax but no matter what I try I can't seem to prevent the IIS canned response of <!DOCTYPE html> <html> <head> <title>A ...
0
votes
0answers
15 views

Adding a wizard to a blank project: “The operation could not be completed. No such interface supported”

I've created a custom wizard that generates a windows form through code that lists out some SQL queries for the user. For almost all of the testing of the form and the wizard itself, adding it to a ...
1
vote
2answers
47 views

Compare elements of an object resides in two list - one on one using LINQ

I'm trying to find out is there any better way other than Enumerable.Range in WHERE clause to compare object's elements one on one. It could be a parallel since We're comparing one on one here. For ...
0
votes
2answers
22 views

Email Support section with the users address as “From address”

I need to implement a “email support” section in our application. So email “To” address will be [email protected]” and from address will be the email address of the end user.(The end users email ...
0
votes
1answer
36 views

How to reuse existing C# code in Android?

I have a C# network protocol library (about 5000 LOC) which I want to reuse in an android app. The protocol is likely to change in the future. What is a good way to do this? Port the library to ...
3
votes
2answers
76 views

Need better way to sum up data

i have this class public class ConnectionResult { private int connectionPercentage; public int ConnectPercentage { get { return connectionPercentage; } } public ConnectionResult(int ...

1 2 3 4 5 32557
15 30 50 per page