Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After reading a long discussion based on the answer from @meda, I now clearly see the source of your problem.</p> <p>You are facing all these errors and problems because of the architecture and lifecycle of ASP pages. That's really a pain in the neck most of the times. Even when using AJAX, either built-in update panel or extensions. </p> <p>Based on your code and discussions, I know that you are using the built-in data binding controls to retrieve the data, and mark up the results. <br/> The first code block must be written inside your ImageButton's click event. Right?</p> <p>Just set the ImageButton property <code>PostBackUrl</code> like this... </p> <p><code> PostBackUrl='~/Authors_Detail.aspx?id=&lt;%# Eval("AuthorId") %>' </code> </p> <p><br/> One thing is, there's a slight chance that it might not work. Because you won't have the <code>AuthorID</code> value during the first time the page loaded up. Since your text box and image buttons resides in the same binding scope, you might need to manually re-render the whole image button again, to update the property. </p> <p>I want to give you a good advice. The actual optimal approach in this case is to show the result, author name or image, in a separate data binding panel. Such as a repeater, form view or details view. <br/> Frankly, you won't even need the binding panel for the text box. You are already getting the results with ajax. If you are sure that your result comes out only one record, you can use the form view. Or, use repeater or list view if the result is multiple. </p> <p>Inside the view where you will show your result, you can render the propery of the control you are gonna use with the code I've shown above. You can use anything, hyperlink, linkbutton, imagebutton, etc. <br/> Since the results for the views are processed server-side, you can ensure that your desired param value is attached to the link in this way. </p> <p>I know my explanation is a little messy. Please comment out if you can't understand. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload