1 answer

Why when using design data am I getting a “Object does not match target type” error?

I am currently attempting to mock up data for my view by utilizing Design Data for my ViewModel. Specifically, I have a View front end, and a ViewModel backend for my silverlight application. When I ...

2 answers

how to call javascript client side function from code behind file

How would I call showItems() function in aspx page from code behind. <script> function getItems(){ return items; //return array } code behind: ScriptManager.RegisterStartupScript(this, ...

2 answers | 33 secs ago by sheela chen on Stack Overflow stackoverflow.com
1 answer

Pass variable to WCF custom encoder?

When WCF process a SOAP message I want to log a snapshot of the whole message include all the header information to my database. It looks like at Message Encoder Classes I have a snapshot of the ...

1 answers | 46 secs ago by user2210021 on Stack Overflow stackoverflow.com
0 answers

MVC5 Custom model binder - how to get request

I am using MVC5 running framework 4.5 public class AbsenceModelBinder : IModelBinder { public object BindModel(ControllerContext controllerContext, ModelBindingContext ...

2 answers

best way to get the latitude and longitude values of a zip code - C#

What is the best way to get the latitude and longitude values of a zip code? This is the function that I am currently using, but it only allows 2400 requests per 24 hours. private Coordinates ...

0 answers

How to map a uni-directional, one-to-one relationship using NHibernate 2,Fluently

I am working with existing data on a large system using NHibernate 2 with Fluent mapping. (At the moment I cannot upgrade to the latest NHibernate) The challenge I have is that I would like to have ...

1 answer

saving data from tables to database

I am writing a database Application in .NET. My application reads data from SQL Server with LINQ. It then saves my data in DataSet(in tables). When user does something in application the data is ...

0 answers

How do I print a folio in a scanned sheet with C#-Pixtools?

I'm getting further into the world of scaneers and have an application in which I manage to scan the document is already written code but can not find documentation explaining me that steps can be ...

1 answer

How to display single row against each groupBy rdlc report

I am trying to display aggrgated data in my rdlc report. I have grouped data by a particular field by Add Group -> Parent Group -> Group By: Field Name All data shows up as I want against ...

4 answers

How to fix a 404 with routes in ASP.NET MVC?

I'm having a problem trying to get routing to work with ASP.NET MVC 3.0. I have the following routes declared: public static void RegisterRoutes(RouteCollection routes) { ...

0 answers

Find the Parent RichTextBox from the Focused Hyperlink Within

The Setting: I have a RichTextBox containing a hyperink and a DropDownButton somewhere else in my UI. Now when I click the button's DropDown open and afterwards click somewhere else on my UI, the ...

0 answers

Volume Ray Marching rendered always on top of the other objects

I have a really big problem that has been bothering me for so long and I can't seem to find the solution. I have downloaded this project ...

0 answers

XNA / Monogame Texture2D to to string

I want to store a small png image in a XML file and Load it back to Texture2D. This is what I'm doing Code for saving I'm writing the data of the Texture2D with the BinaryWriter to a MemoryStream, ...

0 answers

Calling stored procedure values into the console application C#

I have a stored procedure that its been called by a console application in C#. The stored procedure has some required parameters to be executed. What I am trying to achieve its to be able to enter one ...

1 answer

CORS Error with Angular

This may be a duplicate question but I have combed stackoverflow and haven't been able to resolve this issue. We have a custom back end in c# and front end in angularjs trying to make some http ...

1 answers | 8 mins ago by discodane on Stack Overflow stackoverflow.com
6 answers

How do I select a random value from an enumeration?

Given an arbitrary enumeration in C#, how do I select a random value? (I did not find this very basic question on SO. I'll post my answer in a minute as reference for anyone, but please feel free to ...

6 answers | 9 mins ago by mafu on Stack Overflow stackoverflow.com
1 answer

Should Count() of an IEnumerable be avoided?

In general, I am using a List and then returning them as IEnumerable when I no longer need to update them. However, I ran into an issue where I actually need to enumerate through them but first need ...

1 answers | 9 mins ago by LearningJrDev on Stack Overflow stackoverflow.com
2 answers

Trouble using model properties of ViewModel in my controller

I created a ViewModel that has two of my models as properties: public class ViewModel { public Login loginVM; public Person personVM; } The properties of the Login and Person ...

2 answers

not able to create object with Activator.CreateInstance

I am trying to load the old version of farpoint dll in my project by using below code System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"FarPoint.Web.Spread.dll"); ...

1 answer

Display image from file path asp.net mvc4

I'm trying to display an image outside of the root folder of my asp .net mvc4 project - to no avail. The img tag I have tried inside the .master page and .ascx control is: <img ...

0 answers

Debug Assertion Failed _CrtIsValidHeapPointer Failure

I've been having some issues with running my unmanaged C++ code through a C# Gui. I've basically got: - an unmanaged C++ application - a C++/CLI wrapper - a C# GUI I am getting a crash (debug ...

1 answer

adding matrix components by using windows form in c#

I'm a new C# programmer and I want to write a programs using Windows Forms that can take in an adjacency matrix from a text box and then return the sum of the 1's in the matrix. I'm writing the code ...

1 answers | 17 mins ago by anna on Stack Overflow stackoverflow.com
3 answers

Return value from SQL local DataBase to global double variable

I'm trying to get data from SQL local DataBase i have created Table with 1 columns buyEURrate type float and the table name is CurrencyRates i have global double variable and I'm trying to set its ...

3 answers | 18 mins ago by Georgi Antonov on Stack Overflow stackoverflow.com
1 answer

C# ComboBox databinding

I have a routine which opens a recordset and builds the Items collection for a combo box. After googling around I found the approach which uses the ComboboxItem class. public class ComboboxItem { ...

1 answers | 20 mins ago by Ian Pendlebury on Stack Overflow stackoverflow.com
6 answers

Windows Phone 8 app does not contain a definition for InitializeComponent

I have just downloaded the 14 CTP version of Visual Studio and created a blank app for Windows Phone. I tried to open the MainPage.xaml and the designer shows up the following errors: and for those ...

3 answers

submit button click

I have GUI for data acceptance. I need to pass all the parameters of the form on click of a submit button to a function declared in C#. Please help.

3 answers | 21 mins ago by Rookie on Stack Overflow stackoverflow.com
0 answers

Custom map for base class' property using AutoMapper

I have the following models: public class BaseEntity { public DateTime CreatedDate { get; set; } public DateTime ModifiedDate { get; set; } } public class Child1 : BaseEntity { } public ...

0 answers

Entity Framework Multi-level Inheritance with TPH

I am working with a legacy system that implements a TPH for a certain number of items. So the current structure looks like this Abstract Class 1 Abstract Class 2 Abstract Class 3 | ...

1 answer

Parentheses inside Razor code block

Trying to put a URL.Action call inside a Razor ASP.Net MVC code block at the top of a View which includes a parameter creation - it won't parse and causes an error on the page. Seen similar questions ...

1 answers | 23 mins ago by Daf on Stack Overflow stackoverflow.com
4 answers

Decode Morse without white spaces to text

Is there any possibility to decode Morse code to text if the code is in following format(without any white spaces): -.-..--.....-...--..----. Normally it looks like that, - .-. .- -. ... .-.. .- - ...

4 answers | 23 mins ago by Kalvis on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3