Solved

posback url

Posted on 2009-05-20
2
248 Views
Last Modified: 2012-05-07
hello,

I was testing my postback and it is not working all the time I get the url visitId =1

/evaluation.aspx?r=25&e=1

need help
try
        {
            myConnection.Open();
            cmd3.ExecuteNonQuery();
            cmd0.CommandType = System.Data.CommandType.Text;
            txtEvaluationVisitID.Text = cmd0.ExecuteScalar().ToString();
 
        }
        catch (Exception exc)
        {
            lblMessage3.Text = exc.Message;
        }
 
        finally
        {
            Response.Redirect("evaluation.aspx?r=" + Request.QueryString["r"] + "&e=" + txtEvaluationVisitID.Text);
            myConnection.Close();
        }

Open in new window

0
Comment
Question by:Romacali
2 Comments
 
LVL 6

Accepted Solution

by:
ViceroyFizzlebottom earned 500 total points
ID: 24436141
You need to be a little more specific. If the value e=1 isn't what you would expect, can you post an example of cmd0.Text (what query is being run.)

If the value e=1 is acceptable and you're not getting the behavior you expect from evaluation.aspx, you need to post at the least the Page_Load() code from that aspx page.
0
 

Author Comment

by:Romacali
ID: 24436978
actually the procedure was wrong.. thanks for trying to help.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question