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
7 views
To detach or not to detach? entity framework IBindingList issue
I'm working with a VSTO Excel workbook project and I'm trying to manage data crud on a ListObject.
I have a POCO class and Entity Framework.
I'm passing the entity into the ListObject as an ...
0
votes
0answers
18 views
Returing a json string using a webservice in c#.net
I developed an androidapp communicating with a .NET web service using soap messages. But I don't know how to write a web service which returns a json string that will be used to return some values to ...
0
votes
0answers
9 views
using [DllImport(“iphlpapi.dll”)] in windows 7 64 bit
[DllImport("iphlpapi.dll")]
private static extern int GetTcpTable(IntPtr pTcpTable, ref int pdwSize, bool bOrder);
i am using this dll and calling the function as GetTcpTable(IntPtr.Zero, ref ...
1
vote
2answers
29 views
List IndexOf return -1 even though there's a matching object c#
I have the following code to find the index of the ColorItem object in a List<ColorItem>
//Get the index of the color item
var colorList = dialogViewModel.Items;
var colorItem = new ...
0
votes
0answers
13 views
Add space between columns in GridView
i have the following grid data
<asp:GridView ID="grdCar" runat="server" CssClass="GridViewStyle" AutoGenerateColumns="false">
<Columns>
<asp:BoundField ...
0
votes
2answers
19 views
passing variables as parameters from textbox to c# responsetext
int x=10;
and String str= "x";
i want to out 10 by calling str variable as it has value x.
but the problem is it is a string x with "" to be called in
response.write();
pls give suggestions
0
votes
0answers
13 views
Grid with ruler for WPF
I am quite new to WPF Development, and am currently developing a WPF Application, for which I require a grid control with a pixels ruler as below:
The above picture has been taken from the ...
1
vote
1answer
25 views
How to remove two objects with the same ID but different date values with LINQ to objects
I have a List<dynamic> in which I have N records with the same ID but different ValidTo/ValidFrom values.
Say I had these objects:
Id: 1, ValidFrom: 1/1/2012, ValidTo: 1/1/2015
Id: 1, ...
1
vote
0answers
17 views
ASP.NET MVC 4 - Custom Model Binder
I'm attempting to build a custom model binder for MVC 4 that will inherit from DefaultModelBinder. I'd like it to intercept any interfaces at any binding level and attempt to load the desired type ...
0
votes
2answers
12 views
Edge Detection with Lockbits C#
i make a program that implements an edge detection algorithm.
but, it takes a long time for the process.
i've read about use lockbits and unsafe state instead of getpixel and setpixel, but i still ...
0
votes
1answer
11 views
How to use grid in VS2010 MVC3 to add and edit data?
I'm using Microsoft VS 2010 C#, MVC3.
I have Calsserooms and Students with many to many relation ship, so I add an intermediat table called Classroom_Students.
When adding students to a classroom, I ...
0
votes
1answer
14 views
Design Require Creating Displaying User Information
I am trying to display a user information with property Id, FirstName, LastName and Email. I would like to know whats the best way, where should i define this property in the Interface or in the ...
-2
votes
2answers
51 views
Creating array names
I have the following code, for example:
int[] mass_1 = new int[666];
int[] mass_2 = new int[666];
.....
int[] mass_100 = new int[666];
Can I programatically change the names of arrays - instead ...
1
vote
1answer
17 views
C# Win32 Sleep Detection PowerModeChanged
I have been searching the web for about an hour and have tried all the different tactics on both stackoverflow and others sites but for some reason I am unable to get this to work. I want me program ...
0
votes
2answers
15 views
How to create dynamic images with links from database in asp.net?
How to dynamically generate the below image tag with links from the database.Number of images should be the number of items in the database.
Can we use listview or repeater to achive this.If yes how ...