CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_asp_to_asp.net Tags:
Item Type: NewsGroup Date Entered: 4/9/2005 9:39:23 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 37 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
orli
Asp.Net User
Can I include a VBScript file in my ASPX page?4/9/2005 9:39:23 AM

0/0

Hi,

I have a website built in C# & ASPX. I also have this file written in VBScript that I need some of my pages to include. Is that possible or do I have to convert the file from VBScript to C#? If I do have to convert, how can I do that? I tried using that ASP2ASPX tool but it gave me a syntax error in line 45 (I will bold line 45)

The file contains the following code:

<code>

<%

'check which xml object is working on the server
Function getXmlPrefix()
 Dim prefixes, objXml
 prefixes = Array("MSXML2", "Microsoft", "MSXML", "MSXML3")
 
 On Error Resume Next
 err.Clear
  
 For i = 0 To UBound(prefixes)
  Set objXml = Server.CreateObject (prefixes(i) &".XMLHTTP")
  If Not err Then
   getXmlPrefix = prefixes(i)
   Exit For
  End If
 Next
End Function

'Make the connection to the systems
Function GetURL(ByRef pStrURL)
 Dim ObjSpider
 If Trim(pStrURL) = "" Then Exit Function
 
 On Error Resume Next
 Set ObjSpider = Server.CreateObject(getXmlPrefix() & ".XMLHTTP")

 With ObjSpider
  .Open "get", pStrURL, false
  .Send
  GetURL = .responseText
 End With
  
 Set ObjSpider = Nothing
 
 If Err Then
  GetURL = " "& err.number &": "& Err.Description 
  Exit Function
 End If
End Function

'check whether the web user has inserted the code
Function Getinto(code,pass,phone)
Getinto= GetURL("http://www.billonet.net/ext/ext.php?code=" + code + "pass=" + pass "phone=" + phone )
end Function

'Generate unique code for the web user that contains your user code and extra 3 random numbers
Function Getcode(id)
 dim code
 
 code =""
 Randomize
 
 ' Generate the code with three random numbers
 code= int ((999 * Rnd)+1)
  
 if len(code)<3 then
  code=id & "0" & code 
 else
  code=id & code
 end if
 Getcode = code
end Function

'Display to the web user the number to call to and the code to insert
Function Showdialog(code)      
 Showdialog = GetURL("http://www.billonet.net/ext/phonedialog.php?code=" & code)
end Function


%>

</code>

Thanks in advance!

Xanderno
Asp.Net User
Re: Can I include a VBScript file in my ASPX page?4/9/2005 8:08:52 PM

0/0

Yes, you are going to have to convert it to C#, and the error is bacause you're missing a + between pass and "phone". 
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Practical Web Technologies Authors: P. K. Yuen, V. Lau, Pages: 928, Published: 2003
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
Sams Teach Yourself Visual Studio .NET 2003 in 21 Days Authors: Stephen Walther, Jason Beres, Pages: 696, Published: 2003
The Ultimate VB.NET and ASP.NET Code Book Authors: Karl Moore, Pages: 380, Published: 2003
Microsoft Sharepoint: Building Office 2007 Solutions in C# 2005 Authors: Scot Hillier, Pages: 513, Published: 2007

Web:
Can I include a VBScript file in my ASPX page? - ASP.NET Forums Can I include a VBScript file in my ASPX page? Last post 04-09-2005 4:08 PM by ... Re: Can I include a VBScript file in my ASPX page? ...
VBScript problem on aspx page Hello Experts: I'm trying to execute a vbscript on my aspx page. ... Maybe the code you got was from a .vbs file or other where this would have worked. ...
HOW TO Use asp Include in ASP.NET ? can I use an asp (not aspx) file as include in my aspx files ? ... However, as for your situation, you have some classic vb script function ...
VB Script Function But, you can include the VB Script file using the ... command and then call the function as if it was part of the page. ...
How can I open an aspx web page using vbscript - ASP.NET Forums Re: How can I open an aspx web page using vbscript ... I need to open an aspx page on my site and then close it, just so that I can automate a process. ...
How do I call Vbscript functions from VB.net code behind files ... I manage to call my VBscript subroutine from my code behind file. ... Place the function in the ASPX file, and in your Page. ...
Can Silverlight 2.0 interactive with vbscript? : The Official ... In the aspx page, however, possibly you only have one VBScript function, ... call C#. it is very pain.but can finish my feature. thanks. ...
"Includelets" - or How to Encapsulate ASP layout includes in ASP ... All it does is include my ASP header include file, call the showHeader function, ... that scrapes an ASP page to get the HTML to insert in my .aspx page. ...
VbScript - .NET I'm trying to do call a vbscript sub in one page aspx. My vbscript sub is in a file with the extension (vbs) and it looks like this: ...
CodeProject: File Upload using a VBScript Class. Free source code ... <%@ Language="VBScript" %>




Search This Site:










where has the dll gone in vs2005?

traditional authentication without database

what is ssl

looping through treeview using javascript

information in web.config file is accesible at file level.

using user data across pages and sessions

parser error - line 1: <?xml version="1.0" encoding="utf-8" ?>

inamingcontainer and client side script question

ttt/dnn core forum emoticons smiley and gallery integration. help

new menu control and highlighting which area of the site you are in.

want to load .aspx page within tabs from an .ascx module on one of my tabs

logout

australian dnn hosts

registration page.

3.1 web.config - <trust level="full"> required, help...

login page works in .net app server, not real server

user login module

changepassword control

where is dnn2.0.3?

blogging module? or event by date..

using masterpage and subfolders

mystery of the disappearing dll's

expand treenode .. pls help!

dnn 3.08, error adding new page

ajax control toolkit problem

how to: combine sitemap with dynamic flash menu

createuserwizard control

different set of masterpages for different themes

c# treeview issues

buttons in createuserwizard

 
All Times Are GMT