Click here to Skip to main content
15,906,567 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: delete folder in asp.net 2.0 Pin
trilokharry18-May-08 3:34
trilokharry18-May-08 3:34 
GeneralRe: delete folder in asp.net 2.0 Pin
trilokharry18-May-08 3:52
trilokharry18-May-08 3:52 
GeneralRe: delete folder in asp.net 2.0 Pin
Guffa18-May-08 6:33
Guffa18-May-08 6:33 
GeneralRe: delete folder in asp.net 2.0 Pin
trilokharry18-May-08 19:20
trilokharry18-May-08 19:20 
GeneralRe: delete folder in asp.net 2.0 Pin
Guffa18-May-08 21:10
Guffa18-May-08 21:10 
QuestionMemory limits for in-proc session state Pin
Member 391904917-May-08 23:39
Member 391904917-May-08 23:39 
QuestionProblem with IIS and XMLDataSource Pin
Sagitta17-May-08 22:15
Sagitta17-May-08 22:15 
QuestionProblem with class file Pin
miss nadia17-May-08 21:44
miss nadia17-May-08 21:44 
i got problems with my class file. most of the errors saying that 'Object reference not set to an instance of an object'. it looks like all functions in class file cannot be performed, even i do declare the class at code-behind file. do i have to call the class file in .aspx page? like this <%# Imports ... %>. this is page for CheckOut.aspx.vb.

<pre>
Partial Class Checkout_CheckOut
Inherits System.Web.UI.Page

Private order As Order
Private cust As Customer
Private cart As ShoppingCart

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

cart = Session("cart")

If Session("order") Is Nothing Then
order = New Order(DateTime.Now, Nothing, Session("cart"))
Session("order") = order
Else
order = Session("order")
cart = order.Cart
End If

cust = New Customer(txtEmail.Text, txtLastName.Text, txtFirstName.Text, _
txtAddress.Text, txtCity.Text, txtState.Text, txtPostCode.Text, txtPhone.Text, _
txtEmail.Text)
order.Cust = cust

lblSubtotal.Text = order.SubTotal.ToString("c")
lblShipping.Text = order.Shipping.ToString("c")
lblTotal.Text = order.Total.ToString("c")
End Sub

Protected Sub Wizard1_FinishButtonClick(ByVal sender As Object, ByVal e As _
System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick

' process credit card information here
Dim success As Boolean
success = OrderDB.WriteOrder(order) 'the function WriteOrder from OrderDB class
Session("cart") = Nothing 'can't be performed
Session("order") = Nothing
If success Then
Response.Redirect("Confirmation.aspx")
Else
Response.Redirect("Confirmation.aspx?Error=1")
End If
End Sub

End Class
</pre>
AnswerRe: Problem with class file Pin
doWhileSomething18-May-08 3:04
doWhileSomething18-May-08 3:04 
QuestionHow to: Form post to remote page using code behind? Pin
AndyBrew7017-May-08 21:32
AndyBrew7017-May-08 21:32 
AnswerRe: How to: Form post to remote page using code behind? Pin
doWhileSomething18-May-08 3:25
doWhileSomething18-May-08 3:25 
Questionasp.net Pin
Khadeerasulthana17-May-08 20:33
Khadeerasulthana17-May-08 20:33 
AnswerRe: asp.net Pin
leckey18-May-08 4:37
leckey18-May-08 4:37 
JokeRe: asp.net Pin
Rajesh R Subramanian18-May-08 21:33
professionalRajesh R Subramanian18-May-08 21:33 
GeneralRe: asp.net Pin
leckey19-May-08 2:33
leckey19-May-08 2:33 
QuestionCannot change password for domain member user two times Consecutive Pin
ptvce17-May-08 19:35
ptvce17-May-08 19:35 
AnswerRe: Cannot change password for domain member user two times Consecutive Pin
Peter Josefsson Sweden18-May-08 7:56
Peter Josefsson Sweden18-May-08 7:56 
Questionfile download c# asp.net Pin
irusul17-May-08 14:10
irusul17-May-08 14:10 
AnswerRe: file download c# asp.net Pin
Christian Graus17-May-08 15:29
protectorChristian Graus17-May-08 15:29 
AnswerRe: file download c# asp.net [modified] Pin
MHASSANF17-May-08 18:44
MHASSANF17-May-08 18:44 
QuestionLooking for a SEO-tool Pin
Johan Martensson17-May-08 8:48
Johan Martensson17-May-08 8:48 
Questioncrystal report duplication Pin
accessred17-May-08 2:17
accessred17-May-08 2:17 
QuestionCursor Position in Javascript Pin
rajanandal17-May-08 1:47
rajanandal17-May-08 1:47 
QuestionSub Reports header and footer Pin
M. J. Jaya Chitra17-May-08 0:54
M. J. Jaya Chitra17-May-08 0:54 
Questionhow to download a file from asp.net 2.0 page Pin
vijaylumar17-May-08 0:38
vijaylumar17-May-08 0: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.