Click here to Skip to main content
15,911,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: i want email sending program in vb Pin
dan!sh 19-Nov-09 4:14
professional dan!sh 19-Nov-09 4:14 
AnswerRe: i want email sending program in vb Pin
Abhijit Jana19-Nov-09 4:15
professionalAbhijit Jana19-Nov-09 4:15 
GeneralRe: i want email sending program in vb Pin
Abhishek Sur19-Nov-09 8:21
professionalAbhishek Sur19-Nov-09 8:21 
Questionhiii.. how can i call modal popup through code behind ... Pin
hi_everybody19-Nov-09 3:16
hi_everybody19-Nov-09 3:16 
AnswerRe: hiii.. how can i call modal popup through code behind ... Pin
PunkIsNotDead19-Nov-09 5:39
PunkIsNotDead19-Nov-09 5:39 
GeneralRe: hiii.. how can i call modal popup through code behind ... Pin
hi_everybody20-Nov-09 1:26
hi_everybody20-Nov-09 1:26 
GeneralRe: hiii.. how can i call modal popup through code behind ... Pin
PunkIsNotDead20-Nov-09 13:52
PunkIsNotDead20-Nov-09 13:52 
QuestionRe: hiii.. how can i call modal popup through code behind ... Pin
hi_everybody20-Nov-09 22:26
hi_everybody20-Nov-09 22:26 
its ok.... thanks for reply..
but i want asp table and i generate it dynamically so the asp button on which i want to show modal popup also
generated dynamically...
so how can i show modal popup on it..???

for testing i create one test.aspx like this...
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript" language="javascript">
    function onOk(){
        return true;
    }
    
    function ShowModalForNew(){
        var myBehavior = $find('mpe'); 
        myBehavior.show(); 
        $find('mpe').show; 
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ACT:ToolkitScriptManager runat="server" ID="ScriptManager1"  EnableScriptGlobalization="true" EnableScriptLocalization="true" />
    <div>
        <asp:UpdatePanel ID="uptmp" runat="server" UpdateMode="conditional">
            <ContentTemplate>
                <table>
                    <tr>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="Button" />
                            <a href="#" style="display:none;visibility:hidden;" onclick="return false" id="dummyLink" runat="server">dummy</a>
                        </td>
                    </tr>
                </table>
                <act:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
                     TargetControlID="dummylink"
                     popupcontrolid ="Panel1"
                     backgroundcssclass="modalBackground"
                     dropshadow="True"
                     cancelControlId="CancelButton"
                     BehaviorId = "mpe" />
                <asp:Panel ID="Panel1" runat="server" style="display:none; width:200px; background-color:White; border-width:2px; border-color:Black; border-style:solid; padding:20px;">
                    Are you sure you want Delete Text?
                    <br /><br />
                    <div style="text-align:right;">
                        <asp:Button ID="OkButton" runat="server" Text="OK" />
                        <asp:Button ID="CancelButton" runat="server" Text="Cancel" />
                    </div>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

and i called the javascript thr codebehind like this,....
Partial Class test
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Button1.Attributes.Add("onclick", "ShowModalForNew();")
        End If
    End Sub
End Class

if you run this it shows, modal popup but, it get disappeared...Frown | :(
if it worked properly, then i can add attribute to the dynamically generated asp button, as shown in code behind....

now you get what i want..? but thanks for reply... it also helpful to me related to modal popup extender...
madhuri Smile | :)
AnswerRe: hiii.. how can i call modal popup through code behind ... Pin
PunkIsNotDead21-Nov-09 17:53
PunkIsNotDead21-Nov-09 17:53 
GeneralRe: hiii.. how can i call modal popup through code behind ... Pin
hi_everybody23-Nov-09 18:23
hi_everybody23-Nov-09 18:23 
Questionhow to run website without Visual Studio Pin
JayPatel2119-Nov-09 1:02
JayPatel2119-Nov-09 1:02 
AnswerRe: how to run website without Visual Studio Pin
Abhishek Sur19-Nov-09 1:34
professionalAbhishek Sur19-Nov-09 1:34 
AnswerRe: how to run website without Visual Studio Pin
Abhijit Jana21-Nov-09 21:18
professionalAbhijit Jana21-Nov-09 21:18 
Questionhow to run website without Visual Studio Pin
JayPatel2119-Nov-09 1:00
JayPatel2119-Nov-09 1:00 
AnswerRe: how to run website without Visual Studio Pin
dan!sh 19-Nov-09 1:27
professional dan!sh 19-Nov-09 1:27 
AnswerRe: how to run website without Visual Studio Pin
Abhijit Jana19-Nov-09 3:56
professionalAbhijit Jana19-Nov-09 3:56 
QuestionGet Applicationname Pin
Gamzun19-Nov-09 0:28
Gamzun19-Nov-09 0:28 
AnswerRe: Get Applicationname Pin
Abhijit Jana19-Nov-09 0:38
professionalAbhijit Jana19-Nov-09 0:38 
AnswerRe: Get Applicationname Pin
Abhishek Sur19-Nov-09 1:32
professionalAbhishek Sur19-Nov-09 1:32 
GeneralRe: Get Applicationname Pin
Gamzun20-Nov-09 3:57
Gamzun20-Nov-09 3:57 
GeneralRe: Get Applicationname Pin
Abhishek Sur21-Nov-09 8:51
professionalAbhishek Sur21-Nov-09 8:51 
GeneralRe: Get Applicationname Pin
Gamzun22-Nov-09 9:09
Gamzun22-Nov-09 9:09 
QuestionCreate Search like Article search on this website Pin
AlexSchatten18-Nov-09 23:42
AlexSchatten18-Nov-09 23:42 
AnswerRe: Create Search like Article search on this website Pin
Abhijit Jana18-Nov-09 23:49
professionalAbhijit Jana18-Nov-09 23:49 
GeneralRe: Create Search like Article search on this website Pin
AlexSchatten25-Nov-09 3:39
AlexSchatten25-Nov-09 3:39 

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.