Author: KarinElvira | Posted on: 9/27/2010 7:20:33 AM | Views : 441

I want to, at the click of a button on one page, display an image from image path in an asp.net image control and some text in two asp.net textboxes on another page. 
Here's the button:

<asp:Button ID="ButtonPublishStartImg" runat="server" PostBackUrl="~/Start.aspx" Text="Publicera startbild" style="width: 130px" onclick="ButtonPublishStartImg_Click" />
I'm having trouble finding an easy way to display the image, I'm thinking I need to use a Handler.ashx.file. And the textboxes, do I write their code the same way as if they had been on the same page as the button? 
This is how I fetch image path and text from the database:

string BildID = TextBoxStartPictID.Text; SqlConnection conn = new SqlConnection(config); conn.Open(); string sql = "S ...

Go to the complete details ...