asp.net

Client View of Everyone Looking at a Webpage

First let me say that I really feel directionless on this question. I am using windows integrated security, and I can use vb.net to look up information about a user from AD. I also have other information about users I can look up from a MS SQL 2005 server by getting the logon identity name. What I would like to do is display information...

Get URL of ASP.Net Page in code-behind

I have an ASP.Net page that will be hosted on a couple different servers, and I want to get the URL of the page (or even better: the site where the page is hosted) as a string for use in the code-behind. Any ideas? ...

How to click a button on an ASP.NET web page programmatically?

I am trying to figure out how to click a button on a web page programmatically. Specifically, I have a WinForm with a WebBrowser control. Once it navigates to the target ASP.NET login page I'm trying to work with, in the DocumentCompleted event handler I have the following coded: HtmlDocument doc = webBrowser1.Document; HtmlElement u...

Partial site SSL using asp.net login control

I'm attempting to convert a home-grown login system to the standard asp.net login control included in .net. I want all communication on the website for a user not logged in to be in clear text, but lock everything in SSL once the user logs in - including the transmission of the username and password. I had this working before by loadin...

Best Approach For Configuring Multiple .Net Applications

We have a suite of interlinked .Net 3.5 applications. Some are web sites, some are web services, and some are windows applications. Each app currently has its own configuration file (app.config or web.config), and currently there are some duplicate keys across the config files (which at the moment are kept in sync manually) as multiple a...

How to scroll only the right side of a table, listview, or datagrid?

Let's say I have data structures that're something like this: Public Class AttendenceRecord Public CourseDate As Date Public StudentsInAttendence As Integer End Class Public Class Course Public Name As String Public CourseID As String Public Attendance As List(Of AttendenceRecord) End Class And I want a table that looks som...

LinkButton not firing on production server

This is a good candidate for the "Works on My Machine Certification Program". I have the following code for a LinkButton... <cc1:PopupDialog ID="pdFamilyPrompt" runat="server" CloseLink="false" Display="true"> <p>Do you wish to upgrade?</p> <asp:HyperLink ID="hlYes" runat="server" Text="Yes" CssClass="button"></asp:HyperLink> <as...

At which point in the lifecycle does GetConnectionInterface get called?

I have this method on a webpart: private IFilterData _filterData = null; [ConnectionConsumer("Filter Data Consumer")] public void GetConnectionInterface(IFilterData filterData) { _filterData = filterData; } Now, before I can call upon _filterData, I need to know when i can expect it to not be null. When is this?! Without knowin...

How to implement paging for asp:DataList in .NET 2.0?

I spent hours researching the problem, and just want to share a solution in case you ever need to implement paging for asp:DataList in .NET 2.0. My specific requirement was to have "Previous" and "Next" links and page number links. ...

WebDev: What is the best way to do a multi-file upload?

I want (barely computer literate) people to easily submit a large number of files (pictures) through my web application. Is there a simple, robust, free/cheap, widely used, standard tool/component (Flash or .NET - sorry no java runtime on the browser) that allows a web user to select a folder or a bunch of files on their computer and upl...

'AjaxControlToolkit' is undefined Error

I am using the AjaxControlToolkit in VS2005, and it works fine. I do have some issues though, when I go to some pages I have, then click back, I get this javascript error: 'AjaxControlToolkit' is undefined I have searched MSDN forums, and google, and tried many of the solutions, but none have worked. I have tried, EnablePartialRenderin...

How is a web service request handled in ASP.Net

When a client makes a web service request, how does asp.net assign an instance of the service class to handle that request? Is a new instance of the service class created per request or is there pooling happening or is there a singleton instance used to handle all requests? ...

Binding a null value to a property of a web user control

Working on a somewhat complex page for configuring customers at work. The setup is that there's a main page, which contains various "panels" for various groups of settings. In one case, there's an email address field on the main table and an "export" configuration that controls how emails are sent out. I created amain panel that se...

Custom URL Extensions/Routing Without IIS Access

I have a need to use extensionless URLs. I do not have access to IIS (6.0) so I cannot map requests to ASP.NET and handle with a HttpHandler/HttpModule. However, I can set a custom 404 page via web host control panel. My current plan is to perform necessary logic in the custom 404 page, but it "feels wrong". Are there any recommendat...

Visual Studio 2005 says I don't have permission to debug?

I am new to visual studio/asp.net so please bear with me. Using vs 2005 and asp.net 3.5. I have vs installed on the production server. If I set the start option for the site to "use default web server" when I go to debug my website vs tries to open the site at http://localhost:4579/project and returns 404. If I set start option to "us...

Using an ASP.NET SiteMap for a Page with multiple paths

I have a certain page (we'll call it MyPage) that can be accessed from three different pages. In the Web.sitemap file, I tried to stuff the XML for this page under the three separate nodes like this: < Page 1 >   < MyPage / >   ... < /Page 1 > < Page 2 >   < MyPage / >   ... < /Page 2 > < Page 3 >   < MyPage / >   ... < /Pag...

How to send mail from ASP.NET with IIS6 SMTP in a dedicated server?

Hi. I'm trying to configure a dedicated server that runs ASP.NET to send mail through the local IIS SMTP server but mail is getting stuck in the Queue folder and doesn't get delivered. I'm using this code in an .aspx page to test: <%@ Page Language="C#" AutoEventWireup="true" %> <% new System.Net.Mail.SmtpClient("localhost").Send("inf...

ASP.Net application cannot Login to SQL Server Database when deployed to Web Server

I am having a problem with deploying a ASP.NET V2 web application to our deployment environment and am having trouble with the sql server setup . When I run the website I get a Login failed for user 'MOETP\MOERSVPWLG$'. error when it tries to connect to the database. This seems to be the network service user which is the behaviour I wa...

What is the best logging solution for a C# .NET 3.5 project

Hi, My team is about to start a new enterprise wide ASP.NET development project, quite possibly the largest undertaken by my department so far and the largest project that I've ever worked on. I'm looking for a good logging solution for the system. There are two questions I have if anyone knows the answer. Firstly what logging tool...

How to Naturally/Numerically Sort a DataView?

Guys and dolls, I am wondering how to naturally sort a DataView... I really need help on this. I found articles out there that can do lists with IComparable, but I need to sort the numbers in my dataview. They are currently alpha sorted because they are numbers with 'commas' in them. Please help me out. I would like to find somethi...