473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

calling Remote Desktop on click of link from .aspx page

AnuSumesh
Hi,

I am using following code for calling terminal services on page load.

<html>
<head><title>
Untitled Page
</title>
</head>
<body id="ctl00_Pagebody">

<form name="aspnetForm" method="post" action="rdptry.aspx" id="aspnetForm">
<div id="ContentArea" class="ContentArea">

<div id="ctl00_ContentPlaceHolder1_Panel1" style="height:75%;width:100%;overflow:auto;">
<div id="ctl00_ContentPlaceHolder1_connectArea"><center ><object id="MsRdpClient" name="MsRdpClient" classid="clsid:7584c670-2274-4efb-b00b-d6aaba6d3850" codebase="msrdp.cab#version=5,2,3790,1830" runat="server" width="540" height="400"></object></center></div>
<script type="text/VBscript" language="VBscript" runat="server">
Sub MsRdpClient_OnDisconnected(disconnectCode)
history.go(-1)
End Sub
</script><script type="text/VBscript" language="VBscript" runat="server">
Sub RdpConnect()
MsRdpClient.Server="server"
MsRdpClient.Domain=""
MsRdpClient.UserName="anu"
MsRdpClient.AdvancedSettings2.ClearTextpassword="p wd"
MsRdpClient.FullScreen=0
MsRdpClient.Width="540"
MsRdpClient.Height="400"
MsRdpClient.DesktopWidth="540"
MsRdpClient.DesktopHeight="400"
MsRdpClient.AdvancedSettings2.RedirectDrives=0
MsRdpClient.AdvancedSettings2.RedirectPrinters=1
MsRdpClient.AdvancedSettings2.RedirectPorts=0
MsRdpClient.AdvancedSettings2.RedirectSmartCards=0
if (MsRdpClient.SecuredSettingsEnabled) Then
MsRdpClient.SecuredSettings.StartProgram=""
End If
MsRdpClient.FullScreenTitle="172.20.31.118"
MsRdpClient.Connect()
End Sub
</script>
<script type='text/VBscript' language='VBScript'>
call RdpConnect
</script>
</div>
</div>
</div>
</form>
</body>
</html>


It is giving error: Object required 'MsrdpClient '.

But when I am deifning <OBJECT> tag before the <Form> tag, then it is working fine.
I am using Master page concept here 'n' thus i want to call rdp inside the contentplaceholder so that RDP will open within the space provided.

If i am using outside contentplaceholder, then i m losing my main page.

What can be the proble,?

Why <form> tag creating problem?
Can anyone help me?

Thanks in advance.
Regards,
Anu
Mar 3 '08 #1
0 2474

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: JonBoy | last post by:
As some of you may know from my previous posts I am trying to set up an internet page on our intranet that contains logoff/shutdown and restart buttons. This needs to work in a remote desktop...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
2
by: Don Dodge | last post by:
Hello, a while ago (probably late 2004), an IT person of a client pointed to a download on MSDN (I believe, it was definitely MS). This downloaded enhanced the administrative tools Remote Desktop...
8
by: matt | last post by:
hello, i work on a private enterprise intranet. we now have a business need for opening other desktop applications, from my web app's click events. (my application is not entirely complete, so...
10
by: cleo | last post by:
I am migrating from VB6/Access to Visual Basic and SQL Express. I have success writing test code on my local machine and am now setting up tests for deployment to a server. I have installed SQL...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
4
by: JDS | last post by:
I am a newbie to asp.net but have done traditional vb, asp and vb.net - please forgive any dumb questions! As a test I have a very simple page (Default.aspx) with a single button which then...
6
by: Bob Altman | last post by:
Hi all, This is a long shot, but I figure it doesn't hurt to ask... I have some applications that work fine when I run them on my PC at work, but "fail to initialize (0x000005)" when I'm...
1
by: Keland | last post by:
I am useing XP pro. Since installing dotnet 3.5 and SP3 I get a error message when I try to connect to my office useing remote desktop. The e/m is Terminal Services Active X control...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.