asp

Why or why not use a DataSource to fill ASP controls?

So we have a GridView asp control and one of my coworkers doesn't like to use an DataSource to fill the GridView. I wasn't sure if/what the pros and cons are of using one. I don't mind using going through the wizard to set the type, and the select/update methods. Besides using the wizard are there pros and cons? ...

how to set previously selected radio button checked in classic asp after page is postbacked

I have never worked on classic ASP and unfortunately i am supposed to modify an old classisc ASP web site. ASP.Net ViewState does take care of maintaining control's sate automatically. How do i do it in classic ASP ? I have two radio buttons and a text box placed on my ASP page, when user types in something in the text box based on ra...

Is there a website level setting in IIS that would prevent an ASP page from being served?

Trying to copy a website to a new server as the old one is dying. :( I tried copying over the files and setting it up manually, but some specific user accounts needed to be used and the guy who set all this up left the company nearly 5 years ago. And is even worse at documentation than I am. Anyway, at that point the ASP pages were...

How to submit Nothing as a route value to ASP MVC

I have a route with several optional parameters. These are possible search terms in different fields. So, for example, if I have fields key, itemtype and text then I have in global.asax: routes.MapRoute( _ "Search", _ "Admin.aspx/Search/{Key}/{ItemType}/{Text}", _ New With {.controller = "Admin", .action = "Sea...

i am facing some problem while passing parameter to crystal report? it is asking for the password of sql server?

protected void Page_Load(object sender, EventArgs e) { ConnectionInfo myConnectionInfo = new ConnectionInfo(); myConnectionInfo.UserID = "sa"; myConnectionInfo.Password = "********"; setDBLOGONforREPORT(myConnectionInfo); //When i don't write this code it does not ask for the passowrd //but doesn't ...

Total Number of records required in paged .NET datagrid control

I am using a data grid and has bound a data source with it. I am trying to get the total number of records in the grid in overriden InitializePager method from pagedDataSource DataSourceCount. I thought DataSourceCount returns number of records from SelectCountMethod of ObjectDataSource, but DataSourceCount is giving me the page size...

Classic ASP Request.Form removes spaces?

I'm trying to figure this oddity out... in classic ASP i seem to be losing spaces in Request.Form values... ie, Request.Form("json") is {"project":{"...","administrator":"AlexGorbatchev", "anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/20104:15PM"... However, CStr(Request.Form) is json={"project":{"__type":"...":"Alex Gorb...

Ms Access DB used by website

Hi Guys, I have been asked to update a legacy website. I was originally build in asp using a MS Access DB to store some user details. However I am aware that the DB can be downloaded if you use the correct url. What is the best way to stop this without stopping the website having access to the DB? Thanks Sp ...

How to publish an ASP.NET MVC website

Hello -- I've a site that I'd like to publish to a co-located live server. I'm finding this simple task quite hard. My problems begin with the Web Deploy tool (1.1) giving me a 401 Unauthorized as the adminstrator because port :8172 comes up in the errors and this port is blocked - but the documentation says "The default ListenURL is h...

How to Set Focus in a control onLoad in a Sub Form in Classic asp?

Hi, I am trying to Focus on a control in Load of my page in Classic ASP Application. My page is calling inside a main page written inside IFRAM. Problem: When I am tryting to load my Sub-Page I could not able to focus on Control on "OnLoad" Event. Could you please let me know any solution. Thanks, ...

what is the difference between response.redirect and response status 301 redirects in asp ?

Our asp application is moving to new server and i want to implement a permenant url redirection. I am aware of following two approaches , i need to understand which one to user over other and when ? Option 1: <%@ Language=VBScript %><% Response.Redirect “http://www.new-url.com” %> Option 2: <%@ Language=VBScript %><% Response.Status...

MVVM Light with ASP.Net MVC ?

Hello, I'm a big fan of MVVM Light and I use it in my WPF Application. It works Greeeeat. I have a new project in asp.net mvc. And I'm wondering : Is anyone already tried to use mvvm light and asp.net mvc ? I know that some components will obviously not work but maybe, someone has achieved to do a better job with it. Thanks for your ...

IIS 6 session timing out a lot quicker than expected

I am working with an web application that has its sessions timing out a lot quicker than expected. We expected a timeout of 15 minutes but it's timing out at 3-4 minutes. Info about environment: IIS6 classic ASP / COM+ app timeout OK on current PROD, much quicker in dev / QA environments We already disabled app pool recycling, and even...

Command dialect is not supported by this provider.

Hi Have and old ASP website have just updated SQL DB to 2005 Can now log into database however certain commands within the pages are returning this error.. Error Details: Category=Microsoft SQL Native Client Number=-2147217898) Description=Command dialect is not supported by this provider. Filename=/home/_private/Includes/SQLServer.as...

IIS7 - Specifying content-length header in ASP causes "connection reset" error

I'm migrating a series of websites from an existing IIS5 server to a brand new IIS7 web server. One of the pages pulls a data file from a blob in the database and serves it to the end user: Response.ContentType = rs("contentType") Response.AddHeader "Content-Disposition", "attachment;filename=" & Trim(rs("docName"))&rs("suffix")' let t...

paypal express checkout integration in asp classic

i am trying to figure this out for almost a week now.. with no success.. i am coding in ASP and would love to receive some help. i am following the steps from paypal wizard here: https://www.paypal-labs.com/integrationwizard/ecpaypal/code.php i am collecting all the information on my website i just want to pass it to paypal when the bu...

Replace XML bullet points found in feed in classic ASP

Hey I am currently reading in a XML file which contains bullet list in the following container i.e.  the average pension contribution rate for executive directors . I am having a problem with symbol directly before the text of each bullet point I want to remove it i.e Replace(text,"old","new") but i cant seem to find what value that b...

Asp.net PopupControlExtender inside UpdatePanel

Hi, So i use PopupControlExtender (to edit some of the fields) inside ListViewControl which itself is embeded inside an UpdatePanel. The problem is as follows whenever you cause partail postback the popup panels are created client side outside the updatepanel. And you get more clientside controls with the same clientside ID. When you ...

custom 404 - would this work?

Is this custom 404 page supposed to work? It was created by another developer... Running IIS7 <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% strQString=lcase(Request.ServerVariables("QUERY_STRING")) If (Len(strQString)>4) Then strURL=Right(strQString,Len(strQString)-4) If (instr(lcase(strQString),"www")>1) then strURL = Repl...

Selling upper management on converting to ASP.NET from Classic ASP

A client of mine has an application written in Classic ASP and COM+. The managers are interested in migrating it to ASP.NET MVC but they have to convince the CIO that it is a good move. The old app still works OK, other than the fact that no one at the company can maintain it. How can we sell upper management on converting to ASP.net fro...