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
0
votes
1 answer

Using mutiple context in EF 5 for LINQ instead of one large context

I am using EF 5 with Code First in my ASP.Net Web Forms App and have created a master context called "Compleate" and when ever I make LINQ calls against it everything works fine. Because the server I am running on does not have lots of resources I…
user1365911
0
votes
1 answer

async await web api file io

I'm using the following async code in a web api controller to process an XML file. Everything works as expected, however is this the correct use of the async/await approach. I'm basically extracting all images from the XML file and then saving…
markpirvine
  • 1,485
  • 1
  • 23
  • 54
0
votes
1 answer

How to do paging in repeater?

How to do paging for a table of 10 records to show only some of them at once. The code behind is: protected void Page_Load(object sender, EventArgs e) { Rep_Bind(); } private void Rep_Bind() { …
user2069465
  • 47
  • 1
  • 2
  • 8
0
votes
1 answer

working of linkbutton in repeater

I used a linkbutton in repeater which on click shows data in a label.Now i want that clicking again the same linkbutton hide that data,means same button for showing and hiding data. there is a database with a table which contains…
user2069465
  • 47
  • 1
  • 2
  • 8
0
votes
2 answers

Using await in ASP.NET webform pages inline code

If I have some inline code in my ASP.NET webforms page (in .NET 4.5), e.g.
  • <% =ListItemWithPrice("Widget")%>
  • and I want to make ListItemWithPrice async, is it possible to await it on the page? I know I can use
  • <%…
  • Wilka
    • 28,701
    • 14
    • 75
    • 97
    0
    votes
    3 answers

    Do I need 4.5 hosting for a Visual Studio 2012 project?

    Do I need 4.5 hosting for a Visual Studio 2012 project? I am using 2012 SQL Server as well. Does this require 4.5 framework for hosting?
    GivenPie
    • 1,451
    • 9
    • 36
    • 57
    0
    votes
    1 answer

    Table Valued Function in Entity Framework 5 VS 2012 not mapping

    Just installed Visual Studio Web Express 2012 just so that I could map TVFs. But I find that, while the functions import to the model as the expected complex types, they do not show up in the model diagram. The model is database first, which is…
    0
    votes
    1 answer

    Checked solution into TFS, references break on second machine

    I've been working on a web application (ASP.NET 4.5 Web Forms), and then added it to TFS to make the source code accessible to the client. I had no trouble getting it added to TFS, but when I got latest on a different machine (than the one I…
    DLeh
    • 23,806
    • 16
    • 84
    • 128
    0
    votes
    2 answers

    Lost access to HTTP Request after upgrade to .NET Framework 4.5

    I have a WCF service that accepts a POST request from jqGrid in the form of HTML form and returns JSON. While things were on .NET 4.0, all worked fine. I could access form fields inside the service via request["fieldName"]. Once I upgraded to .NET…
    user1044169
    • 2,686
    • 6
    • 35
    • 64
    0
    votes
    1 answer

    How to read FaultException detail in consuming application?

    In my WCF WebMethod I have the following code that provides some parameter validation. It works okay and throws the FaultException: Public Function BeforeCall(operationName As String, inputs() As Object) As Object Implements…
    EvilDr
    • 8,943
    • 14
    • 73
    • 133
    0
    votes
    1 answer

    WCF FaultExceptions, SOAP Faults and non-.NET apps

    I'm just developing my first WCF WebMethod, and am looking at error handling. After having spent a week reading up on this, the general consensus seems to be that errors within WCF WebMethods should be thrown as either WebFaultException, or…
    EvilDr
    • 8,943
    • 14
    • 73
    • 133
    0
    votes
    0 answers

    Problems whit upload asp.net 4.5

    I am searching for whole the internet and I cant find one way working about the requirements. Controller [HttpPost] [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(Albums albums) View @using (Html.BeginForm("Create", "album",…
    0
    votes
    1 answer

    Asp Net 4.5 web form Redirect to page from HTTP Handler

    Hello I aspx page with next call for my ashx Inside of MyRedirect I do some hard logic and try to redirect to other page of my side it looks like: public class MyRedirect :…
    Arbejdsglæde
    • 13,670
    • 26
    • 78
    • 144
    0
    votes
    1 answer

    How to implement redirect to other page after some long process in Page_Load?

    Hello I would like to make redirection to other page after some process on server side in Page_Load event with Asp Net 4.5 syntax (ASYNC and TASK keywords). I fount out this way something like this to start backed task (but this is possible in old…
    Arbejdsglæde
    • 13,670
    • 26
    • 78
    • 144
    0
    votes
    4 answers

    How do I update the client with server side variables during a lengthy loop?

    I am trying to put a web interface on a lengthy server side process which should send regular progress\statistic reports to the client as the process is running. How can I do this? Here is what I have attempted so far. The session in the…
    user1662409
    • 157
    • 3
    • 12