asp.net

Performance asp.net and cookie

Writting an asp.net shopping cart. I am leveraging the session for state but I also want to store basic info in a cookie. This info would be the items / qty. I am aware of the cookie size limitations but here the question. Are there any sources of information on performance cost in terms of writting to a cookie as opposed to sql. In my ...

Retain form data while paging through a GridView - ASP.NET

I have a GridView control on my ASP.NET page that binds to result set when the user executes a search. I create an additional TemplateField column with a CheckBox control to allow the user to select a sub set of records from the result set. I have implemented paging in the GridView control and when the user checks the checkbox control ...

What is the difference between the Visual Studio Options: ASP.NET Web Service and WCF Service

I see that there are two options that I know can be used in web services... WCF obviously, and ASP.NET Web Services. What's the difference? I just started picking up WCF recently and had a little exposure to web services in the past, but I'm certainly not an expert. ...

How can I ensure that my web pages are not modified by end customer?

I want to lock down my website so that the end customer cannot change the standard web pages(aspx). I have investigated code signing and digital certificates. But that is more suited for the dlls and executables, and not to the aspx/html pages themselves. Is this possible? If so, please provide me some links. Thanks, Murali ...

asp.net routing with web forms--all routs get a 404

Hello I have created a web forms app that implements routing. My applications utilizes Phil Haack's example (http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx). All of my routes receive a 404 error. Any ideas? Thanks ...

Http get post guru help fiddler

I need help. I need log(safe full request) in iis 5(with headers etc) or look on it in proxy,fiddler etc I use fiddler/ I have web config Do you know HOW TO see ALL REQUEST,request from ALL PORTS and applications? Can y recommend me proxy or http debugger? I can not see request to my website in fiddler(((((( Maybe i need add property...

Normalization of Strings With String.ToUpperInvariant()

I am currently storing normalized versions of strings in my SQL Server database in lower case. For example, in my Users table, I have a UserName and a LoweredUserName field. Depending on the context, I either use T-SQL's LOWER() function or C#'s String.ToLower() method to generate the lower case version of the user name to fill the Low...

CSS Issue - ASP.NET Calendar picker

EDIT With one of the below answers, I was able to correct this issue for the rendering within a table. I'm still seeing this issue within my ListViews. I've tried this CSS for the ListView, but it has not corrected the issue. /* FIX FOR CALENDAR IN TABLE */ .DateTime_Edit { white-space: nowrap; } .DateTime_Edit table { border:...

WCF Redirect

I know that WCF is supposed to be transport agnostic, but is there a method to write directly to the client (web client esp.)? I need to do the equivalent of response.redirect(url) and though it might be possible to just write out a "301 Location Moved" header. I am trying to write a service that would move static content to a CDN (S3 ...

Culture changing inexplicably during ASP.NET web application request.

I'm having a weird issue when where the date format of from the date fields changes from 4/16/2009 12:00:00 AM to 16/04/2009 00:00:00. I set the application to write out each stored proc that fired with the same corresponding date field if it exists. Here's what came out. You'll notice that the format switch inexplicable half way thro...

Backing and restoring SQL Server data to changed database structure

The scenario is this. I have a SQL Server database online that I am demoing an application. During development, I have added extra fields, modified field types, changed keys and added some new tables locally. What's the best way for me to update the online database with the new structure and not lose the data? The database is a SQL Serv...

Retrieving Anchor Link In URL for ASP.Net

I have an url like so: http://localhost/place/663828/bangkok-paradise-restaurant-toronto#r306040 I am trying to see if theres the existence of the anchor tag along with getting it's value to do some code logic in the code behind. I have been trying to use the Page.Request, but none of the properties show the anchor link portion of the...

Mathtran from asp.net website

I would like to build a website in ASP.NET, which would display many equations. I would like to generate them automaticly, so I need to use some library, that would allow me to generate images from TeX or LaTex dynamicly. For performance resaons, I would like to have it running on my local server. I tried to used MimeTex with the Eq2Im...

How send parameters with javascript tag?

How can I send parameters (with QueryString) within a javascript tag as the source attribute to a ASP.NET page? Example: <script language="javascript" src="myDomain/myPage.aspx?id=123&no=43"></script> And what I have to do in "myPage.aspx"? For example I want to send a picture to the script tag according to it's src querystring. ...

Removing trailing decimals from a .ToString("c") formatted number

Basically I am formatting numbers like so price.ToString("c") The result is $615.00 in english and 615,00 $ in french. My desired result, however, is $615 and 615 $, respectively. How can I attain this, while still taking advantage of .nets localization handling? ...

Retrieving all GridViewRow objects from a GridView control with paging enabled

I currently have a GridView control on my aspx page with paging enabled and I need to loop through the entire row collection/count to process the selected records. With my current code, it will only loop through the current page of GridView row. What is the best way to accomplish this task? Here is my current code: ASPX page: <asp...

How to create autosuggest to get keywords as fast as google search or live search

I am creating auto suggest function in my website search box, every time the user press a new key, javascript call a webservice on the server side to get 10 most relevant keywords from the db and gives to the javascript again, and javascript populate the search autosuggest list. My function is not too slow, but comparing to what live.com...

Multi-select dropdown list in ASP.NET

Do any good multi-select dropdownlist with checkboxes (webcontrol) exist for asp.net? Thanks a lot ...

Securing ajax calls

I need to make an ajax call from a site to a service exposed on another site and server and I need to make it secure, so that I'm sure that the call is a genuine call from the client site and form. What are the best methods to obtain this? ...

Control inside EditItemTemplate will be available in Page_Load() only if...

Hello, On my page I’ve defined controls TextBox1, Label1 and GridView1. Inside GridView1 I’ve defined the following template: <asp:TemplateField> <ItemTemplate> <asp:LinkButton runat="server" Text="Edit" CommandName="Edit" ID="cmdEdit" /> </ItemTemplate> ...