asp

Write back to an XML file

I was wondering if this is possible, I'm not looking for code, i just want to be pointed in the right direction - php, asp or javascript. I have an xml file: <?xml version="1.0" encoding="utf-8"?> <Groups> <Group> <groupNum></groupNum> <purgeGroup></purgeGroup> <DupeRecs> <DupeRec> ...

Recommended ASP.net intermediate training (London, UK)

Does anybody have first hand experience of intermediate ASP courses in London, UK? We're looking for a short course (c3 days) to sharpen our ASP skills (C#/DB skills etc are fine). We have constructed web pages/user controls etc. but want to ensure that we're following best practice and to ensure our sites have decent design and implem...

Getting the size of a remote folder via classic ASP

I'm trying to something pretty simple but am having headaches with it. I'm pretty sure all I have here is a permissions issue I don't know how to solve but I could be wrong. Here is my scenario... I have 3 servers... Server A - Web Server (Windows 2003) - Anonymous Access Enabled Server B - Red 5 Media Server Server C - NAS The webs...

How to return a classic asp page with a different name than the asp page on the server

Is it possible to return to the web client a page named differently than the original classic asp page read from the web servers folder ? F.i. a real example I would like to implement: let's say I have an classic asp called calendar.asp If this page is called today (Jan 6, 2010) the page returned to the client web site should be: c...

How to change HyperLink NavigteURL on Click

As you all know, HyperLink have a navigateURL property and whenever you click on a hyperlink you'll redirect to link destination, it is ok. So LinkButton in visual cases are same as Hyperlink but it have not a navigateURL property and instead you can redirect user by using Response.Redirect on OnClick event of LinkButton, the differet ...

Help to submit xml string/document as ajax request to background page using YUI

I would like to create the XML string on the the aspx page and then submit this request using the YUI ajax request to another aspx page for the processiong. So 1. is this possible by setting some of the ajax requests configurations like we do on ajax response ? 2. How it can be done ? ...

Can anyone help me with setting folder permissions in IIS via an asp page?

I can create the folder, but I need to set the execute permissions to none/false for the folder named files. I have tried several examples on the net and none work correctly. Doing this manually in IIS is not an option, it must be done dynamically when the folder is created. Here is what I use to create the folders: set fso = Server.Cr...

Help in migrating from ISAPI_Rewrite to IIS7 URL Rewriting

Hi, I've this ISAPI_Rewrite rule: RewriteRule /([^/.?]+) /sc.asp?p=$1 [I,L] This rule should rewrite Urls like: /some-article /article2 and shouldn't rewrite Urls like: /home.asp /admin (because there's a directory named admin) /admin/ /sites/gutterman It works great in ISAPI_Rewrite Yesterday I bought ...

How To Create Nested Form in Asp.net

I have a simple website and I use masterPage for designing my template. everythings work fine, but when I add a Custom (google) Search Box in it my pages correpted. infact asp does not support Nested Form and as you all know google use a simple form to get queries from the users. so at first I redesign my site and put 2 Form in it. On...

Set TargetControlID for ModalPopupExtender as a Button in a DataGrid Header

Hi, I am trying to add a ModalPopup to a GridView, by adding a button in the data grid header: <asp:GridView ID="GridViewTradeDetail" /> <Columns> <asp:TemplateField HeaderText="B/S"> <HeaderTemplate> <asp:Button ID="ButtonShowBuySellPopup" runat="server" Text="Set B/S" /> </HeaderTem...

ASP .NET 301 redirect create problem for some users

This is the code I use to redirect from www. to non www. version of my site void Application_BeginRequest(object sender, EventArgs e) { string authority = Request.Url.Authority; if (authority.StartsWith("www.")) { authority = authority.Remove(0, 4); string newUrl = "http://" + authority + Request.Url.PathAndQ...

Prevent SQL injection on free response text fields in classic ASP

I've got some free-response text fields and I'm not sure how to scrub them to prevent SQL injection. Any ideas? ...

Upload Photo in ASP

Hi there, I have a form where user need to enter their particular details. Besides that user also need to upload their photo using the same form. I have tried to used examples from the internet on how to do the upload photo part. But I still can't get the codes run. Do I have to install any component first? Really need your advice. Than...

Need help for Dynamic Dropdownlist in ASP

Hi there, Does anyone know how to do dynamic dropdownlist in ASP? I have two dropdownlist. First will display all states. From the state, the second dropdownlist will display all the hotel name based on the state just now. Finally, when the user select one hotel, for example Hotel ABC, it will display the Hotel ABC information. All the ...

window pop up on session with client

I've got a scenario where I need to figure out how to make windows pop up depending on a session variable. So if a certain session value is something, then display a pop up with a message on the screen. Anybody know how to takle it? ...

Multi tenancy in ASP MVC

Yet another multi tenancy post im afraid. I just cant find a good solution to my problem, I have read all the great posts on multi tenancy for ASP MVC but I still need some good advice. Im going to create a corporate presence for one of my customers. Their company structure is like a main company (ex. Acme Group Ltd.) which own several ...

Radio button default state in a questionnaire.

I am writing a questionnaire in ASP .NET MVC. The format of the questionnaire is one yes/no question per page. The questionnaire is a safety questionnaire where, for the majority of the time the user will answer no to the questions. Should I set the default state of the radio buttons to 'no' to save the majority of the users time (enhanc...

Does yelp have a widget or embed code?

I am trying to integrate yelp into a website I'm working on. I'm really hoping to find a widget created by the yelp team, or another reputable source. I'd like to be able to set it up to search for restaurants in a certain location, seattle, for example. ...

VBScript Class/Object Problem

I would like an object that is used on many pages to contain its own connection and recordset variables so that they do not need to be declared on each page that wants to directly access the recordset, rather than interact with the functions of the object that normally handle this. However, the recordset is apparently not becoming an ob...

connection string

hi can anyone show me a sample connection string in asp page with sql server 2005 on vista? Or any solution to this problem: Dim cnn As ADODB.Connection throws an error http 500. I suppose ado is not correctly installed? Any ideas? ...