asp.net

ASP Login page for ASP.NET Application

Hi All, In my work place, we have several classic ASP and ASP.NET application. All these application though doing different works are integrated through a single sign on mode, which is handled by one main application. The main application is in classic ASP and verifies the userid and password initially and then stores the UserID in a ...

asp.net linkbutton client-side problem

I have this linkbutton with post-back disabled ... I should have done it with an html control but just did it that way .. It is toggling a language bar on top (marara.com.tr - language link) It needs to be clicked twice in order to get the div to fade-in. I can correct the problem but just want to know why it behaves like that. .. in the...

Does Page class adds ViewState for Controls created in CreateChildControls in ASP.NET

Hi every one! Does Page class adds ViewState for Controls created in CreateChildControls, I mean I have a page which I add some controls to the page and all of them are Literal and EnableViewState is false, my question is are there any ViewState entry gor them in Page's ViewState? Thank you. ...

Using web.config to ban user-agents

Is it possible to ban certain user agents directly from web.config? Certain robots seem not to follow robots.txt, and to avoid pointless server load (and log-file spamming) I'd like to prevent certain classes of request (in particular based on user-agent or very perhaps IP-address) from proceeding. Bonus points if you know if it's simi...

Turn Off DefaultSettingValueAttribute Create on Applicaiton Settings for .Net Application

I have a dll that accesses a database and reads the connection string from an application setting stored in the config file. The application that references this dll will then need to set the value for this config setting in its config file. The problem I'm having is that the generated config code automatically uses my dev connection ...

Disable Google Toolbar Autofill

The Google Toolbar's autofill feature has been the bane of my web development existance for the past several years. I have always settled on trying to create a timer control to check for changes since the developers epically failed to fire change events on controls. This has gotten further and further complicated when controls are bur...

SQL Sub Query NO execute if null

I was wondering if there was a way to not execute my subquery if my @ID1 is NULL? CREATE PROCEDURE [dbo].[TestTable_Search] @Col1 int, @Col2 uniqueidentifier, @Col3 datetime, @Col4 datetime, @ID1 varchar(10) AS SET TRANSACTION ISOLATION LEVEL READ COMMITTED SELECT * FROM [dbo].[TestTable] WHERE [Col1] = CO...

FileUpload asp.net

I want to force my user to only search in a particular folder when using the fileupload control. Is that possible? ...

Query returns results 5 times

Hi, I have a weird problem. My query in C#/ASP.NET returns results 5 times. I tried brakepoint-ing but I can't find the error. I have 2 related tables. One table loads on PAGE_LOAD and when the user click on a cell, it shows the content from another table related to that cell. It's very simple. //PAGE LOAD protected void Page_Load(o...

Does the ASP.Net Wizard Control work with javascript disabled?

Isn't this a client side control? What will happen if the user has disabled javascript? ...

HoverMenuExtender doesn't show up from within hidden table cell

I've programmatically added a column to a GridView for the sole purpose of adding a HoverMenuExtender and Panel to it's cells. The HoverMenuExtender displays when you hover over a row no problem. However, there is now an extra column in my grid that I don't want there. I've tried 3 things to hide it: 1) set the column to Visible=fals...

Visual Source Safe 2005 Remote Access

I want to let VSSDB accessed via internet (not LAN) from one machine to another. Update I Thanks for reply but it doesn't. It's saying something failed to enforce SSL requirement on IIS. VSS web services would be disabled on this machine.... Update II Is it possible to connect it after establishing VPN? how ...

mvc jquery paging search results with only 1 query

I have a search page that I'm implementing as part of an ASP.NET + MVC + jquery site. The search query scores each result that is returned as part of the results set. i.e. Higher score for closer match. Because the results set can change, and because the algorithm that scores the matches is somewhat intensive, I only want to load the re...

What's the best way to show a random image in ASP.NET?

What I am talking about is like this website : http://www.ernesthemingwaycollection.com It has a static wallpaper and a set of images that change from page to page, I want to implement a similar way of displaying random images from a set of images using ASP.NET. EDIT : I want the image to stay the same in a session, and change from a s...

Storing multiple values in cookies

I have very large website which uses a lot of cookies. There are approx. 14 different cookies are there. I have different cookies for each item. When a user surfs the site they will have 14 cookies in their browser. I do not want this. I want a single cookie for my site that will have 14 items and I can add,edit and delete them. I trie...

Email service/plugin for ASP.NET

I'm looking for an email service or plugin for ASP.NET that will allow me to send daily email updates to my email list based on information i have stored in a database. Any advice/help would be greatly appreciated. Thanks... ...

Asp.net mvc view engine - to roll my own intellisense

I'm creating a little special purpose view engine for asp.net mvc. That goes well enough. But i've been looking around to find information on how to somehow add intellisense for the C# code embedded in my view. I can see Spark does that, but going through the sources, I still can't see how. And WebForms view engine does it - not surpri...

Premium ASP.NET hosting

I know there are a million ASP.NET hosting options, but what are the premium options if you have some money to spend and want maximum performance and uptime? We currently use MaximumASP and they are generally great. I know another good option is Rackspace. Does anyone have any other suggestions? This is one of those things that is ha...

Can't get example for ASP.NET AuthorizationStoreRoleProvider to work

I was following this example http://msdn.microsoft.com/en-us/library/ms998331.aspx but seem to be messing something. I keep getting the parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) Line throwing the error: Line 30: if (Roles.IsUserInRole("TestRole")) Stack Trace: [ArgumentException:...

Pull one record from the database and bind to an HTML tag

In ASP.NET, what is the definitive way to pull one record from the database and bind it and HTML tag? Brevity and style points count. ...