|
|
 |
BOOK: Beginning ASP.NET 1.0  | This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 1.0 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

February 11th, 2005, 12:49 PM
|
|
Registered User
|
|
Join Date: Feb 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Problem with Exercise in Beg. asp.net for VB.net!
Beginning ASP.NET with Visual Basic.Net
Chapter 7, page 254, exercise 4. How do I do this? I understand how
to make it return info on the same page, but how do I get it to generate a new page, with a new button?
Can I get any source code for this? It is really stumping me...
Thanks for any help you can give me!
|

October 23rd, 2005, 01:06 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: doha, , Qatar.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
This code includes Exer4 and Exer5 together:
<script language=" vb" runat="server">
Sub Connect(Sender As Object, E As EventArgs)
Select Case txtcall.Text
Case "4581245"
Message.Text = "You are calling Home...."
Case "5662653"
Message.Text = "You are calling Nasrin...."
Case "5703612"
Message.Text = "You are calling Arash...."
Case Else
Message.Text = "You are calling " & txtcall.Text & "..."
End Select
btnDisconnect.Visible = True
End Sub
Sub Disconnect(Sender As Object, E As EventArgs)
txtcall.Text = ""
Message.Text = ""
btnDisconnect.Visible = False
End Sub
</script>
<html>
<head><title>Calling Software</title></head>
<body>
<asp:label id="Message" runat="server" /><br />
<form runat="server">
<h4>Please enter the number you wish to call:</h4>
<asp:textbox id="txtcall" runat="server" /><br /><br />
<asp:Button id="btnConnect" Onclick="Connect" text="Connect" runat="server" />
<asp:Button id="btnDisconnect" text="Disconnect" Onclick="Disconnect" visible=False runat="server" />
</form>
</body>
</html>
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |