asp

.ASP Do I need to compile?

I'm poking my head around ASP for work and I'm not sure how it works... I'm used to being able to create a HTML, PHP, ColdFusion page, put it on the webserver and execute it. Do I need to compile ASP pages or is that just ASPX? I just want to create an ASP page and put it on my web server to test... ...

Extracting data from a tab-delimited file with JavaScript

I'm trying to extract data from a data file that's tab-delimited (in some parts), and really seems like it's going to be a headache to work out (I reallw wish they could just have CSV-ed it). Here's the data: http://www.fededirectory.frb.org/FedACHdir.txt Here's the format description: www.fededirectory.frb.org/format_ACH.cfm I'd li...

Wrong place for float:left div .

<div id="nav-main" align="center" style="width: 95%; height: 35px;"> <div style="float:left; height: 29px; width: 260px;"> <a href="javascript:void(0);" onclick="select();" style="font-size: small; background-color: #FFFFFF"> ...

Nested UserControl Render Order

Hi everyone. I have a custom control created in codebehind, and I have in the same control an ordinary asp.net button. Like this: protected void Page_Load(object sender, EventArgs e) { } private void MyTable() { Table table = new Table(); TableRow row = new TableRow(); TableCell cell = ...

Export Excel from web, what's the BEST way?

About 3 years ago, I was looking for a way to allow a web app user to download table results to an Excel file. I knew that I didn't want to put Office on the web server and that I probably wanted to create the XLS file in XML format. The question was: what was the best way? Now I am writing my resume and I am trying to recap the things ...

change TextBox text after button click in Facebox plugin

Hello guys, I have a problem: My facebox has a button and textbox(asp.net server controls) I want when i click the button to change the textbox text here is my aspx code: <div id="FaceDiv" style="display:none" >I'm your facebox<br /> <asp:Button ID="ShowButton" runat="server" Text="Show text" OnClick="ShowButton_Click" /> <asp:...

insert utf 8 encoding to sql db in classic asp

Hi, I am trying to insert into sql db japaneese character and it goes to db as ??? do you know what am I doing wrong? ...

ASP Classic - convert base64binary string to byte array

Hello, I am trying to convert a base64binary string to a byte array in classic ASP. StrConv() doesn't exist in ASP. My objective is to take the base64binary string received from a web service call, and write the binary format to a file. thanks, -m ...

How to test an ASP page?

I had to code an Active X DLL which is called from an ASP page. I am convinced (by debug tracing) that my DLL returns the correct value when its function is invoked from the ASP page, but the page does not display the result as it should. What's the quickest/easiest way to do some debugging? Can I run ASP locally? If so, I can just add...

ASP - Loop while eof or bof - Select random product from idproduct but skip empty ids

Hi, I am trying to display a random product image and description from the access database, so i am selecting the highest idproduct then randomising a number between 1 and %highestid%, this is what i have so far.... IF frontpage = 1 then SQLSTR = "SELECT idproduct AS prodtot FROM products order by idproduct desc" Set objRS = Server.C...

Classic ASP ADODB with SQL Server Compact Edition 3.5 is not working in Command Parameters

Hi All, I'm new to SQL CE. I'm programming in Classic ASP, connecting the SQL CE using ADODB.Connection. I have created the table and trying to insert data from the ASP. I tried in 3 ways. The inline insert statement [e.g. INSERT INTO tblName(col1, col2) VALUES(1,2)] (WORKED) The parameterized insert statement [e.g. INSERT INTO tblNam...

Implementing OpenID (DotNetOpenAuth) with Classic ASP

I've spent countless hours reading through documentation all over the place and I'm still having a problem with implementing the Classic ASP samples provided in the the latest version of DotNetOpenAuth (3.4.5.10202). Specifically, I'm not sure what values I need to change in the login.asp in order to see if it works / will work for me. ...

.net, c# post to php page...

Hi, I have a website that is primarily PHP but we have built some new pages in c# .net. I need to be able to post (i think) to the PHP page. The PHP page has a login that takes the login name and password. I am trying to allow my .net page to have a login that directs to the PHP page and once there the user is already logged in. I ...

ASTreeView help! (using JavaScript with .dll's)

I love the demos of ASTreeView. I'd like to use this in my project, which is completely local and currently only uses HTML, JavaScript, and CSS - i.e. no ASP.net or anything dealing with servers... Is it possible for me to use this? There is a .dll and a .js included in the package, but I have no clue where to start since this isn't a A...

Convert this C# code to Classic ASP / VBScript??

I know this sounds backwards, but I have to convert this from C# to Classic ASP. I don't know any VBScript so I need help. In my C# code, it is reading appkeys in the config file, parsing them, and using loops to perform a process. I don't know how to do dictionaries and I/O stuff in VBScript. Can someone please help with this? These a...

ASP .NET VirtualPathProvider HttpCompileException

I have a VirtualPathProvider that is loading my aspx file content from a DB. All seems to be well and good except when my aspx file has a reference to a namespace or assembly that is not explicitly mentioned in my web.config. The solution seems easy right? Add assembly and import directives to the page... But that doesn't seem to work. ...

ASP: request.form is not returning value?

I have following form, <form action="contact_us.asp" method="post" enctype="multipart/form-data" name="form1" id="form1"> <input name="firstname" type="text" id="firstname" size="30" /> <input name="lastname" type="text" id="lastname" size="30" /> <input type="submit" name="submit" id="submit" value="Submit" /> </form> But wh...

How to create key/value pairs in ASP?

How do I do something like this in ASP / VBScript? Dim pairs pairs= Dictionary(String, Integer)() For Each item As String In storage Dim temp temp = item.Split(".") pairs.Add(temp(0), temp(1)) Next ...

ASP GridView DataBind with Entity Navigated property

Hi, I have a GridView DataBind with entity ClassA's properties that is working fine. I am able to directly bind below properties in ASPX file. ClassA.Id ClassA.Name etc. But ClassA also have a navigation property to related ClassB. I would like in a the same GridView to display related classB's properties. I try to bind the following ...

Classic ASP Function equivalent to PHP's

Uusing PHP and ASP on a project. A form in PHP captures the day, month and year of a birth date. Then it's inserted into a database as the variable currentSeconds. I can get the years from variable $currentSeconds in PHP no problem using the 2nd code snippet 1st Code Snippet $day=$_POST[day]; if ($day<10){ $day="0".$day; } $currentSec...