Click here to Skip to main content
15,904,823 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Checking e-mail Accounts Pin
saini arun3-Jan-10 18:33
saini arun3-Jan-10 18:33 
AnswerRe: Checking e-mail Accounts Pin
saini arun3-Jan-10 18:34
saini arun3-Jan-10 18:34 
AnswerRe: Checking e-mail Accounts Pin
coolestCoder3-Jan-10 20:48
coolestCoder3-Jan-10 20:48 
AnswerRe: Checking e-mail Accounts Pin
David Mujica4-Jan-10 3:23
David Mujica4-Jan-10 3:23 
AnswerRe: Checking e-mail Accounts Pin
April Fans4-Jan-10 16:27
April Fans4-Jan-10 16:27 
Questioncreating ajax from C# Pin
Hema Bairavan3-Jan-10 6:23
Hema Bairavan3-Jan-10 6:23 
AnswerRe: creating ajax from C# Pin
N a v a n e e t h3-Jan-10 6:40
N a v a n e e t h3-Jan-10 6:40 
GeneralRe: creating ajax from C# Pin
Hema Bairavan3-Jan-10 17:11
Hema Bairavan3-Jan-10 17:11 
Hi navneeth hope you can get my problem now,

actually my requirement is that to create ajax modal pop up dialogue for dynamic controls.
i have already posted regarding the same. now i came with one thought that creating the ajax modal pop up extender from C#..

the aspx code is

<table>

<tr><td>
<asp:Button runat="server" ID="btntext" Text="test"
/>
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</ajaxToolkit:ToolkitScriptManager>
<ajaxToolkit:ModalPopupExtender ID="MPE" runat="server"
TargetControlID="btntext"
PopupControlID="panel"
BackgroundCssClass="modalBackground"
DropShadow="false"
OkControlID="Ok"

X="200"
Y="200"
CancelControlID="Cancel"
/>
</td></tr>
</table>

this s normal code to create ajax pop up.

and my C# code is( need to open when clicking an link button)

protected void Link_Click(object s, EventArgs e)
{
string str;
LinkButton lbl = s as LinkButton;
str = lbl.CommandName;

//ajax.ToolkitScriptManager ToolkitScriptManager1 = new AjaxControlToolkit.ToolkitScriptManager();

ajax.ModalPopupExtender MPE = new AjaxControlToolkit.ModalPopupExtender();

MPE.TargetControlID = "lbl";
MPE.PopupControlID = "panel";
MPE.BackgroundCssClass = "modalBackground";
MPE.DropShadow = false;
MPE.OkControlID = "Ok";
MPE.X = 200;
MPE.Y = 200;
MPE.CancelControlID = "Cancel";



}

am i going in the correct way?
but its not working though.

In aspx if u give the Popup control id for pop up the control wont be visible in the page , when you click it will come.
but here i.e while creating ajax pop up from the C# code its parameter TargetControlID and PopupControlID is accepting as string, thus it will take the control dynamically, and the control is visible in the page.But in aspx code if we give the control ID to the PopupControlID , the control wont be visible in the page.

can any one help me how to create modal pop up for dynanic??
or is there anything other than ajax..??

help me
thanks in advance
AnswerRe: creating ajax from C# Pin
keyur satyadev3-Jan-10 19:03
keyur satyadev3-Jan-10 19:03 
NewsRe: creating ajax from C# [modified] Pin
Hema Bairavan3-Jan-10 19:58
Hema Bairavan3-Jan-10 19:58 
QuestionQuestion regarding major decline in data retrieval efficiency Pin
James Shao3-Jan-10 2:59
James Shao3-Jan-10 2:59 
AnswerRe: Question regarding major decline in data retrieval efficiency Pin
N a v a n e e t h3-Jan-10 4:46
N a v a n e e t h3-Jan-10 4:46 
GeneralRe: Question regarding major decline in data retrieval efficiency Pin
James Shao3-Jan-10 12:27
James Shao3-Jan-10 12:27 
QuestionUnit testing is a must learn technology for an asp.net programmer? Pin
popchecker2-Jan-10 19:49
popchecker2-Jan-10 19:49 
AnswerRe: Unit testing is a must learn technology for an asp.net programmer? Pin
N a v a n e e t h3-Jan-10 4:57
N a v a n e e t h3-Jan-10 4:57 
GeneralRe: Unit testing is a must learn technology for an asp.net programmer? Pin
popchecker3-Jan-10 17:16
popchecker3-Jan-10 17:16 
GeneralRe: Unit testing is a must learn technology for an asp.net programmer? Pin
N a v a n e e t h3-Jan-10 21:39
N a v a n e e t h3-Jan-10 21:39 
GeneralRe: Unit testing is a must learn technology for an asp.net programmer? Pin
popchecker3-Jan-10 22:43
popchecker3-Jan-10 22:43 
QuestionAjax modal pop up for dynamic control Pin
Hema Bairavan2-Jan-10 18:48
Hema Bairavan2-Jan-10 18:48 
Questionexecuting procedure, Pin
Hema Bairavan2-Jan-10 17:40
Hema Bairavan2-Jan-10 17:40 
AnswerRe: executing procedure, Pin
Brij2-Jan-10 23:04
mentorBrij2-Jan-10 23:04 
GeneralRe: executing procedure, Pin
Hema Bairavan3-Jan-10 2:06
Hema Bairavan3-Jan-10 2:06 
GeneralRe: executing procedure, Pin
Brij3-Jan-10 3:28
mentorBrij3-Jan-10 3:28 
AnswerRe: executing procedure, Pin
N a v a n e e t h3-Jan-10 5:38
N a v a n e e t h3-Jan-10 5:38 
GeneralRe: executing procedure, Pin
Hema Bairavan3-Jan-10 5:51
Hema Bairavan3-Jan-10 5:51 

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.