Click here to Skip to main content
15,889,412 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionwhy I am not getting the ID Pin
Jassim Rahma1-Dec-10 2:59
Jassim Rahma1-Dec-10 2:59 
AnswerRe: why I am not getting the ID Pin
T M Gray1-Dec-10 4:52
T M Gray1-Dec-10 4:52 
QuestionGridview update numeric values Pin
amina891-Dec-10 1:35
amina891-Dec-10 1:35 
AnswerRe: Gridview update numeric values Pin
Hiren solanki1-Dec-10 21:48
Hiren solanki1-Dec-10 21:48 
GeneralRe: Gridview update numeric values Pin
amina891-Dec-10 23:59
amina891-Dec-10 23:59 
Questionasp:Menu Pin
Satish_S30-Nov-10 22:26
Satish_S30-Nov-10 22:26 
AnswerRe: asp:Menu Pin
musefan1-Dec-10 0:50
musefan1-Dec-10 0:50 
QuestionModalPopupExtender Problem Pin
Vimalsoft(Pty) Ltd30-Nov-10 21:53
professionalVimalsoft(Pty) Ltd30-Nov-10 21:53 
Good Day All

I have 20 Textboxes and when there are duplicates in those textboxes , i store them in a List<string> and on fly i build a CheckBoxList and display that as a modal and in that i have a close button to allow the user to correct the duplicate item. My Function is working and it is defined like this


private void ShowAjaxModalDynamic(List<string> lstItems, String Message)
       {

         CheckBoxList lstchecks = new CheckBoxList();

                   for (int i = 0; i < lstItems.Count; i++)
         {
                       lstchecks.Items.Add("Unit" + lstItems[i]);
         }

         AjaxControlToolkit.ModalPopupExtender modalPop = new AjaxControlToolkit.ModalPopupExtender();
         modalPop.ID = "popUp";
         modalPop.PopupControlID = "ModalPanel"; //The Panel must exist on the markup
                   modalPop.TargetControlID = "btnComplete"; //the Button must exist on the markup
         modalPop.DropShadow = true;
                   modalPop.CancelControlID = "btnCancel"; //The Button must exist on the markup
         modalPop.BackgroundCssClass = "modalBackground";
         this.Panel1.Controls.Add(modalPop);
         this.ModalPanel.Controls.Add(lstchecks);
                   lblPanelMessage.Text = Message;
                   modalPop.Show();

       }


as you can see i will pass the List and the Message to be displayed. Now this is working Perfect.

My Problem is that when the user clicks the close Button to correct the duplicate in those textbox, and re-click the button that will check for Duplicate , the Modal comes back again even if the duplicate has been removed and the break point to the start part that does the validation does not get fired.


Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: ModalPopupExtender Problem Pin
phil.o30-Nov-10 23:49
professionalphil.o30-Nov-10 23:49 
GeneralRe: ModalPopupExtender Problem Pin
Vimalsoft(Pty) Ltd1-Dec-10 0:48
professionalVimalsoft(Pty) Ltd1-Dec-10 0:48 
GeneralRe: ModalPopupExtender Problem Pin
phil.o1-Dec-10 2:20
professionalphil.o1-Dec-10 2:20 
GeneralRe: ModalPopupExtender Problem Pin
Vimalsoft(Pty) Ltd1-Dec-10 2:30
professionalVimalsoft(Pty) Ltd1-Dec-10 2:30 
GeneralRe: ModalPopupExtender Problem Pin
phil.o1-Dec-10 4:26
professionalphil.o1-Dec-10 4:26 
GeneralRe: ModalPopupExtender Problem Pin
phil.o1-Dec-10 5:36
professionalphil.o1-Dec-10 5:36 
GeneralRe: ModalPopupExtender Problem Pin
Vimalsoft(Pty) Ltd1-Dec-10 18:55
professionalVimalsoft(Pty) Ltd1-Dec-10 18:55 
GeneralRe: ModalPopupExtender Problem Pin
Vimalsoft(Pty) Ltd1-Dec-10 20:15
professionalVimalsoft(Pty) Ltd1-Dec-10 20:15 
Question[asp.net] can i catch back browser button? Pin
buffering8330-Nov-10 16:37
buffering8330-Nov-10 16:37 
AnswerRe: [asp.net] can i catch back browser button? Pin
Anurag Gandhi30-Nov-10 19:19
professionalAnurag Gandhi30-Nov-10 19:19 
QuestionTengo el mismo problema Pin
alejandro fon30-Nov-10 12:36
alejandro fon30-Nov-10 12:36 
AnswerRe: Tengo el mismo problema Pin
Not Active30-Nov-10 14:38
mentorNot Active30-Nov-10 14:38 
GeneralRe: Tengo el mismo problema Pin
NeverHeardOfMe30-Nov-10 23:40
NeverHeardOfMe30-Nov-10 23:40 
AnswerRe: Tengo el mismo problema Pin
Amar Chaudhary30-Nov-10 14:54
Amar Chaudhary30-Nov-10 14:54 
GeneralRe: Bad question Pin
phil.o30-Nov-10 23:55
professionalphil.o30-Nov-10 23:55 
Answeruna equivocacion en su respuesta Pin
David Mujica1-Dec-10 9:46
David Mujica1-Dec-10 9:46 
AnswerRe: Tengo el mismo problema Pin
Hiren solanki1-Dec-10 21:57
Hiren solanki1-Dec-10 21:57 

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.