473,395 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP.NET C#: ModalPopup flicker on server validation postback.

56
I've posted this in the AJAX section but was told I'll have more luck here so :

Hi all,

First of all I've searched the net but with no luck. My problem is I have a master/detail webform. i.e. the user clicks a record from the list and I show a modalpopup with the data. Here the user can edit this data. Apart from clientside validation I have some server validation (which I need).
In the (server) Click event of the submit LinkButton I have the following:

Expand|Select|Wrap|Line Numbers
  1.      protected void lbtnSave_Click(object sender, EventArgs e)
  2.  
  3.               {  
  4.                   if (Page.IsValid)  
  5.                   {  
  6.                               //save changes     
  7.                   }  
  8.                   else  
  9.                   {  
  10.                       //show the popup again since after postback it is hidden  
  11.                       modalPopupExtender.Show();  
  12.                   }  
  13.               }
  14.  

Everything, like the validator values remain there which is as I need it and all the functionality is there. The only problem I have is there is a flicker (from reload of modalpopup) after postback.

I tried putting it all into an UpdatePanel but with no luck.

Is there a way I could make a partial postback or maybe call postback from clienside? If yes could you please explain how this could be done? Also any code snippets are very welcome (I'm quite new to AJAX, especially Javascript)

Thanks
Luk
Jun 18 '08 #1
0 1896

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mary Simpson | last post by:
Hi, I have a page that refreshes every 5 seconds, smartnavigation is set to true. It works great on my local server (no flicker), but it flickers pretty badly on the host's server. Is there a...
2
by: Helge Kalnes | last post by:
We are running an ASP.NET application on a cluster of 3 web-servers, using the Network Load Balancing feature of Application Center. We have synchronized the machineKey in machine.config on the 3...
1
by: Frankie | last post by:
Sanity Check Requested! I've been writing code way too long for the past several days and just came across this bit of logic I wrote several weeks ago. Suddenly something seems wrong with it and...
7
by: Tim_Mac | last post by:
hi, using .net 2.0, i have a web form with lots of textboxes, drop-down-lists etc. There are lots of required field validators and regular expression validators. When i click the 'save' button,...
5
by: Darth Continent | last post by:
Hello, I'm trying to replicate the functionality presented here specific to the ModalPopup control: http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx I've created a C# Ajax-enabled...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
1
by: gsauns | last post by:
I have a DetailsView inside a ModalPopup (using the AJAX ModalPopupExtender). I would like the user to have the ability to change the DetailsView's mode within the ModalPopup. But whenever I...
3
by: gyanendar | last post by:
Hi All, I have to implement modelpopup.I am using masterTemplate. the code : body { font:normal 10pt/13pt Arial, Verdana, Helvetica, sans-serif; color:#666666; margin:20px; }
1
by: semomaniz | last post by:
I have a button inside a repeater which is supposed to open a popup when clicked. But when i click on the button my modalpopup does not open. The strange thing is on the code provided below if i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.