Click here to Skip to main content
15,891,513 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to export PDF Data to excel sheet by using .Net Pin
Yusuf20-Apr-09 7:54
Yusuf20-Apr-09 7:54 
GeneralRe: How to export PDF Data to excel sheet by using .Net Pin
mohanchandra20-Apr-09 8:27
mohanchandra20-Apr-09 8:27 
GeneralRe: How to export PDF Data to excel sheet by using .Net Pin
MidwestLimey20-Apr-09 8:39
professionalMidwestLimey20-Apr-09 8:39 
GeneralRe: How to export PDF Data to excel sheet by using .Net Pin
Yusuf20-Apr-09 9:14
Yusuf20-Apr-09 9:14 
AnswerRe: How to export PDF Data to excel sheet by using .Net Pin
Christian Graus20-Apr-09 11:21
protectorChristian Graus20-Apr-09 11:21 
QuestionAdd on firefox Pin
ngvhia20-Apr-09 7:40
ngvhia20-Apr-09 7:40 
AnswerRe: Add on firefox Pin
Yusuf20-Apr-09 7:55
Yusuf20-Apr-09 7:55 
QuestionPass Server attribute to MsRdpClient from query String? Pin
cknight72520-Apr-09 7:12
cknight72520-Apr-09 7:12 
I'm trying to populate the Server attribute of a very simple MsRdpClient implementation from values in a query string but I'm having trouble.

Ideally the intent here is to simply have my application call this one page for RDP connections to all windows servers.

Sample URL: http://localhost/rdp.aspx?svr=192.168.1.112


<html>
<title>RDP Session</title>
<head>
<script language="vbscript">
sub BtnConnect
  Dim goToServer

  goToServer = Request.QueryString("svr")
  connectedTo.innerhtml=goToServer

  MsRdpClient.server = goToServer

  MsRdpClient.FullScreen = FALSE
  MsRdpClient.Width = "800"
  MsRdpClient.Height = "600"

  'These 2 do not work from the activeX control

  'MsRdpClient.AdvancedSettings2.DisplayConnectionBar = FALSE
  'MsRdpClient.AdvancedSettings2.PinConnectionBar = TRUE

  'Device redirection options

  MsRdpClient.AdvancedSettings2.RedirectDrives = TRUE
  MsRdpClient.AdvancedSettings2.RedirectPrinters = TRUE
  MsRdpClient.AdvancedSettings2.RedirectPorts = FALSE
  MsRdpClient.AdvancedSettings2.RedirectSmartCards = FALSE

  'Connect
  MsRdpClient.Connect
end sub

sub MsRdpClient_OnDisconnected(disconnectCode)
  'goback to the page that called this one
  history.go(-1)
end sub
</script>
</head>
<body>
...
<object language="vbscript" id="MsRdpClient" onreadystatechange="BtnConnect">
        codebase="msrdp.cab#version=5,1,2600,1050" 
	classid="CLSID:9059f30f-4eb1-4bd2-9fdc-36f43a218f4a">
</object>
...
</body>
</html>


Basically if there is anything in the query string its ignored and the page won't load. Here's a sample screencap - http://img408.imageshack.us/img408/8278/tsclient.png If I remove the query string and just call rdp.aspx directly, it opens an RDP session to my webserver just fine -- so I know the OCX is working correctly.
QuestionAdding new column and fill with computed data to an EXISTING datagriview Pin
Massoud1234520-Apr-09 6:40
Massoud1234520-Apr-09 6:40 
Questioncreating instance Pin
AndyInUK20-Apr-09 6:05
AndyInUK20-Apr-09 6:05 
AnswerRe: creating instance Pin
ToddHileHoffer20-Apr-09 6:35
ToddHileHoffer20-Apr-09 6:35 
GeneralRe: creating instance Pin
AndyInUK20-Apr-09 23:32
AndyInUK20-Apr-09 23:32 
GeneralRe: creating instance Pin
ToddHileHoffer21-Apr-09 3:13
ToddHileHoffer21-Apr-09 3:13 
Questiontree View! vs 2008 c# Pin
Learner52020-Apr-09 4:44
Learner52020-Apr-09 4:44 
AnswerRe: tree View! vs 2008 c# Pin
ToddHileHoffer20-Apr-09 6:38
ToddHileHoffer20-Apr-09 6:38 
QuestionAjaxControlToolkit:TabContainer Pin
ksarchana20-Apr-09 4:37
ksarchana20-Apr-09 4:37 
AnswerRe: AjaxControlToolkit:TabContainer Pin
Alok Sharma ji20-Apr-09 17:09
Alok Sharma ji20-Apr-09 17:09 
Questionhow to assign "null" to an Integer Field Pin
janani1320-Apr-09 4:22
janani1320-Apr-09 4:22 
AnswerRe: how to assign "null" to an Integer Field Pin
Colin Angus Mackay20-Apr-09 4:30
Colin Angus Mackay20-Apr-09 4:30 
QuestionProblem with setting focus in gridview Pin
janani1320-Apr-09 3:32
janani1320-Apr-09 3:32 
QuestionHi all !!! FreeTextBox not Suppoted by Safari Browser [modified] Pin
Hemalatha.A.M.20-Apr-09 3:29
Hemalatha.A.M.20-Apr-09 3:29 
QuestionProblem with a grid view control Pin
dino_ben20-Apr-09 2:44
dino_ben20-Apr-09 2:44 
AnswerRe: Problem with a grid view control Pin
Herman<T>.Instance20-Apr-09 3:04
Herman<T>.Instance20-Apr-09 3:04 
QuestionFragment Caching Pin
skarthick20-Apr-09 0:26
skarthick20-Apr-09 0:26 
QuestionHow to send Mail through SMTP?? Pin
archit300020-Apr-09 0:14
archit300020-Apr-09 0:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.