How to load assemblies in ASP.NET Core 1.0 RC2

migrating my web app from ASP.NET Core RC1 to RC2. I'm trying to load my referenced class libraries. This code snippet doesn't work with RC2 anymore. public class Startup { public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILogg

TTF font on a web application to a feed

I have a web application where I need to use a font for a text and show it on the web page. a barcode actually. So this font gets the barcode out of string. I did similar one on windows app like below Dim exeCurrent As [Assembly] = [Assembly].GetExec

Edit the text UpdateProgress by clicking on the button

I have this but it´s not working... did I miss something? I need to change the text withing UpdateProgess on button click for example. This is my ascx: <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID=

ASP.NET vNext DataAnnotations DatabaseGenerated does not work

I'm trying define a model ID variable like this in ASP.NET 5: [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } To support data annotations I've added the package System.ComponentModel.DataAnnotations in my project.jso

The model does not contain a constructor that takes 8 arguments

Im am completely new to C# and was trying to setup a very basic application where I created the class/model: public class Customer { public int CustomerID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public

Is it possible to access server-side code on the ASP.net site?

i would like to know if it possible to access the server side code of a ASP.net website. Any application that can download the server side code? Thanks a lot.From a browser? Probably not. If the site is compiled then the code is build into a managed

Maximum value in a gridview column

I have a gridview which is databound to a sql datasource and displays data as it should but now I want to display the highest value in a column in a textbox. I have assigned the column to a literal called litPathwayDays. The column displays a cumulat

How to find the date difference in SQL Server?

I have a passed_date column in table , I wants to find the difference between this date and current date, And have to check whether this difference is >365days? for example 'passed_date' column consists 09/26/2013 09:16:48.000 PM . How can I find the

CompareValidator to validate two dates

Hi all I am having my date format in the following format dd-MMM-yy I am using compare validator to validate the dates as follows <asp:CompareValidator ID="cmpDates" runat="server" ControlToValidate="StartDate" SetFocusOnE

How to stop refreshing Google Maps?

aspx :code: <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick"> </asp:Timer> <div id="map"> <cc1:GMap ID="GMap1" runat="server" /> </div> C# cod: protected v

Hang on to WCF calls (3rd Party Web Service)

At my workplace we are in the process of upgrading our Time and Attendance setup. Currently, we have physical terminals that employees use to check in and check out. These terminal communicate to a 3rd party T&A system via web service calls. About th

How to detect if an ASP ComboBox is empty.

I have an ASP ComboBox that is populated on page load with a list of information and a selected index is set. I want the user to be able to type a new value into the box and run a routine that saves that value. So far, I've managed to set it so when

Alternatives to using property.setvalue () for efficiency

What alternatives are there to property.setvalue()? I've read that it is very slow. I'm using it to map IDataReader to POCO objects. This is a truncated version of the code. Everything here is very new to me. I know there a lot of frameworks that acc

.Net date conversion to RSS date

I have a date in String format, mm/dd/yyyy I want to convert this to RSS date format like, friday, june 01, 2012, 12:11:25PM and i want to add this date value which is basically the pubDate to RSS pubDate tag, as follows: writer.WriteElementString("p

Replacing the ASP.NET Membership Provider

I'm trying to understand the point of inheriting the Membership provider in a custom class and overriding it to implement your own custom provider. What's the benefit of this when the Membership provider sucks in the first place! I'm trying to figure

print string in C # using \ r \ n to launch a new line

I have a asp.net and c# project. I need to print this string out, i get it like this from the server: Working...: 0/0\r\nNavigating: 0/0 It should be printed out in 2 separate lines (using the \r\n), shouldn't it be doing that automatically? Am i doi

Request to update the database

i have published my website...its a dynamic site..so i have database connectivity..now i want to make an application in VB to update my database using my application..i mean i do not want to login to the site and update my database rather update it u

Using DropDownList in EditTemplates of a GridView

I am working on a GridView in Asp.Net. When initially a the Page Loads, my gridview look like: alt text http://www.freeimagehosting.net/uploads/e45e5b66d4.jpg When a user clicks, to edit a row, I am using edit templates to show 'Domain' in a DropDown

Any actual example of using the multiple inheritance interface

I m trying to understand Interfaces so that I can implement them in my programs but I m not able to imagine how should i use them. Also give me some eg of using them with multiple inheritance in C#A good example for an interface is a repository patte

Pass the JSON object to the Web method

I wanted to shared something I learned today with you all. My question was: Can you pass a JSON object from JavaScript code to a .NET Page Method? For example: var task = { Title: $("#titlenew input", $(newTaskRow)).val(), StartDate: $("#st

Is Memcached interchangeable with ASP.NET State Server?

I use ASP.NET and WCF services in a load balanced web server environment, using Memcached in the service layer. I also wanted to replace the use of ASP.NET State Server (for Session State) with Memcached. Now I am afraid it is not a good thing, becau