Click here to Skip to main content
15,891,253 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: I need ur views to make improvements in the DataBase Interaction file. Pin
Vasudevan Deepak Kumar19-May-08 0:51
Vasudevan Deepak Kumar19-May-08 0:51 
GeneralRe: I need ur views to make improvements in the DataBase Interaction file. Pin
Pankaj Garg19-May-08 0:55
Pankaj Garg19-May-08 0:55 
GeneralRe: I need ur views to make improvements in the DataBase Interaction file. Pin
Vasudevan Deepak Kumar19-May-08 18:49
Vasudevan Deepak Kumar19-May-08 18:49 
AnswerRe: I need ur views to make improvements in the DataBase Interaction file. Pin
N a v a n e e t h19-May-08 1:20
N a v a n e e t h19-May-08 1:20 
AnswerRe: I need ur views to make improvements in the DataBase Interaction file. [modified] Pin
J4amieC19-May-08 1:40
J4amieC19-May-08 1:40 
QuestionCompiler Error Message: CS0246: The type or namespace name 'XYZ' could not be found ...... Pin
Aldorado19-May-08 0:20
Aldorado19-May-08 0:20 
QuestionHow to use button control inside ModalPopup Ajax Control Pin
girishdonde18-May-08 23:59
girishdonde18-May-08 23:59 
AnswerRe: How to use button control inside ModalPopup Ajax Control [modified] Pin
Vinay Dornala19-May-08 1:39
Vinay Dornala19-May-08 1:39 
Hi,

You can put two button(Search N Close) one for search and another for closing popup
use UpdatePanel put both buttons in this and call .Hide() method of ModelPopup in code behind on button
click event.
see the sample impl.
.aspx coding
<asp:button runat="server" id="hiddenTargetControlForModalPopup" style="display: none">
<cc1:modalpopupextender runat="server" id="programmaticModalPopup" behaviorid="programmaticModalPopupBehavior">
TargetControlID="hiddenTargetControlForModalPopup" PopupControlID="programmaticPopup"
BackgroundCssClass="modalBackground" DropShadow="false" PopupDragHandleControlID="programmaticPopupDragHandle"
RepositionMode="RepositionOnWindowScroll">
<asp:panel runat="server" cssclass="modalPopup" id="programmaticPopup" style="display: none">
<asp:panel runat="server" id="programmaticPopupDragHandle">
<asp:label id="lblHeading" runat="server" text="Do you want to continue merging process?">
<asp:label id="lblMergeConfirm" runat="server">
<asp:updatepanel id="upnlModal" runat="server">
<asp:button id="btnOk" runat="server" text="Yes" cssclass="defaultButton" causesvalidation="false">
<asp:button id="btnClose" runat="server" text="Close" cssclass="defaultButton" causesvalidation="false">

Implement your logic for populating Gridview with appropriate search results in Search Button click event in code behind..

Protected Sub btnClose_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnClose.Click
Try
Me.programmaticModalPopup.Hide()
Catch ex As Exception
throw ex
End Try
End Sub
Protected Sub btnOk_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOk.Click
Try
// implement logic to populate gridview with resultset.
// If you want to execute any logic when click on button that opens popup
// you put button ouside the updatepanel.
Catch ex As Exception
throw
End Try
End Sub

Check lines which are in bold format. I hope this will solve your problem.

if you get any problem in populating GridView then pls delete search button from updatepanel.

You can refer Ajaxtoolkit sample impl video for all ajaxtoolkit controls.

modified on Wednesday, May 28, 2008 10:21 AM

QuestionHow i can resolve this error? Pin
Saba0218-May-08 23:35
Saba0218-May-08 23:35 
AnswerRe: How i can resolve this error? Pin
Saba0218-May-08 23:45
Saba0218-May-08 23:45 
GeneralRe: How i can resolve this error? Pin
Vasudevan Deepak Kumar19-May-08 0:16
Vasudevan Deepak Kumar19-May-08 0:16 
AnswerRe: How i can resolve this error? Pin
Aldorado19-May-08 0:24
Aldorado19-May-08 0:24 
AnswerRe: How i can resolve this error? Pin
Pankaj Garg19-May-08 1:02
Pankaj Garg19-May-08 1:02 
QuestionHow i can resolve this error? Pin
Saba0218-May-08 23:30
Saba0218-May-08 23:30 
AnswerRe: How i can resolve this error? Pin
eyeseetee18-May-08 23:35
eyeseetee18-May-08 23:35 
AnswerRe: How i can resolve this error? Pin
Vasudevan Deepak Kumar19-May-08 0:46
Vasudevan Deepak Kumar19-May-08 0:46 
AnswerRe: How i can resolve this error? Pin
N a v a n e e t h19-May-08 1:26
N a v a n e e t h19-May-08 1:26 
GeneralRe: How i can resolve this error? Pin
Saba0219-May-08 2:16
Saba0219-May-08 2:16 
QuestionA very simple query.. but i can`t get it done Pin
NetBot18-May-08 21:35
NetBot18-May-08 21:35 
AnswerRe: A very simple query.. but i can`t get it done Pin
Blue_Boy18-May-08 21:42
Blue_Boy18-May-08 21:42 
AnswerRe: A very simple query.. but i can`t get it done Pin
eyeseetee18-May-08 21:44
eyeseetee18-May-08 21:44 
AnswerRe: A very simple query.. but i can`t get it done Pin
J a a n s18-May-08 22:58
professionalJ a a n s18-May-08 22:58 
QuestionFinding the subreport in main report Pin
M. J. Jaya Chitra18-May-08 21:33
M. J. Jaya Chitra18-May-08 21:33 
Questiondelete the address drop down list items in internet explorer Pin
Pankaj Garg18-May-08 21:26
Pankaj Garg18-May-08 21:26 
AnswerRe: delete the address drop down list items in internet explorer Pin
Blue_Boy18-May-08 21:33
Blue_Boy18-May-08 21:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.