The ASP.NET User identity is not available in Application.Start which allows writing to database. (Web site is running on a shared host, so i could not configure permissions as i need.)
So, i implemented the following in global.asax. I am not sure if its completely thread safe.
I want to remove the delegate to eliminate lock checking for...
I have a page which expects a numeric query string value. For example:
Details.aspx?rgn=1234
On this page is an <asp:repeater> which is databound to an <asp:objectdatasource>. The datasource looks something like this:
<asp:ObjectDataSource ID="ObjectRegion" runat="server" SelectMethod="GetRegions" TypeName="Region">
<SelectParamete...
difference b/w HttpRuntime.Cache vs HttpContext.Current.Cache ?
...
How i can get the timezone information from the country does anybody have a idea?
...
We use SharpZipLib. We need to be able to unzip files on server and place them in separate folder. The request to unzip a file will be from user on a web page. I imagine if the files are large enough it will take a long time to unzip. We don't want users to be stuck on the page while waiting for unzip to complete in order to continue b...
For an unknown reason, I have 1 page that I can't access by ID to any of the component.
Here is some informations. The page use asp:Content because the website use MasterPage. Inside the asp:Content, this page has a asp:FormView with some data that I cannot access from the CodeBehind.
Here is the Page declaration:
<%@ Page Language...
I have a database (using Microsoft SQL Server Management Studio Express) that is currently being used quite heavily in a functioning application. I am porting this application over to Windows Authentication rather than the current basic authentication system (or lack thereof) that exists.
The easiest way that I know to set this up invo...
I am unable to edit Gender lookup field. I am having problem with post back edits. Every time I edit, the row YourGender keeps getting repeated. I am getting null values for GenderLookup value field. What is the right way to populate dynamically this look up in detailsview control. How does the get request and post back request with this...
I have a ASP.NET webform that, aside from other controls, has a textbox for entering a value, a textbox to display values, a dropdownlistbox, and a search button. I am using the following code to display search results:
if (TextBox3.text == DropDownList3.Items.FindByText(TextBox3.Text).Value)
{
etc...
}
The DDL3 gets its values f...
Basically I am upgrading from 1.1 to .NET 3.5 SP1 and replacing an old .NET 1.1 WebForms application with its newer .NET 3.5 version.
I run the .net 3.5 sp1 installer (dotnetfx35setup.exe)
I run the crystal reports redistributable installer
I set up a new application pool
I set up a new website using the directory with the new files, u...
Is it possible to flatten a one-to-many relationship using dynamic LINQ?
For example, I might have a list of Users and the User class contains a list of many UserPreferences. The UserPreference class is essentially a name/value pair.
A user will define what types of user preferences are available for a group of users.
public class U...
I have an application that requires the user to reenter their password between 15 and 30 minutes of inactivity to allow them to carry on with what they were doing.
My current idea is to have a piece of javascript that calls a popup after 15 minutes, asking the user to log in again. The site as a whole has a 15 minute forms authenticati...
If I have a List < Person > where person is defined by the class
class Person
{
string Forename
{
get;set;
}
string Surname
{
get; set;
}
}
And I bind it to an asp repeater control that looks like this:
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<asp:Label ID="lblForename" ru...
Hi everyone.
I've got an ASP.Net app in which my AppSettings node from the Web.Config xml is stored in a separate file.
So my Web.Config contains this:
<appSettings file="AppSettings.config" />
Whenever I change a setting in there I have to do an iisreset to force the changes to kick in. In other words, my changes in this file aren'...
If I have an externally hosted application (www.outside.com) outside the firewall but users within a company wanted to be able to enable LDAP authentication against their local (behind the firewall) AD server (acting as LDAP) or other LDAP server (call it ldap.inside.com), how would this be done.
It seems technically possible in that wh...
Hello guys, here is my problem:
I have a ASP.NET appl. In the appl, there is a page (page A) that brings up a second page (page B) Page b is a simple form that fills a dataGrid that is located in Page A. I have tryed many approaches (IDisposable, creating methods for it...) but it does not give me the correct functioning. I have been loo...
The dillema is like this:
If I try to fit all the scripts blocks on the masterpage (include page in some frameworks), every page gets a copy of every script (including the ones they don't need) and these quickly adds up and bloats the page size.
If I include/insert script blocks where needed, javascript will be spread all over the proj...
I just found out about superfish and currently using it on an asp.net. The problem is every time the page post back superfish plugin disappear. The site needs to run on IE6 so the javascript part is very important I was thinking of creating a javascript function that contains tha initialization of the plugin and called it at the page Pag...
I have a dynamically-created GridView which to which I'm attaching a handler using the AddHandler command.
The problem is that when I try to refer to sender.rows within that function, it won't do anything because it says that sender.rows.count = 0.
I've done enough dynamic form creation that I'm pretty sure that I'm creating the contr...
I'm using ADO.Net to work with an Excel Document. Essentially, I'm looking up values in a table called "source" and creating a new table called "result" which will be populated with the results of my query.
I have a couple of questions..
A) How can I check if a table exists
and create a new one if it doesn't?
B) Is a table the same ...