asp.net

What do I need to do when I include output from an ASP.NET .aspx page in a HTML page? Something like <base>

I have a ASP.NET file at http://localhost/nn/n.aspx Output from processing that file is included in http://localhost/index.asp. Is there some general or specific things I should do so that the ASP.NET code sitting on the client knows were it is? Setting <form action="http://localhost/nn/n.aspx makes it post to the right loca...

Is it possible to make a gridview with a dropdownlist as one new control?

This is partly in reference to this: http://stackoverflow.com/questions/485390/why-isnt-the-selectedindexchanged-event-firing-from-a-dropdownlist-in-a-gridview/641715#641715 I thought it different enough to ask another question. My thought is that instead of adding a dropdownlist (ddl) to a gridview and then using the technique above ...

how to create and download excel document using asp.net

How to create and download excel document using asp.net ? The purpose is to use xml, linq or whatever to send an excel document to a customer via a browser. Edit : Use case The customer load a gridview ( made with ajax framework ) in a browser, the gridview is directly linked to an sql database. I put a button 'export to excel' to let...

Dynamically adding user controls registered in web.config‏

So I'm working on a project that has all its user controls registered in its web.config file (which seems very clean and tidy) So far so good (here comes the problem) however I'm trying to dynamically create and add user controls to a page. These user controls fire events that need handling. Ordinarily that wouldn't be a problem: You ...

Asp.Net ListBox and JQuery

We have a page that contains a ListBox that is disabled (in the codebehind). This ListBox can be enabeled by checking a checkbox on the page; it gets re-enabled with javascript using JQuery. So, the problem is when the control is first disabled then re-enabled on the page, it does not have a selected item even if one is selected. The ...

Session Best Practices

Hi I use Sessions in my application and I was wondering what is the best practice for maintaining session value on a page. I need the value that is stored in the session to be saved until the post back on a particular page. Let me illustrate: Page A: Page B: Sets Session["ID"] = 5 --> Gets Session[...

RDLC Medium Trust

Does anyone know of a free (for a non-profit group) RDLC reporting tool that will work under medium trust in IIS 7? ...

timeout calling webservice yet data transfer still completes

I'm calling my webservice from a web page and getting a timeout despite setting very high values in my web.config files. This occurs intermittently when the file is usually pretty large but yet the file is still getting uploaded completely (as if the timeout DID NOT occur). Here is a function in my .aspx file which calls my ASMX proxy cl...

Can a user control have a Master Page?

I am creating a page that has several user controls (similar to WebParts). Each widget has a common UI section and Content section. I implemented this using a ParentUserControl that has the common elements and a ChildUserControl that has the content. It works great so far. I am curious to know if I should have used a single control tha...

ASPNETDB management tools

Is there any tools to manage deployed ASP.NET application's aspnetdb.mdf file similar to Visual Studio's WSAT ("hummer-globe" button)? Installations of the Visual Studio and SQL Managment tools on the server are not possible. ...

How do I get access to the ASP.NET Client-Side API at all times?

Some background. The project is a VS 2005 Web Application using ASP.NET AJAX Extensions 1.0. Question, How can I reference the JavaScript files that are used by the Scriptmanager control, without using the ScriptManager control or how can I load the ScriptManager JS files earlier (I don't think this is possible as the ScriptManager has ...

jquery logged domain account

How does one get the logged in user name using jquery? I am using ASP.Net and have been doing it in code behind like this: System.Web.HttpContext.Current.Request.ServerVariables["AUTH_USER"].ToString(); I am trying to authenticate a user using the login domain name and use a web service to authenticate. <script type="text/javascript...

Freeze div at top of Masterpage

How do I freeze the top section of a MasterPage so that the menu doesn't scroll off the screen? ...

What's the best way to target both WPF and Web apps?

We are currently designing a business application that has two primary requirements for it's UI: 1) run on the Desktop (WPF) for enterprise users to provide a rich user interface, interoperate with other applications, access the filesystem, work offline, work with special local hardware, etc. 2) run on ASP.NET/Ajax to provide several c...

Forum software for asp.net c# that I can integrate into my asp.net project?

I am looking for free/open or closed forum software for asp.net. Most of the ones I have found require PHP and MySql. ...

Using TimeZones on website using ASP.Net 3.5 / SQL Server 2005

I am trying to determine, how I should implement local time in a web-app. All users are logged in, there are no anonymous users. They will need to see all time-values in their local time. Is this how it should be done? All DateTime values are saved as UTC-time in database Each user has a UTC-Offset value stored in his profile When dis...

ODBC Driver General error: attempted two active database requests

I'm using ASP.NET 2.0 to connect to a Sybase Sql Anywhere 5 server. And I get this error sporadically. It just happens sometimes. The error message is: ERROR [HY000] [Sybase][ODBC Driver]General error: attempted two active database requests Exception Details: System.Data.Odbc.OdbcException: ERROR [HY000] [Sybase][ODBC Driver]General e...

ASP.NET Routing - rendered path to ~/mypath differs on IIS and WebDev server

Hi, I have a route in my website for ExportTo : Shared Sub RegisterRoutes(routes As System.Web.Routing.RouteCollection) Dim urlPattern As String Dim categoryRoute As System.Web.Routing.Route urlPattern = "ExportTo.aspx/{fileName}" categoryRoute = New System.Web.Routing.Route(urlPattern, New ExportRouteHandler("~/ExportTo.aspx")) r...

Why doesn't asp.net css link path work outside of the head tag?

Why doesn't asp.net css link path work outside of the head tag? I have this code in a master page: <head runat="server"> <title>Untitled Page</title> <link href="../CSS/default.css" rel="stylesheet" type="text/css" runat="server" /> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> </head> T...

Using Content-Range file uploading with ASP.Net

I've got an ASP.Net web site that needs to accept large file uploads from a Flex application. It sends the file using the Content-Range to chunk the file it sends. Does ASP.Net have anything in its HttpFileCollection and HttpPostedFile that facilitates handling files posted this way? Is each chunk sent as a new post to the page? ...