Button click popup a new window

Posted by Deven under ASP.NET on 4/23/2013 | Points: 10 | Views : 6200 | Status : [Member] | Replies : 3
I want to know ,On a button click a popup window should come collecting the user type from database and from that window , we can select one usertype and that will fill in the textbox nearby the button . ? i m having Ms-access database and user_master table from which i m taking usertype




Responses

Posted by: aswinialuri-19361 on: 4/24/2013 [Member] Starter | Points: 25

Up
0
Down
hi
Ithink it is useful to you
<asp:TableCell>
<asp:Button ID="btnSearch" Text="Search" OnClientClick="openwd();" runat="server"/>
</asp:TableCell>


<script type = "text/javascript>
function openwd() {
window.open("OnPopUp.aspx");
return false;
}
</script>

Thanks& Regards

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Deven, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Deven on: 4/24/2013 [Member] Starter | Points: 25

Up
0
Down
@Ashwini: But i want to display values from database into that popup window and should be selectable

Deven, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 4/24/2013 [Member] Starter | Points: 25

Up
0
Down
hi
try this code
i hope it is useful to you
http://www.codeproject.com/Articles/38774/Passing-information-using-a-hidden-button-and-sess
Thanks&Regards


Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Deven, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response