Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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>;
 
<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 30-Dec-12 21:08pm
Edited 30-Dec-12 21:19pm
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

hi friend
 
you can use
 
<div id="myModal"  runat="server" class="reveal-modal">
when you define it runat=server .you can call it from code behind
  Permalink  
v2
Comments
AshishChaudha at 31-Dec-12 3:30am
   
my +5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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>";
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100