Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / October 2006

Tip: Looking for answers? Try searching our database.

Write to TextBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 19 Oct 2006 19:09 GMT
Hi,

I am new to JScript .NET.

Can anybody recommend a good book on Jscript .NET?

The question I have right now is how to update a textbox in my web page.

The function is as the following:

<script language="javascript" type="text/javascript">
// <!CDATA[
function myButton_onclick()
{
   //myText is Input(Text) and myButton is Input(Button)
   myText.value = “Thank you very much!”;
}
// ]]>
</script>

Thanks.
Martin Honnen - 21 Oct 2006 14:28 GMT
> I am new to JScript .NET.
>
> Can anybody recommend a good book on Jscript .NET?

JScript.NET does not have much support in terms of books, articles, and
tools (IDE support) compared to other main .NET languages like C# or VB.NET.

> The question I have right now is how to update a textbox in my web page.
>
[quoted text clipped - 9 lines]
> // ]]>
> </script>

That above is client-side JavaScript and not JScript.NET. If you want to
use JScript.NET on the server in ASP.NET then a simple example looks like

<%@ Page Language="JScript"%>
<script runat="server">
function Button1_Click (sender: Object, e: EventArgs) : void {
  Text1.Text = "Kibology for all";
}
</script>
<html lang="en">
<head>
<title>JScript.NET example</title>
</head>
<body>
<form runat="server">
<asp:button id="Button1" runat="server" text="test button"
onclick="Button1_Click"></asp:button>
<asp:textbox id="Text1" runat="server"/>
</form>
</body>
</html>

See the ASP.NET 1.x quick start samples online where you can select to
see examples in JScript.NET:
<http://samples.gotdotnet.com/quickstart/aspplus/>

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.