Hi, you can not use Alert to show and control inside that...
However you can use any Javascript/JQuery model popup plug-in instead and put your drop down inside popup..
I have implemented a jquery model popup plug-in which can be useful to you..
Read this article :
Implementing J-Query Model Popup Plug-In and Playing FLV file in a model popup[
^]
In the article there is a jQuery plugin called
model-popup.js
.. you can use it as shown below..
step 1 : Reference Popup plug-in
<script type="text/javascript" language="javascript" src="resource/jquery-1.2.6.min.js"></script>
<script type="text/javascript" language="javascript" src="resource/model-popup.js"></script>
Step 2: Create Popup container
<a id="YourButton">Click Here to open model popup</a>
<div class="popupDiv">
<div>
<asp:DropDownList id="DropDownList1" runat="server">
<asp:ListItem value="value" >Text</asp:ListItem>
</asp:DropDownList>
</div>
<div class="close">
<a class="lnkOk">OK</a></div>
</div>
Step 3: Call Popup Plug-In
$(document).ready(function()
{
$("#YourButton").click(function()
{
$("div.popupDiv").Init(
{
closeButtonCSS:"lnkOk"
});
});
});
Step 4: Show Alert when clicking on Ok Button of Popup
$(document).ready(function()
{
$("#YourButton").click(function()
{
$("div.popupDiv").Init(
{
closeButtonCSS:"lnkOk"
});
});
$("lnkOk").click(function()
{
alert("Your message goes here!");
});
});
Hope this will help...
[Please click "Accept Answer" if this helps you out ]