Passing Parameters To Or Invoking A Method Of An Activex Control In Asp
I wrote a simple client/server chat program and the client runs as an
activex control within an asp page. I have the users logging into
the page using widows authentication and I'm using
Request.ServerVariables("AUTH_USER") to get the users name. I'd like
to pass this name to the activex chat client thru the page but I'm
having some difficulty. I tried passing it as a parameter to the
"Tag" property within the <OBJECT> element like this:
<%
username=Request.ServerVariables("AUTH_USER")
username=right(username,len(username)-instr(1,username,""))
' remove the domain or machine name from the username
Response.Write "<PARAM NAME=" & chr(34) & "Tag" & chr(34) & " VALUE="
& chr(34) & username & chr(34) & ">"
%>
When I do this the ActiveX control doesn't appear on the page. Is
there a better way to do this? I also tried creating a public sub in
the activex control and calling it as a method from within the page
but I can't seem to get the syntax right. I keep getting "Object
Required" errors.
View Replies
ADVERTISEMENT
I understand that with IIS5.1 on Windows XP Professional SP1, I can
1) Either set under IIS Manager-> Any specific Virtual Directory->
Configuration->Options->ASP Script timeout for all pages within that
directory OR
2) Within a specific page, set the timeout as per
http://www.microsoft.com/windows200...sp/vbob246s.htm
e.g. <% Server.ScriptTimeout = 1 %>
and that the value in 2 cannot be less than that of 1
What I am doing from an ASP page is as follows: Code:
View Replies
View Related
I want to write an activex control. This actiovex comntrol will be a simple drop down and when i select a value from this drop down the value in another drop down will be fill up based on this value with page refreshing.I have no idea how to develop such type of activex control.
View Replies
View Related
I have one Activex Control which i want to use over the network. In that i am having one module and one user control. For this i prepared the ocx file and made a package. But when i am trying to deploy that file it gives me error no. 80042114
how to use the activex control over the network.
View Replies
View Related
I have a custom ActiveX Control that is working fine with ASP in IIS
5.1 on WinXP.
But the same ASP page is failing in Server.CreateObject of that ActiveX
Control in IIS 6.0 on Win Server 2003. Do i need to change any
configuration on my IIS 6.0
View Replies
View Related
I created a VB6 ActiveX control, created the CAB file using "Package &
Deployment Wizard", sign the CAB file with Verisign, and copy the CAB file
to a website.
I am able to download older CAB files, but recent CAB file that I created I
can not download them. It prompts me to download the control, and I said yes
to download, but it did not get downloaded. I un-register MSVBVM60.DLL and
rename the file, but when downloading the CAB file, it did not prompt me to
download the VBRUN60.CAB. What can I check to see whey the control did not
get downloaded ?
View Replies
View Related
Is there anyway to detect the ActiveX control is able to run on the browser or not. After I installed the ActiveX control to my system, user sometimes switch
the secruity setting to "not able to run ActiveX control". So, the ActiveX
control just show on the broswer, but not able to run it.
I want to find a way to detect it. And prompt the user a message telling
that the ActiveX control is not able to run.
View Replies
View Related
I have an ActiveX control in my web page that I tried to access using intranet.i have implemented IObjectSafety in the ActiveX control, and when I created the CAB file using VB Pakage and Deployment Wizard, under "Safety Settings" I selected "Yes" for "Safe for Scripting" and "Yes" for "Safe for Initialization". I also have signed the CAB file.
In IE, the option 'Script ActiveX controls marked Safe for Scripting' is already set to 'Enable' (I use Security setting "Medium-Low"). I get a warning message 'An ActiveX control might be unsafe to interact with other parts of the page. Do you want to allow this interaction? Why do I still get the prompt when I go to the web page ?
View Replies
View Related
Could any one tell me hoe to embed a VB ActiveX control in ASP
View Replies
View Related
I need to write an ActiveX control, in VB6, that will be embedded in an IE-6 browser. I'm looking for a good tutorial and links to documentation, to make this as painless as possible.
View Replies
View Related
I seem to have run into two documented bugs whose workarounds are
incompatible. What I have is an OCX written in VB 6 that has a few classes
in it. Many of the methods of the OCX are used by ASP, and so far have
worked fine.
I recently added a COM object reference to the DLL which consists of an SMTP
client dll that is wrapped up in dual interface activeX control (written in
VC++ 6).
When I try to create an instance of this new control, the compiler
complains.
Dim smtpClient As myClass.myClient
Set smtpClient = New SEACOMSMTPLib.SeaSMTPObj
When I try to compile this, I get an error on the first line of code that
accesses a method of the object: Code:
View Replies
View Related
How do I tell if an ActiveX control is installed (and working)?
View Replies
View Related
How could I use POST method to transfer parameters with XMLHTTP?
With GET all works correct, but with POST I get a problem.
client.asp with GET - all works .....
View Replies
View Related
I have a problem with input parameter which has Decimal DataType. Stored procedure (SQL 2000) works but it rounds all
values off, i.e 5.555 input becomes 6 and 1.3 input becomes 1.
In table QTY has data type decimal(5) - precision(8) scale(3).
Please, suggest what's wrong with this:
newqty = Request.Form("quantity")
..........
cmd.Parameters.Append(cmd.CreateParameter("qty", adDecimal, adParamInput, 5, newqty))
cmd.Parameters("qty").Precision = 8
cmd.Parameters("qty").NumericScale = 3
View Replies
View Related
I'm building my asp page using a table. Part of building that table includes:
......
Response.Write("<td>" & rsi.fields(3).value & "</td>")
Response.Write("<td><input type=button value=""Remove"" name=RemoveButton onclick=""RemoveAgent();""></td></tr>")
......
......
My problem is that my table has multiple records each line has a Remove button at the end. I need to pass rsi.fields(0).value to the RemoveAgent routine when the button is pressed.
I thought that my onclick event would become........onclick=""RemoveAgent(rsi.fields(0).value) ;.......
but I receive a syntax error. Thinking about it it's a bit more complex than that in any case because at the point of clicking the button, I am not sitting on the correct record within the recordset since I am sitting at the eof after creating the table
View Replies
View Related
I want to pass parameters via response.redirect.
After a search on google, I have seen various types and i am getting confused on the best way to do it.Can someone let me know if i can do it the same way a href?
View Replies
View Related
is it possible to pass parameters in html like in asp.... products.asp?cat=3
.... what i want to do is when i click on a html link, it opens up news.html,
and then opens up a particular news article in an iframe on that page.
View Replies
View Related
Is there code that I can use to 'repeat' code.For example:I have a form that has about 30 fields on it. I then submit it to anotherform that has about 20 fields on it. I then submit the second form to a third and so on. During this process, I pass all of the fileds as Hidden Fields. My code has over 200 hidden fileds in it and sometimes they get mis-spelled or somthing. I thought that I saw something that you can tell the page to 'repeat' certain code for all parameters on the page by using a FOR EACH command.
View Replies
View Related
I have some troubles with the correct syntax, hope to get some help. This is the intention. This is the code I'd like to use.
strSql = "Select * from ta where ta_nr = %artnr%"
<!-- include file = "%artnr% & .asp"-->
View Replies
View Related
Need some help passing parameters
address = Info_RS("Address")
city = Info_RS("City")
st = Info_RS("State")
zip = Info_Rs("Zip")
<a href="address.asp?param1=Address¶m2=city¶m3=st¶m4=zip">Address Change </a>
It will not pass.. it just passes the text.
View Replies
View Related
Is there a way to pass a URL parameter from a previous page to the next page (without clicking a hyperlink)?
There are 3 pages. user_edit.asp, user_delete.asp, user_delete2.asp. I want to pass the customer_id parameter from user_edit.asp via a hyperlink to user_delete.asp and then after some asp manipulation I want to pass the existing customer_id parameter to the user_delete2.asp page (or again to user_delete.asp) without the user doing anything (such as accessing a hyperlink).
View Replies
View Related
I am running into an issue when I try to write more than 1024 characters to
a memo field. Apparantly the odbc connection I am using does not permit
literals to be larger that 1024 characters. This Memo filed can take
virtually infinate data, so the solution seems to be use parameters. My
problem is I have never heard of this and need this to work ASAP Does
anyone have a simple example of how Parameters work using ASP
View Replies
View Related
I have several parameters that I need to pass into a stored procedure. Each parameter holds a comma delimited list.
I tried splitting the parameters and executing the stored procedure doing the following:
Dim CmtIdLoop
CmtIdLoop = Split(Request.Form("commentsID"),", ")
revwStatLoop = Split(Request.Form("review_status"),", ")
abrstatLoop = Split(Request.Form("abr_status"),", ")
commentsLoop = Split(Request.Form("comments"),", ")
For l = 0 to Ubound(CmtIdLoop)
s = CmtIdLoop(l)
t = revwStatLoop
u = abrstatLoop
v = commentsLoop .....
View Replies
View Related
I was just wondering if it's possible to do this type of action, the way i currently have it layed out, the system does not recognise the id variable?
IF NOT Recordset.EOF THEN
'Record Found
id=Recordset.Fields("Survey_Id")
%>
<!--#include file="quiz.asp?id=<%=id%>" -->
<%
ELSE
Response.Write("No survey found.")
END IF
View Replies
View Related
I am trying to do any better than this and am losing my confidence daily as I pressumed this to be easy and I am sure once I have done it I will wonder what all the fuss was about!
My experience with ASP is limited to one Degree module and I am trying to build a prototype web site. I need pointing in the right direction to what I presume is a common ASP requirement - a ‘second level of user enquiry’. Code:
View Replies
View Related
i have a folder Services and this folder has index.asp file. i need to put a link in email specific to the user. i can do:
www.myweb.com/Services/index.asp?parm1=1&parm2=2
How i can do this same very thins as
www.myweb.com/Services?parm1=1&parm2=2
as the default file name is index.asp so it will get executed if i put www.myweb.com/Services in the URL Address box. Here when i try to pass parametrs to the folder, this results in page not found.
View Replies
View Related
I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in my machine), I have no problem, except the page prompted me with "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"
But, when I run the ASP page on another machine (even though the other machine is also a development machine that already has the ActiveX control and I set the Security for Intranet to "Low"), it did not prompt me the above message, and I got an error when accesing any method of the AX control (e.g Object doesn't support this property or method 'myAXControl.method').
Is this because I have to create a CAB file and mark the AX control as safe for scripting ?To create a CAB file for this AX control, do I need to create my own VB AX
Control project that contains this control and then create a cab file for this VB project ?
View Replies
View Related
how to pass variable using a url?let say i have a page contain a variable Variable, so when i want to pass the variable using url i shd using what code?thx a million.
View Replies
View Related
I need to pass a static parameter to an included ASP file. I'm thinking about using this with a query string, but upon reflection I'm not sure how I can do this. For example:
---file start: FIRST.ASP ------
<%
Server.Execute("second.asp?a=1")
%>
<!--- ***** or ***** --->
<!-- #include file="second.asp?a=2" -->
-----file end: FIRST.ASP --------------
Now, if I do a Request.QueryString("a") in second.asp, is it performing a query on FIRST.ASP then? How can I retrieve the parameter?
View Replies
View Related
I would like to be able to control an asp text box control's name attribute.
I know i can manually type the whole string
<input type="text" name="username" value="" />
but then i can't use the validation control on the inputs. [free javascript ]
PHP Code:
View Replies
View Related
Is there a way I can make my server's 404 page display even when a correct page is requested?
Here's what I'm doing: on a certain page, the requestor's IP number is checked. If the number is an intranet number (192.168.x.x or 10.x.x.x), then the user is allowed to see the page. Otherwise, I want the 404 page to appear, as if the page doesn't even exist.
It's just one security measure I'm implementing.
View Replies
View Related
Does any one know a way how to use a visual basic 6 written activex .DLL
without registering it with classic .ASP?Reason why my hosting is charging me for registering .DLL.
View Replies
View Related
how can I create a simple non-UI dll or component which will be used by MS Access and .ASP apps which I can build with Visual C++ .net? An example or template which would allow me to paste in C code without learning all the C++ details would be perfect.
View Replies
View Related