Click here to Skip to main content
15,879,348 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Treeview Population Pin
Gamzun26-Jun-07 21:43
Gamzun26-Jun-07 21:43 
AnswerRe: Treeview Population Pin
sidbaruah26-Jun-07 23:25
sidbaruah26-Jun-07 23:25 
QuestionPlease help on siteMapNode(Web.sitemap) issue Pin
Biju Sam26-Jun-07 18:23
Biju Sam26-Jun-07 18:23 
AnswerRe: Please help on siteMapNode(Web.sitemap) issue Pin
Sathesh Sakthivel26-Jun-07 18:50
Sathesh Sakthivel26-Jun-07 18:50 
Questionmemory leak? Pin
todd.0101110126-Jun-07 15:10
todd.0101110126-Jun-07 15:10 
AnswerRe: memory leak? Pin
RichardGrimmer27-Jun-07 5:48
RichardGrimmer27-Jun-07 5:48 
GeneralRe: memory leak? Pin
todd.0101110127-Jun-07 6:00
todd.0101110127-Jun-07 6:00 
Questioncan't get value from asp.net textbox inside wizard control using vb Pin
JTok5926-Jun-07 12:20
JTok5926-Jun-07 12:20 
I have an asp.net website I am designing using VS2005 standard. It is installed on Win2K3 Enterprise.
In a Wizard Control, I want to take user input from two textboxes, add them together, and then display the results in a label when the user clicks a button.
I am using VB.

Here is an example of what I'm trying to do:

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim TextBoxOne As TextBox = Wizard1.FindControl("TextBox1")
Dim TextBoxTwo As TextBox = Wizard1.FindControl("TextBox2")
Dim LabelOne As Label = Wizard1.FindControl("Label1")
LabelOne.Text = (CDbl(TextBoxOne.Text) + CDbl(TextBoxTwo.Text))
End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Wizard ID="Wizard1" runat="server">
<WizardSteps>
<asp:TemplatedWizardStep ID="Test" runat="server" Title="Test">
<ContentTemplate>
<asp:TextBox ID="TextBox1" Text="0" runat="server"></asp:TextBox><br />
<asp:TextBox ID="TextBox2" Text="0" runat="server"></asp:TextBox><br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /><br />
</ContentTemplate>
</asp:TemplatedWizardStep>
</WizardSteps>
</asp:Wizard>

</div>
</form>
</body>
</html>


Thanks in advance,
JTok59

AnswerRe: can't get value from asp.net textbox inside wizard control using vb Pin
devil8526-Jun-07 12:47
devil8526-Jun-07 12:47 
GeneralRe: can't get value from asp.net textbox inside wizard control using vb Pin
JTok5926-Jun-07 13:13
JTok5926-Jun-07 13:13 
AnswerRe: can't get value from asp.net textbox inside wizard control using vb Pin
devil8526-Jun-07 13:01
devil8526-Jun-07 13:01 
GeneralRe: can't get value from asp.net textbox inside wizard control using vb Pin
JTok5926-Jun-07 13:21
JTok5926-Jun-07 13:21 
QuestionURGENT: Cannot access vars from code behind file (with code) Pin
devil8526-Jun-07 10:50
devil8526-Jun-07 10:50 
AnswerRe: URGENT: Cannot access vars from code behind file (with code) Pin
Christian Graus26-Jun-07 11:08
protectorChristian Graus26-Jun-07 11:08 
GeneralRe: URGENT: Cannot access vars from code behind file (with code) Pin
devil8526-Jun-07 11:29
devil8526-Jun-07 11:29 
GeneralRe: URGENT: Cannot access vars from code behind file (with code) Pin
Christian Graus26-Jun-07 12:27
protectorChristian Graus26-Jun-07 12:27 
QuestionRe: URGENT: Cannot access vars from code behind file (with code) Pin
devil8526-Jun-07 12:45
devil8526-Jun-07 12:45 
AnswerRe: URGENT: Cannot access vars from code behind file (with code) Pin
devil8526-Jun-07 12:58
devil8526-Jun-07 12:58 
QuestionButtons and plaintext in DataGrid column? Pin
dwreck_stg26-Jun-07 10:47
dwreck_stg26-Jun-07 10:47 
AnswerRe: Buttons and plaintext in DataGrid column? Pin
Steve Echols26-Jun-07 17:47
Steve Echols26-Jun-07 17:47 
QuestionRegular Expression Pin
VK-Cadec26-Jun-07 10:01
VK-Cadec26-Jun-07 10:01 
AnswerRe: Regular Expression Pin
Ed.Poore26-Jun-07 10:37
Ed.Poore26-Jun-07 10:37 
GeneralRe: Regular Expression Pin
VK-Cadec27-Jun-07 1:15
VK-Cadec27-Jun-07 1:15 
QuestionLocal Client printin using .net Pin
jeguzmanv26-Jun-07 9:01
jeguzmanv26-Jun-07 9:01 
AnswerRe: Local Client printin using .net Pin
Ed.Poore26-Jun-07 10:38
Ed.Poore26-Jun-07 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.