Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


visual basic.NET to vbscript

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,25044
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> visual basic.NET to vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 visual basic.NET to vbscript - 8/17/2005 8:09:35 PM   
  blabber

 

Posts: 3
Score: 0
Joined: 8/17/2005
Status: offline
I have created some functions in vb.net and i want to use them on a webpage. They work. How do i use them in a html.
  • Can i attach the .vb file to the html file?  (like a javascript file)
  • Do i have to change something to my code
  • how do you call a function when there is an event on which this function must be started?
  • Is there anywhere on the wep a good tutorial to create a webpage with all problems above included? (Not just an hello world)

 
 
Post #: 1
 
 RE: visual basic.NET to vbscript - 8/17/2005 10:21:19 PM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Hiya Blabber,


VB also holds the ability to create a webpage from it program...have you tried to implement your code in a new HTML/VB project...

What software are you using?

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to blabber)
 
 
Post #: 2
 
 RE: visual basic.NET to vbscript - 8/18/2005 12:04:14 AM   
  blabber

 

Posts: 3
Score: 0
Joined: 8/17/2005
Status: offline
I'm using visual studio.net. I haven't tried to do that. How can you do that?

(in reply to Snipah)
 
 
Post #: 3
 
 RE: visual basic.NET to vbscript - 8/18/2005 4:59:52 AM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
I haven't used it in a while... but please find the next link to obtain more information on the subject...
MSDN - Web Forms Application Walkthroughs


_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to blabber)
 
 
Post #: 4
 
 RE: visual basic.NET to vbscript - 8/21/2005 7:10:50 PM   
  blabber

 

Posts: 3
Score: 0
Joined: 8/17/2005
Status: offline
I didn't find the solution for my problem.
This is one of the functions that I created. Can someone take a look at it and help me?  The function creates a webpage with images.





Dim
FilesChosen As String() = New String(200) {}

Dim CountSelectedImages As Integer

 

Public Sub CreateChosenImagesHtml()
Dim i As Integer

Dim path As String

path = "ChosenImages.html"
Dim file As New FileStream(path, FileMode.Create, FileAccess.Write)
Dim writer As New StreamWriter(file)
writer.WriteLine("<html>")
writer.WriteLine("<head><link rel=" & Chr(34) & "STYLESHEET" & Chr(34) & " type=" & Chr(34) & _
"text/css" & Chr(34) & " href=" & Chr(34) & "Main.css" & Chr(34) & "></head>")
writer.WriteLine("<body id=" & Chr(34) & "body" & Chr(34) & "scroll=" & Chr(34) & "no" & Chr(34) & ">")
For i = 0 To CountSelectedImages - 1
writer.WriteLine("<img class=" & Chr(34) & "imgSmall" & Chr(34) & " id=" & Chr(34) & "imgSmall" & _
i & Chr(34) & " src=" & Chr(34) & _
FilesChosen(i) & Chr(34) & " />")
Next

writer.WriteLine("</body>")
writer.WriteLine("</html>")
writer.Close()
file.Close()
End Sub






(in reply to blabber)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> visual basic.NET to vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts