Click here to Skip to main content
15,888,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Help with fileupload object Pin
turbosupramk32-Jun-16 4:00
turbosupramk32-Jun-16 4:00 
GeneralRe: Help with fileupload object Pin
Richard Deeming2-Jun-16 4:24
mveRichard Deeming2-Jun-16 4:24 
GeneralRe: Help with fileupload object Pin
turbosupramk32-Jun-16 4:28
turbosupramk32-Jun-16 4:28 
GeneralRe: Help with fileupload object Pin
Richard Deeming2-Jun-16 4:31
mveRichard Deeming2-Jun-16 4:31 
GeneralRe: Help with fileupload object Pin
turbosupramk32-Jun-16 8:42
turbosupramk32-Jun-16 8:42 
Questionaccessing Local IP camera Pin
Member 1062117328-May-16 0:49
Member 1062117328-May-16 0:49 
AnswerRe: accessing Local IP camera Pin
Mycroft Holmes29-May-16 21:58
professionalMycroft Holmes29-May-16 21:58 
QuestionWhy is Panel visibility always showing false? Pin
samflex27-May-16 10:37
samflex27-May-16 10:37 
Greetings experts,

I am trying to show display reset password screen if data reader fetches records from the database matching the current user's information.

However, no matter what I try, I always get the following message:

Reset password link has expired.It was for one time use only

Any idea what I need to change in the code below?

Thanks in advance


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

    If Not Page.IsPostBack Then

        Dim dr As OleDbDataReader

        Try

            'Here we will check from the passed querystring that if the email id/username and generated unique code is same then the panel for resetting password will be visible otherwise not

            cmd = New OleDbCommand("select UserName,myemail,[UniqueCode] from tblusers where [UniqueCode]=@uniqueCode and (myEmail=@emailid or UserName=@username)", con)

            cmd.Parameters.AddWithValue("@uniqueCode", Convert.ToString(Request.QueryString("uCode")))

            cmd.Parameters.AddWithValue("@emailid", Convert.ToString(Request.QueryString("myEmail")))

            cmd.Parameters.AddWithValue("@username", Convert.ToString(Request.QueryString("uName")))


            If con.State = ConnectionState.Closed Then

                con.Open()

            End If

            dr = cmd.ExecuteReader()

            If dr.HasRows Then

                ResetPwdPanel.Visible = True

            Else

                ResetPwdPanel.Visible = False

                lblExpired.Text = "Reset password link has expired.It was for one time use only"

                Return

            End If

            dr.Close()

            dr.Dispose()

        Catch ex As Exception

            lblStatus.Text = "Error Occured: " & ex.Message.ToString()

        Finally

            cmd.Dispose()

            con.Close()

        End Try

    End If

End Sub

AnswerRe: Why is Panel visibility always showing false? Pin
F-ES Sitecore29-May-16 6:13
professionalF-ES Sitecore29-May-16 6:13 
GeneralRe: Why is Panel visibility always showing false? Pin
samflex29-May-16 16:51
samflex29-May-16 16:51 
GeneralRe: Why is Panel visibility always showing false? Pin
Richard MacCutchan29-May-16 21:27
mveRichard MacCutchan29-May-16 21:27 
GeneralRe: Why is Panel visibility always showing false? Pin
F-ES Sitecore30-May-16 0:03
professionalF-ES Sitecore30-May-16 0:03 
GeneralRe: Why is Panel visibility always showing false? Pin
ZurdoDev26-Oct-16 15:46
professionalZurdoDev26-Oct-16 15:46 
QuestionMoving a website from a 2008 server to a 2012 server without having the application source code. Pin
Stephen Holdorf25-May-16 4:21
Stephen Holdorf25-May-16 4:21 
AnswerRe: Moving a website from a 2008 server to a 2012 server without having the application source code. Pin
ZurdoDev25-May-16 4:39
professionalZurdoDev25-May-16 4:39 
GeneralRe: Moving a website from a 2008 server to a 2012 server without having the application source code. Pin
F-ES Sitecore26-May-16 0:09
professionalF-ES Sitecore26-May-16 0:09 
GeneralRe: Moving a website from a 2008 server to a 2012 server without having the application source code. Pin
ZurdoDev26-May-16 0:37
professionalZurdoDev26-May-16 0:37 
QuestionCall window.print() inside loop Pin
Praveen Kandari24-May-16 1:48
Praveen Kandari24-May-16 1:48 
QuestionRe: Call window.print() inside loop Pin
ZurdoDev25-May-16 4:38
professionalZurdoDev25-May-16 4:38 
AnswerRe: Call window.print() inside loop Pin
F-ES Sitecore26-May-16 0:12
professionalF-ES Sitecore26-May-16 0:12 
GeneralRe: Call window.print() inside loop Pin
Praveen Kandari26-May-16 1:12
Praveen Kandari26-May-16 1:12 
QuestionWCF Push Notification service Pin
Member 1202181721-May-16 2:18
Member 1202181721-May-16 2:18 
SuggestionRe: WCF Push Notification service Pin
ZurdoDev25-May-16 4:38
professionalZurdoDev25-May-16 4:38 
QuestionBuild navigation with routed URL in ASP.NET MVC Pin
Member 1204569220-May-16 18:36
Member 1204569220-May-16 18:36 
AnswerRe: Build navigation with routed URL in ASP.NET MVC Pin
John C Rayan22-May-16 23:51
professionalJohn C Rayan22-May-16 23:51 

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.