473,397 Members | 2,033 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,397 software developers and data experts.

hoto with vb.net retrieve website objects value ?

Hi there,
Have multiple servermachines hosting asp-sites.
Need to collect data on a central "client".(vb.net app)
Have used the webrequest/webrespons classes.
The result was some html/script code but no values.
Problem is that the needed values are sent within a form.
So i need to get for example a value within form "output",
filled in inputbox "blabla".

on serverside the code looks like this:

<body onload="connectRob();"....../>
<form name="output">.............../>
<input style="BORDER-RIGHT: rgb(192,192,192) groove; BORDER-TOP: medium none;
BORDER-LEFT: medium none; BORDER-BOTTOM: rgb(192,192,192) groove; BACKGROUND-COLOR: rgb(255,255,0)"
name="
ModeOp" size="11">
</form>

<script language="JavaScript">
function connectRob() {
var serverRequest;
errorMsg="Could not read variable"
serverURL=RSGetASPObject("<%Response.Write(aspToOC XInter)%>");
serverRequest=serverURL.ConnectRob();
readVar();
}

function readVar() {
serverRequest=serverURL.getVar("$MODE_OP");
if (serverRequest.status==-1 || serverRequest.return_value=="failed") {
document.output.ModeOp.value=errorMsg;
localFailFlag=true;
}
else
document.output.ModeOp.value=serverRequest.return_ value;

}


....................

How do i retrieve the text from "ModeOp" filled in by the servercode ?? From within a vb.net form application... .
Feb 22 '11 #1
0 866

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

Similar topics

0
by: Corrine | last post by:
I am trying to pass a temporary BLOB that I've created in Java, to a PLSQL function that modifies it, and then to retrieve this modified value back to Java, all using JDBC. I can't figure out...
3
by: Li Zhang | last post by:
I know I can use controlName.Value to retrieve the form fields value if I am in that page. But if I am out of the page, for example I am in a HttpModule, I want to retrieve a hidden filed value, Is...
2
by: epigram | last post by:
I'm responding to a button click event on an asp.net web form. I then need to retrieve the value from a TextBox control and I want to compare it against the control's previous value to see if it...
2
by: Hugh | last post by:
Naive developer needs help. how to retrieve a dropdown value inside a formview in VB? Is findcontrol the way to go? Thanks in advance. Hugh
0
by: Sudarsana | last post by:
How to retrieve output parameter value in ASp from Stored Procedure
3
by: Robert Dufour | last post by:
In vb I can retrieve a session variable in a web site as follows. Dim myvar as string MyVar = Session.Item("VarName").ToString But In C# there is no item property to use. How do you retrieve...
1
by: boss1 | last post by:
hi all, i m new in php.i have a problem that is i m using a php form where i can retrieve one field value from one table in oracle db by ajax and its working properly. but i need to insert the...
6
by: cepera | last post by:
Hi guys! How I can retrieve "option value" info from select tag? I am using this code, but it is only let me get "name". I need to pass this value to second select tag. I found this code here:...
1
by: nightwalker | last post by:
hi all, I am trying to retrieve dynamic text value, but I need some helps with my script below. it doesn't get executed. Please help. for (var i =1; i <=3; i++) { ...
6
by: Ahmedhussain | last post by:
Hi, Can any one tell me .. How to retrieve a last value from the database? I tried the last function, but I just got the error. Thanks in advance Regards, Syed Ahmed Hussain
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.