Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

posback url

Posted on 2009-05-20
2
Medium Priority
?
261 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 1500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Integration Management Part 2
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

916 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