Link to home
Start Free TrialLog in
Avatar of Romacali
Romacali

asked on

posback url

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

ASKER CERTIFIED SOLUTION
Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Romacali
Romacali

ASKER

actually the procedure was wrong.. thanks for trying to help.