473,387 Members | 1,536 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,387 software developers and data experts.

Get value of a textbox and use it in vbsciprt

I need to read the value typed into a textbox (textbox.txt) and then use it
in some code that looks like this:

Sub Button3_OnClick
on error resume next
dim CompName Compuser = document.frmMain.LLUValue.value ' (this doesn't
work. Can't get http text box to work)
window.open "/SMSReporting/Report.asp?ReportID=12&variable=" & CompUser
End Sub

I need to use the vbscript because I have to open a new page, which I don't
think is possible with the server side controls and I can't find a way to
use the document method to read the asp.net object.
Thanks.

Here is the whole page

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="remote.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="VBScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<BODY ms_positioning="GridLayout">
<table cellSpacing="0" cellPadding="0" width="100%" bgColor="#d6ecd8"
border="0">
<tr>
<td vAlign="middle" align="center" bgColor="#a0a0a0" colSpan="4"
height="20"><font face="Verdana, Arial" color="#ffffff" size="1"><b>SMS
2003 Remote Control</b></font>
</td>
</tr>
<tr bgColor="#a8d7b3">
<td vAlign="middle" noWrap height="20"><font face="Verdana, Arial"
size="1"><b>&nbsp;&nbsp;&nbsp;&nbsp;</b></font></SPAN>
</td>
</tr>
</table>
<form id="Form1" method="post" runat="server">
<asp:button id="Button2" style="Z-INDEX: 101; LEFT: 123px; POSITION:
absolute; TOP: 124px" runat="server"
Text="RemoteControl"></asp:button>
<asp:textbox id="TextBox1" style="Z-INDEX: 102; LEFT: 120px; POSITION:
absolute; TOP: 76px" runat="server"
Height="25px" Width="237px"></asp:textbox><asp:label id="Label1"
style="Z-INDEX: 103; LEFT: 380px; POSITION: absolute; TOP: 80px"
runat="server"
Width="84px" Height="23px"
Font-Bold="True">MachineName</asp:label></form>
<td vAlign="top" width="697" colSpan="2" height="11"><span
class="blacktext"><FONT size="2">
<P><INPUT id="button3" style="Z-INDEX: 104; LEFT: 129px; WIDTH: 126px;
POSITION: absolute; TOP: 232px; HEIGHT: 24px"
type="button" value="Button">&nbsp;&nbsp;&nbsp;
<asp:TextBox id="TextBox2" style="Z-INDEX: 105; LEFT: 125px; POSITION:
absolute; TOP: 192px"
runat="server" Width="222px"></asp:TextBox>
</FONT></span>
</td>
<tr>
<td width="452"></td>
</tr>
<tr>
<SCRIPT language="VBScript">
Sub Button3_OnClick
on error resume next
dim CompName
Compuser = document.frmMain.LLUValue.value
window.open "/SMSReporting/Report.asp?ReportID=12&variable=" & CompUser

End Sub
</SCRIPT>
</P>
</BODY>
</HTML>

Nov 19 '05 #1
0 1128

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dskillingstad | last post by:
I'm trying to assign a custom value to a textbox. Here's what I have. I've created a module and "default value" code for a textbox which generates a custom auto-number (yyyy-0000) when a New...
1
by: Martin | last post by:
Dear Group Sorry for bothering you again but I need expert advice on this. I have placed a HTML textbox on my aspx form and converted it to run as a server control. At some point in my code I...
2
by: jason | last post by:
Pardon my ignorance on this. The below code works, except, when I edit a record and update the two drop downs take the first entry in the dropdownlist if not selected. I'd also like the dropdown to...
3
by: Justin Morris via DotNetMonster.com | last post by:
<asp:TextBox ID="TextBox1" runat="server" value='<%=Server.HtmlEncode (Request.Cookies("Username")("Username"))%>'/> <input name="Password" type="text" id="Password" value='<%...
0
by: d.steininger | last post by:
Hi there! Is there a way to bind a Textbox.Text to a ScrollBar.Value (not the Textbox-own Scrollbar) and vice versa? The Problem: I have to deal with two controls. The Textbox should accept...
2
by: simon | last post by:
hello, new to vb.net, have a few questions about DataGrid. I have a dataGrid that is working pulling a dataset back from a stored proc and binding to the datagrid for display the datagrid's...
5
by: gabba | last post by:
Hi, 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
3
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one...
4
by: justice750 | last post by:
Hi All, I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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...

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.