Note that there are some explanatory texts on larger screens.

plurals
  1. POget info from one page and show it on other page
    primarykey
    data
    text
    <p>i m working on shopping cart site i want to show complete information of a product contained in a div section. on an other page. i have may div that contained information. goal is to get the info on a new page when user clicks some product's image. </p> <pre><code> Error: Control 'MainContent_ImageButton1' of type 'ImageButton' must be placed inside a form tag with runat=server. HTML: &lt;div id="physics" runat="server"&gt; &lt;h3&gt;High School Physics&lt;/h3&gt; &lt;%-- &lt;a href="ShowLarge.aspx"&gt; &lt;img src="images/Book.jpg" /&gt; &lt;/a&gt;--%&gt; &lt;asp:ImageButton ID="ImageButton1" src="images/Book.jpg" runat="server" onclick="ImageButton1_Click" /&gt; &lt;p&gt; Book Description Goes Here &lt;br /&gt; &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;PKR 770/-&lt;/asp:Label&gt; &lt;br /&gt; &lt;asp:TextBox ID="TextBox1" Text="1" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:Button ID="Button1" runat="server" Text="Add" /&gt; &lt;/p&gt; &lt;/div&gt; Code : protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { StringWriter sw = new StringWriter(); HtmlTextWriter w = new HtmlTextWriter(sw); physics.RenderControl(w); Session["mySessionVar"] = sw.GetStringBuilder().ToString(); Response.Redirect("ShowLarge.aspx", true); } HTML: where i want to show this info &lt;div id="ShowInLargeView" runat="server"&gt; &lt;/div&gt; Code: protected void Page_Load(object sender, EventArgs e) { ShowInLargeView.InnerHtml = (String)Session["mySessionVar"]; } </code></pre> <p>i want to show the complete info of Div in an other page. i m getting an error. this scenario is about shopping cart i need help please help. </p>
    singulars
    1. This table or related slice is empty.
    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.
 

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