Print Page | Close Window

Fails to Update Profile.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15325
Printed Date: 28 March 2026 at 11:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Fails to Update Profile.
Posted By: davidshq
Subject: Fails to Update Profile.
Date Posted: 01 June 2005 at 2:33pm
I have created a set of textboxes with a submit button, wired to the Button1_Click event. Here is my code:
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim txtNumofGames As New TextBox
        Dim txtNumofAI As New TextBox
        Dim txtNumofSI As New TextBox
        Dim txtNumofII As New TextBox
        Dim txtNumofCG As New TextBox
        Dim txtNumofAO As New TextBox
        Dim txtNumofSO As New TextBox
        Dim txtNumofIO As New TextBox
        Dim txtNumofMG As New TextBox
        Dim txtNumofTricks As New TextBox
        Profile.GamesConfig.NumofGames = txtNumofGames.Text
        Profile.GamesConfig.ActiveInside = txtNumofAI.Text
        Profile.GamesConfig.SemiActiveInside = txtNumofSI.Text
        Profile.GamesConfig.InactiveInside = txtNumofII.Text
        Profile.GamesConfig.ChairGame = txtNumofCG.Text
        Profile.GamesConfig.ActiveOutside = txtNumofAO.Text
        Profile.GamesConfig.SemiActiveOutside = txtNumofSO.Text
        Profile.GamesConfig.InactiveOutside = txtNumofIO.Text
        Profile.GamesConfig.MessyGame = txtNumofMG.Text
        Profile.GamesConfig.Trick = txtNumofTricks.Text
    End Sub
But its not applying the information to the Profile. Any ideas?
David.


-------------
- http://www.davemackey.net/" rel="nofollow - Dave Mackey - Virtual Home.



Replies:
Posted By: Mart
Date Posted: 01 June 2005 at 2:40pm
Remove the


        Dim txtNumofGames As New TextBox
        Dim txtNumofAI As New TextBox
        Dim txtNumofSI As New TextBox
        Dim txtNumofII As New TextBox
        Dim txtNumofCG As New TextBox
        Dim txtNumofAO As New TextBox
        Dim txtNumofSO As New TextBox
        Dim txtNumofIO As New TextBox
        Dim txtNumofMG As New TextBox
        Dim txtNumofTricks As New TextBox

all that does is redeclares the textboxes thus clearing the Text property of them all



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net