Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this message comes in a light box.

I would like to do this inside the button click event (C# code) must be run HTML code <div>;

XML
<div id="myModal" class="reveal-modal">

<h1>Error</h1>
<p>You are not a member</p>

</div>

How to run above <div> tag in C# code side( button click event).
Posted
Updated 30-Dec-12 21:19pm
v4

hi friend

you can use

ASP.NET
<div id="myModal"  runat="server" class="reveal-modal">

when you define it runat=server .you can call it from code behind
 
Share this answer
 
v2
Comments
AshishChaudha 31-Dec-12 3:30am    
my +5!
Whoooo, friend!
You are going far too fast. Based on what you wrote, you have really much ahead. I suggest you start with a tutorial. Please check this one: http://blogs.msdn.com/b/vbertocci/archive/2009/04/23/create-a-minimal-asp-net-membership-website-that-will-come-in-useful-in-another-post.aspx[^]. It is simple, and really focused on where you should start.
 
Share this answer
 
VB
AspxLabelX.Text= "<table style='width: 700px' cellpadding='6' cellspacing='2'>" +
                               "<tr>" +
                                   "<td style=\"font-family: calibri; font-size: small; font-weight: bold;\">" +
                                      "Transaction Result:" +
                                   "</td>" +
                                   "<td style=\"font-family: calibri; font-size: small;\" colspan=\"3\">" +
                                      dr[0]["txtErrorLog"] +
                                   "</td>" +
                               "</tr>" +


                                                      "</table>";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900