Click here to Skip to main content
15,913,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionInteger texbox in asp.net Pin
way2arun14-Jan-09 21:02
way2arun14-Jan-09 21:02 
AnswerRe: Integer texbox in asp.net Pin
N a v a n e e t h14-Jan-09 21:08
N a v a n e e t h14-Jan-09 21:08 
AnswerRe: Integer texbox in asp.net Pin
SeMartens14-Jan-09 21:10
SeMartens14-Jan-09 21:10 
GeneralRe: Integer texbox in asp.net Pin
way2arun14-Jan-09 21:23
way2arun14-Jan-09 21:23 
GeneralRe: Integer texbox in asp.net Pin
SeMartens14-Jan-09 21:28
SeMartens14-Jan-09 21:28 
AnswerRe: Integer texbox in asp.net Pin
Aman Bhullar14-Jan-09 23:16
Aman Bhullar14-Jan-09 23:16 
QuestionContext.User.Identity.Name Pin
jonhbt14-Jan-09 20:23
jonhbt14-Jan-09 20:23 
QuestionSession in Hyperlink? Pin
saberbladez14-Jan-09 20:05
saberbladez14-Jan-09 20:05 
AnswerRe: Session in Hyperlink? Pin
Abhijit Jana14-Jan-09 20:44
professionalAbhijit Jana14-Jan-09 20:44 
GeneralRe: Session in Hyperlink? Pin
N a v a n e e t h14-Jan-09 20:51
N a v a n e e t h14-Jan-09 20:51 
GeneralRe: Session in Hyperlink? Pin
Abhijit Jana14-Jan-09 21:15
professionalAbhijit Jana14-Jan-09 21:15 
AnswerRe: Session in Hyperlink? Pin
N a v a n e e t h14-Jan-09 20:51
N a v a n e e t h14-Jan-09 20:51 
GeneralRe: Session in Hyperlink? Pin
saberbladez14-Jan-09 21:26
saberbladez14-Jan-09 21:26 
Thanks for the replies =) I got that just when you replied!
Now I've got another bug in the website which I don't know how to approach this. I loaded into the page then when i click logout i am supposed to change the session to "0" with the logout button code below.
But when I manually enter my link back to CentralReportPoint.aspx, I get the report that I loaded previously before i Logged out. Is there any way to solve this?

Protected Sub btnLogOut_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogOut.Click
Login1.UserName = ""
Session("username") = ""
Session("login") = "0"
Session("status") = "0"
Session("report") = "0"
FormsAuthentication.SignOut()
Login1_Authenticate(Login1, New AuthenticateEventArgs())
'Response.Redirect("Default.aspx")
End Sub



At my CentralReportPoint.aspx I also check if the session is valid if not it will transfer back to the default.aspx but it doesnt seem to do so when i manually enter the address after. If I were to try entering the address before i initialise a login at start, It transfers me back to the default page but not when i log out


If (Session("report") = "0") Then
Response.Redirect("../Default.aspx")
Else
Dim report As New ReportDocument
report.Load(Server.MapPath("../Report/" & Session("report").ToString() & ".rpt"))
report.SetDatabaseLogon("AGIREADWRITE", "password")
CrystalReportViewer1.ReportSource = report
End If
GeneralRe: Session in Hyperlink? Pin
N a v a n e e t h14-Jan-09 21:42
N a v a n e e t h14-Jan-09 21:42 
GeneralRe: Session in Hyperlink? Pin
saberbladez14-Jan-09 21:45
saberbladez14-Jan-09 21:45 
GeneralRe: Session in Hyperlink? Pin
saberbladez14-Jan-09 21:51
saberbladez14-Jan-09 21:51 
GeneralRe: Session in Hyperlink? Pin
N a v a n e e t h14-Jan-09 21:51
N a v a n e e t h14-Jan-09 21:51 
AnswerRe: Session in Hyperlink? Pin
Rajeesh MP15-Jan-09 2:10
Rajeesh MP15-Jan-09 2:10 
QuestionDIV Tag Pin
madancode14-Jan-09 19:43
madancode14-Jan-09 19:43 
AnswerRe: DIV Tag Pin
Guffa14-Jan-09 19:59
Guffa14-Jan-09 19:59 
GeneralRe: DIV Tag Pin
madancode14-Jan-09 20:16
madancode14-Jan-09 20:16 
GeneralRe: DIV Tag Pin
N a v a n e e t h14-Jan-09 20:55
N a v a n e e t h14-Jan-09 20:55 
GeneralRe: DIV Tag Pin
Aman Bhullar14-Jan-09 21:01
Aman Bhullar14-Jan-09 21:01 
QuestionExport to doc or rtf with image in background Pin
samerh14-Jan-09 19:07
samerh14-Jan-09 19:07 
Questionhow to accessing MySQL Database with ASP.NET_files Pin
nawalage14-Jan-09 18:58
nawalage14-Jan-09 18:58 

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.