Questions tagged [asp.net-4.5]

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

616 questions
5
votes
0 answers

Visual Studio throws output:RuntimeBinderException dereferencing ViewBag.property on MVC 5 Razor page

I am using ASP.NET MVC 5 with Entity Framework 6 Today I updated some components using NuGet, (e.g. MVC 5.2.0.0 updated to MVC 5.2.2.0), also updated EF6 to new version along with other components. But now the Visual Studio output window always…
qakmak
  • 1,287
  • 9
  • 31
  • 62
5
votes
2 answers

Script Manager in ASP.NET 4.5 Web Forms - what does it do? How do you use Bundling & Minification with it?

I have created a new ASP.NET 4.5.1 web forms project. The master page has a script manager in it - and it lists a large number of scripts, including a reference to jquery and bootstrap: <%--To…
niico
  • 11,206
  • 23
  • 78
  • 161
5
votes
3 answers

WebRTC Record video on server

I am researching about WebRTC and I opened thousands of tabs about it. but still I exactly don't know what code I should write at where !!! I am going to have a website using asp.net 4.5 and IIS 8 (if needed). It should have a vidoe conference. but…
TYeeTY
  • 577
  • 8
  • 16
5
votes
2 answers

Check box inside repeater , How to get command name value in the check changed function

HI i have above html tag in my asp.net listview item template ,
Vinoth
  • 753
  • 3
  • 12
  • 23
5
votes
2 answers

Running Mono 3.2.0 with .NET MVC 4

I am trying to get Mono 3.0 setup to run MVC4 sites under .NET 4 and .NET 4.5. I've been working through various errors, what can I do to get it up and running? Server Configuration CentOS 5 Apache 2.2.3 3.2.0 (tarball Sun Jul 28 00:57:40 UTC…
Brian
  • 6,910
  • 8
  • 44
  • 82
5
votes
2 answers

How to get custom data out of generic principal inside an aspx code behind?

I am building an application and integrating it with active directory. So I authenticate my app user to active directory users, after that I store some of user's data like : user group and user profile to Generic principal and user identity to…
NomNomNom
  • 811
  • 3
  • 12
  • 37
5
votes
2 answers

Validation errors in asp.net 4.5

I have googled this extensively and couldn't find an answer, so I am posting this here hoping for help. We have an asp.net 4.5 project with validation specified in the database objects classes. For example: [Required(ErrorMessage = "Name is a…
user2085436
  • 59
  • 1
  • 3
5
votes
2 answers

How to Remote validate email or check if email exists

I am trying to check if Email exists at registration so that there are no duplicate emails in the database. I am doing this with the MVC4 default Internet Application but i have added an Email field to the RegisterviewModel. I also noticed that,…
Komengem
  • 3,662
  • 7
  • 33
  • 57
5
votes
3 answers

The cast to value type 'DateTime' failed because the materialized value is null

My project is the throwing the above error because the Ship Date in my table is null. I am using Code First, and the DateTime field is declared as nullable both in the generic set and the SQL table. I am populating a gridview with the result set.…
user1857303
  • 61
  • 2
  • 7
5
votes
4 answers

VS2012 RTM missing .net 4.5 and mvc project templates

On Windows 8 RTM and just installed Vs2012 Ultimate RTM, I'm unable to create a .net 4.5 project nor a .net 4 or 4.5 ASP.NET MVC project. I've done a repair of VS2012, which did not fix it. Is there something obvious I'm doing wrong?
dotjosh
  • 615
  • 7
  • 11
5
votes
3 answers

asp.net 4.5 Web Forms Unobtrusive Validation jQuery Issue

I've been checking out some of the new features for Web Forms in 4.5, and I have run into a road block with unobtrusive validation. Unobtrusive validation in Web Forms 4.5 is dependent on jQuery, and when it is enabled will result in a jQuery script…
John
  • 772
  • 7
  • 17
5
votes
1 answer

Asp.net 4.5 model binding broken when returning IEnumerable using vb?

I have a gridview as follows: I have the following code in c# that works: public IList
John
  • 772
  • 7
  • 17
4
votes
2 answers

How to Insert null value for a nullable integer column to SQL Table by C#

I am reading a CSV file via OleDBConnection, retrieving integer values for some fields there and saving to SQL DB. I have a column named Q3 which is nullable. When I try the following below, it works well: create table #temp (num int); insert into…
Eray Balkanli
  • 7,752
  • 11
  • 48
  • 82
4
votes
1 answer

EF.BulkInsert and Glimpse - not playing together well

I have an EF6 / ASP.NET 4.5 Webforms solution up and running, and now I need to add some functionality to allow bulk inserts from Excel files. I am aware that EF out of the box isn't optimized for bulk operations, so I looked around and found "EF…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
4
votes
0 answers

Setting up hierarchical, self-referencing model in Entity Framework code-first

I am trying to create a self-referencing org table in Entity Framework v6 code-first - and I can't seem to get it right... (so far I always worked with the EF 4.0 visual designer). I have this class (that corresponds to a SQL Server…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459