Visual Basic Component Subroutine

Not sure if this is the right group for this but anyways...
I've got an ASP web application that uses a Visual Basic component to do
some work. I instantiate the component in asp and then attempt to call the
subroutine. The subroutine is actually invoked maybe 2 out of 10 times run.
What could possibly be the reason for this?? Why the inconsistency in
running the subroutine?

View Replies


ADVERTISEMENT

FTP Put Via ASP Using Visual Basic

I've read hundreds of posts regarding this, but haven't got a working solution yet. Does anyone have a working snippet of code from an ASP page that can be used to upload a file to an FTP server? I read all about INET, but due to some licensing issues it won't work....

View Replies View Related

Visual Basic

Is there one? I need to hash a sensative string before inserting it into the sql server database. It HAS to be done in the ASP code, because it is also stored in a cookie. Any ideas? Server asp code is vbscript.

View Replies View Related

MSN API In Visual Basic...

I need source code for a simple MSN API example, something that interacts between MSN's controls. I want to break it down test it and use it for my own applications.

Or can people even suggest free source code sites for VB. I can search for them there. Planet-source-code had an AMAZING app, but it wanted an ocx file which I obviously didn't have.

View Replies View Related

ASP And Visual Basic Interview

ASP And Visual Basic Interview questions and answers
I have listed over 100 ASP and Visual Basic interview questions and
answers in my website

View Replies View Related

ASP VERSUS VISUAL BASIC

I would like to know the Pros and cons for using ASP VS Visual Basic for intranet, in terms of time development and customization. The project that we will use it is a basic Information Management System.That could be used for offline and online using IIS and MYSQL.

View Replies View Related

Visual Basic Program

I know we can write ASP with VB Script. Some people told me the big ASP
projects usually use Visual Basic for the business logic. Is that the case?
What I mean is an ASP project is the combination of server-side ASP code and
Visual Basic components (.cls)

View Replies View Related

Coding Using Visual Basic Or C?

I heard that there are two ways of coding with ASP. If I'm not wrong then it is by the use of VB or C.

What do these two terms mean?
When should one be used as opposed to the other?
How do I recognize a current website that is coded with either one?

Please explain. I'm new to all these technologies and ASP altogether.

View Replies View Related

Visual Basic 6, Compiling

i've written a program, where is the compile button? I can only save it as a script.

View Replies View Related

Visual Basic Interview Questions

ASP And Visual Basic Interview questions and answers
I have listed over 100 ASP and Visual Basic interview questions and
answers
in my website
http://www.geocities.com/myintervie...VisualBasic.htm
So please have a look and make use of it.

View Replies View Related

Tutorials To Learn Visual Basic?

It's now 3 years I work with ASP writing it with VBScript. I would like to learn Visual Basic to be able to write ASP components. Anyone knows good free resources, tutorials to learn Visual Basic? I already have a book for ASP components, but I first need to learn the basics of VB.

View Replies View Related

How To Insert The Data Into The MS Access Database Using Visual Basic

I want to insert the data into the MS Access Database using Visual Basic 6.0. Anybody please heplp me to tell the steps to insert the data into the database.

View Replies View Related

Asp (visual Basic Script) Break Long Text Lines Into Several Lines.

asp (visual basic script) break long text lines into several lines.

This line of my guestbook (visual basic script) - response.write "message: " & Recordset ("message") & "<br><br>" displays access database field "message" in one line in web browser.

How do I break this text line into several lines? I know in asp.net there is datagrid. Is there something like datagrid in asp. Or perhaps this problem can be solved with htm?

View Replies View Related

Calling Subroutine

i have defined a procedure and want it to call on the onload event of body.

<%
sub a()
----
end sub
%>

how can i achieve this. is this possible or not.

View Replies View Related

Call VBA Subroutine From ASP

I am currently using an Access 2000 database as the back end of an ASP website that is under development. I have some vba code that generates a Word document from within Access and saves it in a folder that makes it available for download over the website. Can I execute this code from ASP?

Further, I am planning to split the Access database, once it is complete, by migrating the back end to SQL Server. Once the website connection is to SQL Server, will I still be able to execute the vba code located in the Access front end?

View Replies View Related

Call Subroutine By Variable Value

is it possible to call a subroutine (or a function) using variable name?

Sub a()
Response.write("sub a")
End sub

Sub b()
Response.write("sub b")
End sub

Sub c()
Response.write("sub c")
End sub

Dim subname
subname = "b"
**call subname**
'does exist something like this? or something like the javascript 'eval' ?

View Replies View Related

Use An Input To Call A Subroutine?

Use an input to call a subroutine?

I’m having trouble getting an input to call 2 subroutines. I have been trying to:

<input type="button" Value="Click here to submit / post listing" onclick="<%call saveitme %><%call reduce %> " > </p>

when the page is loaded it runs the sub without clicking on the button?

View Replies View Related

Determine What Is Calling My Subroutine

I've got a subroutine, defined as Private, takes two parameters, that is
called lots of times from different ASP scripts. I need specific error
handling when it is called from only one particular section of my code - and
from the page it's called from, it's called multiple times from there, too,
so I can't check by page.

I thought about adding an additional parameter, but it's called so many
times that it would be unwieldy to do so.

Is there a way I can tell a Private Subroutine what piece of code called it?

View Replies View Related

Terminate Entire Subroutine

