Questions tagged [asp.net-4.0]

This tag refers to the version 4.0 of the ASP.NET web application framework introduced with the .NET Framework 4.

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

1371 questions
0
votes
1 answer

how to extract RichMediaContent from PDF using iTextSharp

I need to extract video file which is embedded in pdf file. i could find the video which is in annotation so that i can't save it separately. i need to save this file how do i achieve this? Ex: iTextSharp - how to open/read/extract a file…
Sankar M
  • 4,549
  • 12
  • 37
  • 55
0
votes
2 answers

Linq to sql Connection(stored Procedure) throws cast exception

I need to access data by executing stored procedure through linq operations. please look at my code below. tell me where i went wrong. public int ID { get; set; } public string CategoryName { get; set; } public static void GetCategory() { …
Sankar M
  • 4,549
  • 12
  • 37
  • 55
0
votes
2 answers

Bind computed column to GridView

I am using ASP.NET 4.0. I checked a couple of links on this forum as well, but didn't find a solution that fits my requirement. I have a GridView which gets populated using a query in a method. The query is below: SELECT district_name,…
RKh
  • 13,818
  • 46
  • 152
  • 265
0
votes
1 answer

How to lock unmanaged memory in .NET

I'm thinking to use MemoryMappedFile to share memory between multiple processes. While one process is reading and writing (and something more), I don't want another process to access the memory. If it is possible, how could I implement it?
Nigiri
  • 3,469
  • 6
  • 29
  • 52
0
votes
0 answers

EF4 mvc .net 4 medium trust MetadataException

I have an MVC .NET 4.0 web application which is using an EF4 Entity Model (database generated). In full trust all works ok, but in medium trust this exception is thrown when code is trying to access a model; Schema specified is not valid. Errors:…
jaap
  • 373
  • 6
  • 15
0
votes
2 answers

How to properly implement the Strategy Pattern with two interfaces?

I have created a service data access layer where there are multiple databases where data needs to come from. I was doing fine with one database where I defined the memberRepository that contained member details. However, now I have to get…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
-1
votes
5 answers

Is HTML5 compatible with C#?

I am having trouble finding a clear answer on this one. I have an ASP.NET 4.0 Silverlight app, but recently a ton of users are complaining about not being able to use the site on mobile devices and Linux distro's. The app is built on MVVM…
Josh
  • 1,648
  • 8
  • 27
  • 58
-1
votes
3 answers

where should i put my dynamic menu creation logic to get good performance

I have created dynamic menu on the basis of user's permissions and module assigned, which has loop and if - else statements. This menu creation is in Header.ascx which is included in all the pages. So menu creation logic executes on every page…
Kash
  • 245
  • 1
  • 4
  • 14
-1
votes
2 answers

How to call more than a value in Grid View in ASP.NET 4.0 C#.net

I'm new to ASP.NET 4.0. In my project, the data'a are displayed in the Grid View. The user selects a row to edit based on two values which are stored in the Database. My code for calling single value is given here. How can I get datas based on two…
-1
votes
2 answers

Grid view with Datasource control

Sir, Im doing a project in asp.net 4.0 with c#.I my project i want to display datas from the database to the grid view using Data Source Control. But while doing it im getting an eror called "The DataSourceID of 'GridView1' must be the ID of a…
-1
votes
1 answer

How to avoid double time binding controls on Page Refresh/Render

i have one web form dashboard that shows up drop down combos and one grid view. all goes fine for some previous days. but now i can't understand why controls binds up two time. I avoid them for second time binding with !Page.IsPostBack and it's…
shalin gajjar
  • 646
  • 4
  • 15
  • 44
-1
votes
1 answer

Conversion failed when converting the varchar value from int conversation

I have a query that filtered among drop down selected condition: protected void Get_Data() { try { string str = ""; DataTable dt = new DataTable(); str = "SELECT ROW_NUMBER() OVER (ORDER BY RowId DESC)AS…
Gajjar Shalin
  • 95
  • 1
  • 11
-1
votes
1 answer

WordPress Integration in ASP.net 4.0 & SQL Server 2008 website

I'm trying to integrate WordPress in a website which is running on .net framework 4.0 and using SQL Server 2008 as its database. Can anybody suggest me a reference so that I can proceed in right direction? Thanks in advance.
Programmer
  • 39
  • 7
-1
votes
1 answer

Server tag function calls vs AJAX web methods

Is there any difference between var stringValue = '<%=GetStringValue();%>'; and calling the same codebehind function via ajax? Both take parameters easily enough, and seem to occur at the same point in the lifecycle (eg after the client is fully…
Devin D
  • 98
  • 11
-1
votes
1 answer

how to bind checkbox in editable grid view with asp.net 4.0

i have editable grid view which have check boxes which binded with data row. here i put code : protected void GV_ViewCustomers_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow &&…
shalsoft
  • 457
  • 1
  • 5
  • 13