Click here to Skip to main content
15,896,606 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: compare Date and Time Pin
ABitSmart9-Feb-09 18:46
ABitSmart9-Feb-09 18:46 
GeneralRe: compare Date and Time Pin
Sarfaraj Ahmed9-Feb-09 18:52
Sarfaraj Ahmed9-Feb-09 18:52 
AnswerRe: compare Date and Time Pin
Abhijit Jana9-Feb-09 19:00
professionalAbhijit Jana9-Feb-09 19:00 
GeneralRe: compare Date and Time Pin
Sarfaraj Ahmed9-Feb-09 19:08
Sarfaraj Ahmed9-Feb-09 19:08 
GeneralRe: compare Date and Time Pin
N a v a n e e t h9-Feb-09 20:53
N a v a n e e t h9-Feb-09 20:53 
QuestionSession array Pin
Sandraa9-Feb-09 9:59
Sandraa9-Feb-09 9:59 
AnswerRe: Session array Pin
Ranjit Viswakumar9-Feb-09 16:12
Ranjit Viswakumar9-Feb-09 16:12 
GeneralRe: Session array Pin
Sandraa11-Feb-09 8:40
Sandraa11-Feb-09 8:40 
Doesn't work because the postback empty my array when I push btton.
I have when load the first ask (is a test of 25 ask):
Public Ar1(25, 1) As Integer

Procedure of load ask
Ar1(Session("i"), 0) = Session("Preguntas").Rows(Session("i"))("Id_Pregunta")
Session("ArrayRespuestas") = Ar1


later when button_onclick:
Dim respuesta As Integer
        If RadioButton1.Checked = True Then respuesta = 1
        If RadioButton2.Checked = True Then respuesta = 2
        If RadioButton3.Checked = True Then respuesta = 3
        If RadioButton4.Checked = True Then respuesta = 4
        If RadioButton5.Checked = True Then respuesta = 5
        Ar1(Session("i"), 1) = respuesta
        Session("ArrayRespuestas") = Ar1
        Session("i") = Session("i") + 1


This work without errors, but when I try to recovery the datas of array I only get the value present Ar1(Session("i"), 1) but I lost the value Ar1(Session("i"), 0) because was added before of push button and later the postback empty my array.
Good, realty is when I put Session("ArrayRespuestas") = Ar1 is when I clear my session array.

I believe that the solve is to search like get not postback when click button.

I accept advisers boys Smile | :)
GeneralRe: Session array Pin
Sandraa11-Feb-09 8:49
Sandraa11-Feb-09 8:49 
Questionsenerio Pin
suni_dotnet9-Feb-09 5:48
suni_dotnet9-Feb-09 5:48 
AnswerRe: senerio Pin
Ray Wampler9-Feb-09 6:34
Ray Wampler9-Feb-09 6:34 
GeneralRe: senerio Pin
suni_dotnet9-Feb-09 6:57
suni_dotnet9-Feb-09 6:57 
GeneralRe: senerio Pin
Ray Wampler9-Feb-09 7:21
Ray Wampler9-Feb-09 7:21 
GeneralRe: senerio Pin
Ray Wampler9-Feb-09 7:24
Ray Wampler9-Feb-09 7:24 
GeneralRe: senerio Pin
suni_dotnet9-Feb-09 7:37
suni_dotnet9-Feb-09 7:37 
Question"A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 4:19
markymark829-Feb-09 4:19 
AnswerRe: "A validation error has occurred".... script attacks... Pin
led mike9-Feb-09 4:51
led mike9-Feb-09 4:51 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:01
markymark829-Feb-09 5:01 
GeneralRe: "A validation error has occurred".... script attacks... Pin
Paddy Boyd9-Feb-09 5:21
Paddy Boyd9-Feb-09 5:21 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:24
markymark829-Feb-09 5:24 
GeneralRe: "A validation error has occurred".... script attacks... Pin
Paddy Boyd9-Feb-09 5:27
Paddy Boyd9-Feb-09 5:27 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:31
markymark829-Feb-09 5:31 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:48
markymark829-Feb-09 5:48 
AnswerRe: "A validation error has occurred".... script attacks... Pin
Ranjit Viswakumar9-Feb-09 16:16
Ranjit Viswakumar9-Feb-09 16:16 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 22:33
markymark829-Feb-09 22:33 

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.