I understand that I can use "Exit Sub" to terminate an subroutine. However,this does not prevent everything before the "Exit Sub" from processing and displaying. Now, if I can't determine if a certain condition is met or not met until later in the subroutine, how can I prevent any parts of the code from displaying?

For example:

Code:
Sub XYZ
Response.Write "Table Header"
For 0 to all user's online
If user's page is an product page, then
Response.Write Page_Name
Y = Y + 1
end if
next

If Y <> "" then
Exit Sub
End if
End Sub

View Replies View Related

Problem Passing Variable Values To Subroutine

I'm using a database table to create forms on our intranet. If the record is 'text', an input is printed, if it's 'dropdown', a dropdown is printed etc. In the case of dropdowns, the next field in the recordset is 'options' (eg Mr, Mrs etc.) and this works fine by splitting the options array and creating a separate <option> for each one.

My problem is that I've written a subroutine that creates dynamic dropdowns and it looks like this: Code:

View Replies View Related

Disappearing Form Values When Calling Subroutine

I am calling a subroutine when I click a submit button. In the subroutine I grab values from text boxes and validate them. If it all works then it goes to the Update page.

Well my validating works but when it calls the Update page I am using the Request.Form to get the values from the form to update/insert into the database.

Well if I do an update it updates all the fields as empty. If I try to do an insert is says it can't insert NULL into the Primary key field.

Now most of the time the Primary key field is a list box and I don't touch it in the subroutine. Still why are all my values disappearing when I call the subroutine??

So I guess that is it. When I validate a forms values, them same values are no longer available on another page through Request.Form?

View Replies View Related

Is There Any POP3 And NNTP Component I Can Use As A ASP Component?

What I want to do is to show always the latest post on our company NNTP
and the newest email in my inbox as an activex background on my desktop.

View Replies View Related

ASP.net And IIS Basic Question

ASP.net is that what is used to create web pages on a server such as IIS?
ASP.net is part of visual studio, what software package contains IIS?

View Replies View Related

Basic Authentication

I have an XML file which I access from a remote server like

Set http = CreateObject("MSXML2.ServerXMLHTTP")
http.open "GET","http://www.andrewlouis.co.uk/viewcountries.xml",false
http.send
strXML = http.responseText

The real server is password protected with, I think, with basic
authentication. How do I pass it the username and password.

View Replies View Related

Basic ASP Problem

This is ALL the code that i have..

<%
response.write("This is a test")
%>

the file is saved as test.asp

I have uploaded it, and when i run it, I get the code being displayed ie.
<%
response.write("This is a test")
%>

View Replies View Related

Basic Search

I am having one asp page in which a table is displayed. The table displays the values in textboxes.when the client uses search functionality it searches in the whole page but doesnt search in the table. Can any one tell me about how to search the values contained in textboxes in the table.if possible give me some code

View Replies View Related

Basic Update

However I have a complicated update page so I am going to hand code it. I started by breaking down to the basics of Updating but I keep getting a 'Syntax error in UPDATE statement' error. Can anybody see where I am going wrong?:

<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/Publishing.asp" -->
<% If Request("Submit") <> "" Then %>
<%

set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_Publishing_STRING
Command1.CommandText = "UPDATE Test SET Value = Paul WHERE ID = 2 "
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()

%>
<% End If %>

View Replies View Related

Basic Question

I have two simple problems which I think are related(?) I have a form with the folowing code:

<form method="post" action="sendemail.asp">
and
<input name="submit" type="button" value="SUBMIT">


when I click the submit button it does not go to sendemail,asp I have tried adding the full/parstial path infront of the sendemail.asp but no luck

Similarly I have the following code which I have taken an asp file from another project and changed the name accordingly but the image does not show Code:

View Replies View Related

Basic Authentication

I'm using MSXML2.ServerXMLHTTP to get a web page using an url with basic authentication (e.g. http://user:password@www.mysite.it).

Microsoft denied basic authentication within Internet Explorer URL (see KB 834489) so I'm unable to get the page contents.The client-side workaround is to change some registry settings (see http://support.microsoft.com/kb/834489), anybody can help me with a different solution ?

View Replies View Related

Basic Chat

How to create a basic chat?

View Replies View Related

Another Basic SQL Statement

I've got a field in my database called notes, where they of course are leaving notes for certain orders. I'd like to create a page that lists all orders that have notes left in them but I'm having trouble figuring out what sql statement to use. In my words it needs to say "select everything from the table where notes does not equal null"

I guess I just don't really know what to put for the null part. I'm thinking it'll be somehting like..

SELECT * FROM requests WHERE notes <> ...??? this is what I dont know.

View Replies View Related

Basic SQL Statement

i am trying to pull records using a partial name, here's what i have

PlayerName = "'" & "%" & txtFindPlayer.Text & "%" & "'"
this part works fine, for example text is 'ric'

Set rs = db.OpenRecordset("SELECT * FROM EVENT_SCORING_TBL WHERE PLAYER_NAME LIKE " & PlayerName & "")

no record containing 'ric' is found, but the syntax seems to be ok. Am i using the right wildcards? there is definatly an Eric in the database, but it doesnt pull. any suggestions?

View Replies View Related

Basic Instructions

I'm having some problems to perform select on sql statements just cause I'm really confuse on how to refer some variable I got by request.querystring or request.form or even inside form variables...sometimes just using "var" others using "&var&" others '%"&var&"%'...

Does anyone have an article link or some tips regarding this kind of issue?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved