Solved

posback url

Posted on 2009-05-20
2
245 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now