Confused about Server side/ client side and which controls to use

M

msnews

Here is what I want to do:

User types in a value. The value is sent as part of the url to another page
and that page opens in a new window on the users machine. I'm a comfortable
with vbscript and vb.net, but I can't seem to figure out which control to
use and when I can write the code in the VS IDE and when I have to do it in
the actual html ( which causes me all sorts of issues) here is some of the
code. Whenever I try to define the value of the text box I get a compile
error that the variable I chose is not declared. Where do I declare it?

The button works, but I can't figure out how to get the value the user
typed in..

Thanks


<%@ 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"><INPUT id="LLUValue" style="Z-INDEX:
105; LEFT: 125px; WIDTH: 231px; POSITION: absolute; TOP: 192px; HEIGHT:
22px"
type="text" size="33"<P>
</FONT></span>
</td>
<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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top