What's Page __EVENTARGUMENT?
I saw code like this: if (this.Request["__EVENTARGUMENT"] == "Flag") //DoSomthing... Whats __EVENTARGUMENT means and is there some parameters like it to access? ...
I saw code like this: if (this.Request["__EVENTARGUMENT"] == "Flag") //DoSomthing... Whats __EVENTARGUMENT means and is there some parameters like it to access? ...
We've been using Mercurial with Mercurial Queues (+guards for patches) for source control of a number of Windows ASP.Net projects. I'm interested in setting up a Continuous Integration environment for this but am getting lost in conflicting reports of success with CC/Trac etc. I'm wondering who else out there is doing this and what...
I have a really weird issue that I can't figure out with comparing objects on IIS 7. We are in the process of deploying our old IIS 6 based ASP.NET application on IIS 7, however we have this equality comparison issue that we can't seem to figure out. Let me start out by saying that I have the same assemblies and code running both on I...
I am trying to do something like this: <asp:Button ID="btnSearch" runat="server" CssClass="greybtn" Text='<span>Search</span>' OnClick="btnSearch_Click" /> It displays <span>Search</span> instead of just Search. ...
Hi, I'm creating a file-browser in ASP.Net but I have run into a problem which I believe relates to event-wireing on dynamic controls. I'll explain what my code does here: When my page loads (OnLoad) i call a method (createStuff()) that create a number of linkbuttons (representing folders in a current directory) which are wired to an e...
I am using a GridView and a DataTable to fill the grid. I am also using custom paging. Using the search feature of the GridView, I provided a textbox on each field for searching the records in the grid. If that record is found, that record gets selected. I'm having an issue with paging where when I loop through the rows of the grid, t...
I have this Linq to SQL query sequence that is basically returning a search on a table called PROJECTS. and I'm taking advantage of the deferred execution to slowly build it up. var query = from p in objDBContext.PROJECTs where (p.PROVIDER_ID == cwForm.productForm) select p; query = from p in query where p.SubmittedDate >= cwForm.beg...
We have an ASP.NET website in production that generates a report and sends it to the user's browser as a PDF file. Our error reporting is showing that we are getting a lot of this exception: System.Web.HttpException: The remote host closed the connection. The error code is 0x80072746. These appear to be caused by the user closing thei...
All of our current ASP.Net web apps access our IBM I Series using an ODBC connection and command object. Should I move to another way of accessing it? How do you current access your I Series when your ASP.Net app needs data from it? There has to be a better way. I recently saw this article about IBM supporting Linq to Entities with a sp...
We have a global error handler in our ASP.NET application that logs and emails any exception errors that may happen. One error that is common to ASP.NET is the "The client disconnected." error that happens when they close a page while data is still being loaded. The error itself is a non isue, however it gets logged and reported. I...
I am using nested datalists to display hierarchical data. In the nested datalist i want to be able to bind to a property that belongs to the object that the parent datalist is bound to. does anyone know how I can achieve this ? ...
I have 2 separate classes: AreaProperties FieldProperties 1 AreaProperties can map to 1 FieldProperties. Without changing the design, I want a method to return a List<> of these objects What generic collection in C# would be suitable? I understand I can send 2 Lists and the function would look like: public List<AreaProperties> Sa...
How do you call a Javascript function from an ASPX control event? Specifically, I want to call the function from the SelectedIndexChanged event of a DropDownList. ...
I'm running into some performance issues using a generic handler that implements IHttpAsyncHandler. At its simplest, the handler receives a GET request, and 20 seconds later ends the response after writing '< timeout / >' to the response. When hammering the .ashx with 10000-20000 simultaneous requests, it fails with 503 server unavailab...
I am trying to add a template to a simplified composite control containing a Label and a TextBox. I want my mark up to look something like this: <test:FormItem ID="fi" runat="server" Title="MyTitle" Text="My Text!"> <TestTemplate> <i> <%# Container.Title) %></i> <br /> <%# Container.Text %> <...
I have a sql server database that returns byte for the image. If I use the tableadapter wizard and set it to my stored procedure and preview data, it pulls back an image. It automatically turns it into an image in the preview data. I don't see it as a string of Ints or anything. How can I display it on my asp.net webpage with a gridv...
I am using C# to open a popup window and allow the user to select some value from that and send the value back to the server. However, when I close the pop-up window, I get the following error: Invalid postback or callback argument. Event validation is enabled using <pagesenableEventValidation="true"/> in configuration or <%@ Page E...
I'm trying to unit test values that will eventually wind up in a web.config file. In my test project, I created an app.config file with a web.config section to hold the settings. In a normal situation, I would call System.Configuration.ConfigurationSettings.AppSettings, but in this case, that doesn't work. I saw this question, which is v...
I'm working on an ASP.NET app that allows users to upload video files. After the user uploads, I need to determine some of the attributes of the media - namely it's duration/length, resolution, and codec (if possible). What's the simplest way to approach this? Should I use the WMP SDK - this seems to involve actually instantiating th...
I have a requirement for an explicit logout button for users in a ASP.NET web app. I am using IIS6 with Basic Authentication (SSL). I can redirect to another web page but the browser keeps the session alive. I have googled around and found a way to do it by enabling an active x control to communicate with IIS and kill the session. I am i...