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

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

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>


Nov 19 '05 #1
0 1080

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

Similar topics

4
by: Marcel Brekelmans | last post by:
Hi, This is my situation: My ISP doesn't allow me the execute server-code. So, no ASP or otherwise.As a small compensation, they run some CGI scripts that we can use. With one of these...
1
by: yaya coco | last post by:
I want to use button. My question is that How can use server side and client site event at the same time. That is: I want to use button : when The user click the button first of all, client...
0
by: Anthony W DiGrigoli | last post by:
I have two ASP.NET Server Side buttons that perform action on both the Server and Client side. Here is the break down of code placement: 1. Server-Side Load: Contains an Add Attribute for a...
2
by: Eitan | last post by:
Helo, I need to link the aspx page to a general vbscript (run on the server side). The code has the line : <%@ page language="vb" autowventWireUp="false" codeBehind="myasp.aspx.vb" inherits...
0
by: brianpmccullough | last post by:
Hello, Anyone ever implemented a solution that allows you to track the total page request time in and ASP.NET page? The time would need to include the server processing time and client side...
10
by: Lyners | last post by:
Hello all, I have an ASP.NET website where one of my pages contain javascript that is a check to see if anydata within a datagrid has changed. My problem is that it takes a considerable amount of...
0
by: pradeepjaladi | last post by:
Hi All, I required a simple example, which can uploades the file from client side and server side code which saves in the destination folder.
1
idsanjeev
by: idsanjeev | last post by:
Hello What is server and client side code. where can use server side code and where client side Thanks
3
by: malathib | last post by:
Hi, In my web application, in one of the screen when the user clicks on one link, it has to open a folder that was located in server in client side.
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.