asp.net

How to get referrer URL in ASP.NET when there are multiple redirects?

I'm developing a web application that uses an in-house SSO server for authentication. I have a link on my home page to a page called Logout.aspx. Logout.aspx clears the Forms Authentication cookie, all session data, then performs a redirect to the LoginUrl specified in the forms authentication configuration which is currently set to a ...

Problem consuming deployed asp.net webservice to IIS6

When trying to update the web reference to a deployed asp.net webservice from a windows forms app, I get an error. Unable to download following files from .https://webserver/webservices/myservice.asmx?wsdl For some reason it is looking at a host called webserver, but that isn't what it needs to look for for the WSDL. It needs to look a...

Preventing the duplication of CSS files ?

hi, i got a user control which implements a reference to a css file, now i want to use this user control many times on page, and this will lead to duplication of inclusion of the css file. with java scripts it is simple by using the scriptmanager. so what is your suggestion for a solution or similar approach to the scriptmanager? ...

Need a form wizard technology that is configurable without programming

I need a forms technology similar to MS InfoPath or Adobe LiveCycle Forms ES in that it has an XML data structure, is compatible with ASP.NET, renders in a browser, and is easily configurable by non technical office worker types. TurboTax Online is a good example of the type of functionality I have in mind. The missing piece that I ha...

Possible to read/write cookies to be used by two different ASP.NET web apps?

Wondering if it is possible for my claims aware application (ASP.NET) to save a cookie that can be read by the ADFS Service (ASP.NET also). This is so I can give it the URN of a specific client at the time of the SSO based on the subdomain. However I am not sure if a website can read cookies from a different website or not. ...

Is there any way for an ASP.NET webservice method to use async methods?

I have an ASP.NET webservice (.asmx) with a simple method that reads something from the DB with a sync call (ExecuteReader) and returns the result. There is any way to optimize the Thread Pool usage (ie. by calling an async call (BeginExecuteReader)) without changing the method's signature? The intention is to not block a thread pool th...

ASP.NET Masters: What are the advantages / disadvantages of using Session variables?

I've done a search on this subject already, and have found the same data over and over-- a review of the three different types of sessions. (InProc, Sql, StateServer) However, my question is of a different nature. Specifically, what is the advantages/disadvantages of using the built in .NET session in the first place? Here is why I am ...

Live Webcam on ASP.NET Web Site

I need a way to put a live web cam video on my ASP.NET application. I basically want answers from people who have done this before. What is the easiest and most cost-effective way to accomplish a simple web cam feed? Technically, it does not have to be streaming video (although that is the preference). I could settle for an image...

Web Deployment Projects tool in VS 2008

Hello, When we install Web Deployment Projects tool, we also have an option to use it inside VS 2008. By selecting Property Pages we are presented with several options for configuring compilation options.One of Property Pages dialog boxed is named Output Assemblies. It presents us with the following options: * Merge all outputs to ...

I've read that assemblies manually placed inside Bin are also automatically referenced by...

Hello, Q1 We can add assembly reference to a web project via Website --> Add Reference , and assembly will automatically be referenced by all pages in that web project. But I’ve read somewhere that even if we simply copy ( thus we don’t add it via Website --> Add Reference ) an assembly to the Bin directory of a web project, that i...

Load bottom horizontal menu based on choice in first

I have a horizontal menu in a DIV and I'd like to load a menu below it (also horizontal) based on what users choose in the top menu. Right now I'm rendering the menus in a master page based on which content page is currently loaded. However, I don't know how to figure out which submenu option was chosen when a user clicks one of those. ...

ASP.Net FindControl is not working - How come?

I have used FindControl in the past, prior to .NET 2.0/3.0. It seems like now, for some reason, the ID's of my controls get a funky named assigned. For example I assigned an id "cbSelect" to a checkbox, but FindControl does not find it. When I view the HTML it was assigned ctl00_bodyPlaceHolder_ctl02_cbSelect. I have not found one ex...

Multiple signin pages in one asp.net application

I have one asp.net web application. It is using two membership provider. Two sign-in pages one for each provider. Now i have two folders in root Folder1 & Folder2 Folder1 uses 1st membership provider Folder2 uses 2nd membership provider I got almost everything working including signin, create user etc in both provider. Only issue is i...

Can I access virtual directory name in global.asax.cs ?

The property HttpContext.Current.Request.ApplicationPath represents the virtual directory in IIS or WebDev.WebServer. HttpContext.Current.Request.ApplicationPath evaluates to "/virtualdirectory" This can be used in conjunction with VirtualPathUtility to make a path root relative : VirtualPathUtility.ToAbsolute("~/images/cat.jpg", ...

How do I make a key binding/shortcut for an ASP.NET button to postback via that button?

I'm developing what's intended to be a very efficient UI in ASP.NET. I want my users to be able to hit ALT-A to postback the form via a particular button. In other words, when they hit "ALT A" the form will post back and the event handler/function associated with a particular ASP.NET button control will run. How can I do this? I have...

ASP.NET Search on multiple parameters

I am trying to display the results of a search on a gridview. I want the search to show the results for both last and first name. I am using ASP.NET with Subsonic and can't figure out how to modify the statemnt below. I am guessing it needs a wildcard somewhere? Name: <asp:TextBox ID="txtSearchName" runat="server"></asp:TextBox> G...

Using log4net and where to implement it and usign with elmah?

Hi there, does anyone have experience with log4net, i have been looking at elmah which is great. But i wanted a little bit more control i.e. to use logging not only in asp.net but also in wpf. Anway i decided to take a look at log4net. I have 2 clients, (wpf and asp.net) that both share business logic. Should i be raising events in ...

Masterpage Dropdown List not keeping Selected Index

Ok, my masterpage has a dropdown which controls size which affects a lot of things. I need to access the dropdown index from content pages so I do it using this code. public partial class MasterPage : System.Web.UI.MasterPage { public DropDownList MySize { get { return _ddlSize; } } } I am using Ajax and when the size changes the menu...

NHibernate and Multiple Database backends - Architecture question

Hello, I have a project that is supposed to run on different (at least 2) databse backends, so users can choose (currently between MSSQL and SQLite). I've just started learning NHibernate, following the tutorial on NHForge. Now, my current Architecture looks like this: MyProject.DAL Contains NewsItem and INewsItemRepository. NewsItem...

How to translate content page in a master page after language change (ASP.NET)

Hi, I have a content page in a master page in ASP.NET. What is going on is that the user click on a button in the right corner of the master page and that change the current language. What does the button is changing the Session for the new selected language. What is happening is that when you click on a button, the code is executed AF...