DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 09:30:02 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webcontrols        back       

Thread Index
  1    TdarTdar


wizard and Final step   
When i click the finish button I then want it to post all the data collected 
to the database to a stored procedure using a sqlcommand and executenonquery. 
However during when the sub wizard1_FinishButtonClick is called it clears my 
Dim'd varaibles. what gives.

code behind sample:(reduced to what is needed to show you)

Partial Class ACCOUNT_WantlistNet_Default
    Inherits System.Web.UI.Page

    Dim dbpostFirst As String, dbpostLast As StringHello, 

Protected Sub Wizard1_NextButtonClick...
i'if wizard step finish 
        If Me.txtFirstName.Text = "" Then
            dbpostFirst = "noname"
            dbpostLast = "noname"
        Else
'set value from prevous wizard step and show on finish page

            dbpostFirst = Me.txtFirstName.Text.ToString
            Me.lblNameValue.Text = Me.txtFirstName.Text.ToString 
            Me.lblNameValue.Visible = True

        End If
end sub


 Protected Sub Wizard1_FinishButtonClick ..

 PutWantlist.CommandType = CommandType.StoredProcedure
 PutWantlist.CommandText = "DJP_ACCOUNT_WANTLISTNET_PutWantlist"
 PutWantlist.Connection = SqlConnection1

        PutWantlist.Parameters.Add("@first", SqlDbType.NVarChar, 20).Value = 
dbpostFirst.ToString  ' gives me null :(

end sub

end class
    

So how can I do this, I figure there is something that clears the data on 
finish step 
causing the passed info to be invalid

Tdar
Date:Tue, 14 Aug 2007 09:30:02 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us