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

Discussion in 'ASP .Net' started by msnews, May 27, 2005.

  1. msnews

    msnews Guest

    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>
    msnews, May 27, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Azmarae
    Replies:
    1
    Views:
    534
    Carlos Campos
    Mar 3, 2004
  2. aa
    Replies:
    1
    Views:
    328
    Joaquin Corchero
    Mar 8, 2005
  3. Jake
    Replies:
    2
    Views:
    400
    Steve C. Orr [MVP, MCSD]
    Aug 17, 2005
  4. Erland
    Replies:
    0
    Views:
    335
    Erland
    Sep 6, 2006
  5. Zoe Hart
    Replies:
    1
    Views:
    355
    Scott Wisniewski
    Jan 8, 2004
Loading...

Share This Page