1

Is there a way to define my own querystring parameter in Dynamic data rather then using something like

Edit.aspx?AccountID=1

I want to use something like this

Edit.aspx?id=1

1 Answer 1

3

I found a solution for this problem

I simply added this on the pageload method of my edit page template

        string id = String.Empty;
        if(Request.QueryString["id"] != null ){
            id = Request.QueryString["id"].ToString();
            DetailsDataSource.WhereParameters.Clear();
            DetailsDataSource.WhereParameters.Add("AccountID", DbType.Int32, id);
        }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.