By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,849 Members | 2,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,849 IT Pros & Developers. It's quick & easy.

CSS Formatting disappears after JavaScript Alertbox clicked

Gwyn Thomas
P: 10
Hi All,

Firstly, I apologise if this question has appeared before but I can't find it anywhere.

I have created a gridview with two command buttons. When I click the buttons I want either an alertbox or confirm box to appear.

The problem I am receiving is when I click the command button the page disappears, a JavaScript alert box appears, you click OK on the alert box and the page reappears but all the CSS formatting has gone so my DIV tags and text all revert back to normal.

Can anyone tell me how to prevent this, or get an alertbox to appear with the page still showing in the background???

Many thanks,

Gwyn
Jan 5 '08 #1
Share this Question
Share on Google+
16 Replies


gits
Expert Mod 5K+
P: 5,329
hi ...

could you please post your code or give a link to a testpage? ... is the page refreshed (posted to the server) during the operation?

kind regards
Jan 5 '08 #2

Gwyn Thomas
P: 10
Thanks for replying...

The CSS I'm using is...

Expand|Select|Wrap|Line Numbers
  1. body
  2. {
  3.     border-top: solid 5px #BF2028;
  4.     border-left: solid 1px #BF2028;
  5.     border-right: solid 1px #BF2028;
  6.     border-bottom: solid 1px #BF2028;
  7.     font-family: Arial, Helvetica, sans-serif;
  8.     font-size: small;
  9.     color: #333333;
  10.     margin: 2px;
  11.     padding: 0px;
  12. }
  13.  
  14. #header
  15. {
  16.     background: #FFFFFF;
  17.     border-bottom: solid 2px #BF2028;
  18.     width: 100%;
  19.     height: 64px;
  20. }
  21. #content
  22. {
  23.     background: #FFFFFF;
  24.     float: left;
  25.     width: 100%;
  26.     height: 100%;
  27. }
  28. #footer
  29. {
  30.     background: #EEEEEE;
  31.     border-top: solid 1px #BF2028;
  32.     clear: both;
  33.     width: 100%;
  34.     height: 12px;
  35.     text-align: center;
  36.     font-family: Arial, Helvetica, sans-serif;
  37.     font-size: xx-small;
  38.     color: #BF2028;
  39.     vertical-align: text-bottom;
  40. }
  41. #loginLine
  42. {
  43.     width: 100%;
  44.     height: 18px;
  45.     text-align: right;
  46.     font-family: Arial, Helvetica, sans-serif;
  47.     font-size: small;
  48.     color: #333333;
  49.     border-bottom: dotted 1px #BF2028;
  50.     margin-right: 15px;
  51. }
  52. #searchTabPanel
  53. {
  54.     width: 100%;
  55.     height: 110px;
  56.     text-align: left;
  57.     font-family: Arial, Helvetica, sans-serif;
  58.     font-size: small;
  59.     color: #333333;
  60.     border-bottom: solid 1px Gray;
  61. }
  62. #searchDisplay
  63. {
  64.     padding: 10px;
  65.     font-family: Arial, Helvetica, sans-serif;
  66.     font-size: small;
  67.     color: #333333;
  68.     width: 100%;
  69.     height: 80%;
  70. }
  71.  
  72. #searchButtonRow
  73. {
  74.     padding: 5px;
  75.     text-align: right;
  76.     height: 25px;
  77.     width: 99%;
  78.     font-family: Arial, Helvetica, sans-serif;
  79.     font-size: small;
  80.     color: #333333;
  81.     border-bottom: dotted 1px #BF2028;
  82. }
  83.  
  84. .tpTotalWidth
  85. {
  86.     font-family: Arial, Helvetica, sans-serif;
  87.     font-size: small;
  88.     color: #333333;
  89.     width: 90%;
  90.     height: 80%;
  91. }
  92.  
  93. .tpLeftBlock
  94. {
  95.     float: left;
  96.     padding: 15px;
  97.     width: 40%;
  98.     height: 50%;
  99. }
  100.  
  101. .tpRightBlock
  102. {
  103.     float: left;
  104.     padding: 15px;
  105.     width: 40%;
  106.     height: 50%;
  107. }
  108.  
  109. .tpBigBlock
  110. {
  111.     float: left;
  112.     padding: 10px;
  113.     width: 75%;
  114.     height: 50%;
  115. }
This is used in the following HTML...

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Main" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head id="Head1" runat="server">
  7.     <title>Main Page</title>
  8.     <link href="CalendarStyle.css" rel="stylesheet" type="text/css" id="MyCalendar" />
  9.     <link href="LayoutStyleSheet.css" rel="stylesheet" type="text/css" />
  10. </head>
  11. <body>
  12.     <form id="MainPage" runat="server">
  13.     <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" />
  14.     <div id="header">
  15.         <img alt="SRA" 
  16.             src="Images/SRA_Header_New.jpg" style="width: 998px;height: 64px" /></div>
  17.     <div id="content">
  18.         <div id="loginLine">
  19.             <asp:Label ID="lblLoggedInAs" runat="server" Text="You are currently logged in as "></asp:Label>
  20.             <asp:LoginName ID="LoginName1" runat="server" />**
  21.         </div>
  22.         <div id="searchTabPanel">
  23.             <ajaxToolkit:TabContainer ID="tcSearch" runat="server" BorderStyle="None" 
  24.                 BorderWidth="1px" Height="72px" ScrollBars="Auto" Width="100%" 
  25.                 ActiveTabIndex="1">
  26.                 <ajaxToolkit:TabPanel ID="tpUserSearch" runat="server" HeaderText="Filter by Username and Group">
  27.                 <ContentTemplate>
  28. <asp:UpdatePanel ID="UserDetailsUpdate" runat="server" RenderMode="Inline"><ContentTemplate>
  29.         <div id="tpUserTotalWidth" class="tpTotalWidth">
  30.             <div id="tpUserLeftBlock" class="tpLeftBlock">
  31.                 <asp:Label ID="lblSearchGroup" runat="server" Text="Search this group : " />
  32.                 <asp:DropDownList ID="ddlDTSearchGroup" runat="server" AutoPostBack="True" Height="22px" Width="150px" />
  33.  
  34.             </div>
  35.             <div id="tpUserRightBlock" class="tpRightBlock">
  36.                 <asp:Label ID="lblSearchUser" runat="server" Text="Search for calls for this user :" />
  37.                 <asp:DropDownList ID="ddlDTSearchUsers" runat="server" Height="22px" Width="150px" />
  38.  
  39.             </div>
  40.         </div>
  41.  
  42.                     </ContentTemplate>
  43. <triggers>
  44. <asp:postbacktrigger ControlID="ddlDTSearchGroup" />
  45. </triggers>
  46. </asp:UpdatePanel>
  47.                 </ContentTemplate>
  48.                 </ajaxToolkit:TabPanel>
  49.                 <ajaxToolkit:TabPanel ID="tpDateSearch" runat="server" HeaderText="Filter by Date and Time">
  50.                 <ContentTemplate>
  51. <div id="tpDateTotalWidth" class="tpTotalWidth">
  52.     <div id="tpDateLeftBlock" class="tpLeftBlock">
  53.         Start Date and Time:
  54.         <asp:TextBox ID="txtDTSearchDateStart" runat="server" Width="75px" 
  55.             ToolTip="Please enter the Start Date or click the calendar button to the right"></asp:TextBox>
  56.         <asp:ImageButton ID="btnDTSearchDateStart" runat="server" Height="18px" ImageAlign="Bottom" ImageUrl="~/Images/iCal-32x32.png" Width="18px" />
  57.         *<asp:DropDownList ID="ddlTSearchTimeStart" runat="server">
  58.             <asp:ListItem Value="0">00:00</asp:ListItem>
  59.             <.......>
  60.             <asp:ListItem Value="23">23:00</asp:ListItem>
  61.         </asp:DropDownList>
  62.         <ajaxToolkit:MaskedEditExtender ID="meeStartDate" runat="server" 
  63.             TargetControlID="txtDTSearchDateStart" MaskType="Date" Century="2000" UserDateFormat="DayMonthYear" 
  64.                             Mask="99/99/9999" CultureAMPMPlaceholder="" 
  65.             CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
  66.             CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
  67.                             CultureThousandsPlaceholder="" CultureTimePlaceholder="" 
  68.             Enabled="True" >
  69.         </ajaxToolkit:MaskedEditExtender>
  70.         <ajaxToolkit:CalendarExtender ID="ceDTSearchDateStart" runat="server" 
  71.             CssClass="MyCalendar" Enabled="True" Format="dd/MM/yyyy"
  72.                             PopupButtonID="btnDTSearchDateStart" 
  73.             TargetControlID="txtDTSearchDateStart" >
  74.         </ajaxToolkit:CalendarExtender>
  75.     </div>
  76.     <div id="tpDateRightBlock" class="tpRightBlock">
  77.         End Date and Time:
  78.         <asp:TextBox ID="txtDTSearchDateEnd" runat="server" Width="75px" />
  79.         <asp:ImageButton ID="btnDTSearchDateEnd" runat="server" Height="18px" 
  80.             ImageUrl="~/Images/iCal-32x32.png" Width="18px" >
  81.         </asp:ImageButton>
  82.         *<asp:DropDownList ID="ddlTSearchTimeEnd" runat="server">
  83.             <asp:ListItem Value="0">00:00</asp:ListItem>
  84.             <........>
  85.             <asp:ListItem Value="23">23:00</asp:ListItem>
  86.         </asp:DropDownList>
  87.         <ajaxToolkit:MaskedEditExtender ID="meeEndDate" runat="server" 
  88.             TargetControlID="txtDTSearchDateEnd" MaskType="Date" Century="2000" UserDateFormat="DayMonthYear" 
  89.                             Mask="99/99/9999" CultureAMPMPlaceholder="" 
  90.             CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
  91.             CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
  92.                             CultureThousandsPlaceholder="" CultureTimePlaceholder="" 
  93.             Enabled="True" >
  94.         </ajaxToolkit:MaskedEditExtender>
  95.         <ajaxToolkit:CalendarExtender ID="ceDTSearchDateEnd" runat="server" 
  96.             CssClass="MyCalendar" Enabled="True" Format="dd/MM/yyyy"
  97.                             PopupButtonID="btnDTSearchDateEnd" 
  98.             TargetControlID="txtDTSearchDateEnd" >
  99.         </ajaxToolkit:CalendarExtender>
  100.     </div>
  101. </div>
  102.                 </ContentTemplate>
  103.                 </ajaxToolkit:TabPanel>
  104.                 <ajaxToolkit:TabPanel ID="tpNumberSearch" runat="server" HeaderText="Filter by Number">
  105.                 <ContentTemplate>
  106.                 <div id="tpNumberTotalWidth" class="tpTotalWidth">
  107.                     <div id="tpNumberLeftBlock" class="tpBigBlock">
  108.                         Please enter the number to search for :
  109.                         <asp:TextBox ID="txtNSearchNumber" runat="server" MaxLength="20" Width="125px" />
  110.                     </div>
  111.                 </div>
  112.                 </ContentTemplate>
  113.                 </ajaxToolkit:TabPanel>
  114.                 <ajaxToolkit:TabPanel ID="tpDurationSearch" runat="server" HeaderText="Filter by Duration">
  115.                 <ContentTemplate>
  116. <div id="tpDurationTotalWidth" class="tpTotalWidth">
  117.     <div id="tpDurationLeftBlock" class="tpLeftBlock">
  118.         Duration greater than
  119.         <asp:TextBox ID="txtDSearchGreaterThan" runat="server" Width="60px" />
  120.         <asp:ImageButton ID="btnDSearchGTUp" runat="server" Height="16px" 
  121.             ImageUrl="~/Images/Duration_Plus.jpg" Width="16px" ImageAlign="Middle" />
  122.         <asp:ImageButton ID="btnDSearchGTDown" runat="server" Height="16px" 
  123.             ImageUrl="~/Images/Duration_Minus.jpg" Width="16px" ImageAlign="Middle" />
  124.         minute(s)<ajaxToolkit:NumericUpDownExtender ID="nudeDSearchGreaterThan" 
  125.                             runat="server" Enabled="True" 
  126.             TargetControlID="txtDSearchGreaterThan" Maximum="500" Minimum="0" RefValues="" ServiceDownMethod="" 
  127.                             ServiceDownPath="" ServiceUpMethod="" Tag="" 
  128.             TargetButtonDownID="btnDSearchGTDown" TargetButtonUpID="btnDSearchGTUp" 
  129.             Width="60" >
  130.         </ajaxToolkit:NumericUpDownExtender>
  131.     </div>
  132.     <div id="tpDurationRightBlock" class="tpRightBlock">
  133.         Duration less than
  134.         <asp:TextBox ID="txtDSearchLessThan" runat="server" Width="59px" />
  135.         <asp:ImageButton ID="btnDSearchLTUp" runat="server" Height="16px" 
  136.             ImageUrl="~/Images/Duration_Plus.jpg" Width="16px" ImageAlign="Middle" />
  137.         <asp:ImageButton ID="btnDSearchLTDown" runat="server" Height="16px" 
  138.             ImageUrl="~/Images/Duration_Minus.jpg" Width="16px" ImageAlign="Middle" />
  139.         minute(s)<ajaxToolkit:NumericUpDownExtender ID="nudeDSearchLessThan" 
  140.             TargetControlID="txtDSearchLessThan" TargetButtonDownID="btnDsearchLTDown" TargetButtonUpID="btnDSearchLTUp" 
  141.                             Minimum="0" Maximum="500" runat="server" Enabled="True" 
  142.             RefValues="" ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag="" 
  143.             Width="60" >
  144.         </ajaxToolkit:NumericUpDownExtender>
  145.     </div>
  146. </div>
  147.                 </ContentTemplate>
  148.                 </ajaxToolkit:TabPanel>
  149.             </ajaxToolkit:TabContainer>
  150.         </div>
  151.         <div id="searchButtonRow">
  152.             <asp:Button ID="cmdClearFilters" runat="server" Text="Clear Search Filters" Width="150px" height="25" />
  153.             &nbsp;
  154.             <asp:Button ID="cmdStartSearch" runat="server" Text="Start Search" Width="150" Height="25" />
  155.         </div>
  156.         <div id="searchDisplay">
  157.             <asp:GridView ID="CDRViewer" runat="server" AutoGenerateColumns="False" EmptyDataText="Sorry but there are no records matching your search.  Please search again." 
  158.                 CellPadding="1" ForeColor="#333333" GridLines="Horizontal" 
  159.                 Font-Names="Arial" Font-Size="Small" Width="98%" AllowPaging="True" 
  160.                 PageSize="12">
  161.                 <pagersettings mode="NumericFirstLast" />
  162.                 <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
  163.                 <rowstyle backcolor="#EFF3FB" VerticalAlign="Top" />
  164.                 <Columns>
  165.                     <asp:boundfield DataField="CallId" HeaderText="Call ID" SortExpression="CallId">
  166.                     <itemstyle horizontalalign="Center" />
  167.                     </asp:boundfield>
  168.                     <asp:boundfield DataField="OriginationNumber" HeaderText="Origination Number" SortExpression="OriginationNumber">
  169.                     <itemstyle horizontalalign="Center" />
  170.                     </asp:boundfield>
  171.                     <asp:boundfield DataField="OriginationName" HeaderText="Origination Name" SortExpression="OriginationName">
  172.                     <itemstyle horizontalalign="Center" />
  173.                     </asp:boundfield>
  174.                     <asp:boundfield DataField="CalledNumber" HeaderText="Called Number" SortExpression="CalledNumber">
  175.                     <itemstyle horizontalalign="Center" />
  176.                     </asp:boundfield>
  177.                     <asp:boundfield DataField="CalledName" HeaderText="Called Name" SortExpression="CalledName">
  178.                     <itemstyle horizontalalign="Center" />
  179.                     </asp:boundfield>
  180.                     <asp:boundfield DataField="DestinationNumber" HeaderText="Destination Number" SortExpression="DestinationNumber">
  181.                     <itemstyle horizontalalign="Center" />
  182.                     </asp:boundfield>
  183.                     <asp:boundfield DataField="DestinationName" HeaderText="Destination Name" SortExpression="DestinationName">
  184.                     <itemstyle horizontalalign="Center" />
  185.                     </asp:boundfield>
  186.                     <asp:boundfield DataField="StartTime" HeaderText="Start Time" SortExpression="StartTime">
  187.                     <itemstyle horizontalalign="Center" />
  188.                     </asp:boundfield>
  189.                     <asp:boundfield DataField="EndTime" HeaderText="End Time" SortExpression="EndTime">
  190.                     <itemstyle horizontalalign="Center" />
  191.                     </asp:boundfield>
  192.                     <asp:templatefield HeaderText="Transferred Call ID" ConvertEmptyStringToNull="False">
  193.                     <ItemTemplate>
  194.                     <asp:HyperLink ID="TransferredCallId" runat="server" Text='<%# Container.DataItem("TransferredCallId2") %>' NavigateUrl='<%# "~/TransferDetail.aspx?CallId="&Container.DataItem("TransferredCallId2")%>'/>
  195.                     </ItemTemplate>
  196.                     <itemstyle horizontalalign="Center" />
  197.                     </asp:templatefield>
  198.                     <asp:buttonfield ButtonType="Image" CommandName="cmdPlayFile" HeaderText="Play" ImageUrl="~/Images/play_button.gif">
  199.                     <itemstyle horizontalalign="Center" />
  200.                     </asp:buttonfield>
  201.                     <asp:buttonfield ButtonType="Image" CommandName="cmdDeleteFile" HeaderText="Delete" ImageUrl="~/Images/delete_button.gif">
  202.                     <itemstyle horizontalalign="Center" />
  203.                     </asp:buttonfield>
  204.                 </Columns>
  205.                 <pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center" />
  206.                 <selectedrowstyle backcolor="#D1DDF1" font-bold="True" forecolor="#333333" />
  207.                 <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
  208.                 <editrowstyle backcolor="#2461BF" />
  209.                 <alternatingrowstyle backcolor="White" />
  210.             </asp:GridView>
  211.             <br />
  212.             <asp:SqlDataSource ID="CDRDataSource" runat="server" 
  213.                 ConnectionString="<%$ ConnectionStrings:IpPbxConnectionString %>" 
  214.                 ProviderName="<%$ ConnectionStrings:IpPbxConnectionString.ProviderName %>" 
  215.                 SelectCommand="SELECT IpPbxCDR.*, IpPbxCDR_DurationTable.* FROM IpPbxCDR INNER JOIN IpPbxCDR_DurationTable ON IpPbxCDR.CallId = IpPbxCDR_DurationTable.CallId">
  216.             </asp:SqlDataSource>
  217.         </div>
  218.     </div>
  219.     <div id="footer">
  220.     Copyright  2007-8 by Me
  221.     </div>
  222.     </form>
  223. </body>
  224. </html>
I'm sorry this is a bit long but I don't think I can cut it down anymore and still show the relevant parts. All the processing is done in code behind.

The page does postback when the play or delete button in the gridview is pressed. If the code behind can't find the associated file then the alert box appears and after clicking ok the screen comes back wierd!

Any helpful suggestions you have would be most appreciated.

Many thanks,

Gwyn
Jan 5 '08 #3

gits
Expert Mod 5K+
P: 5,329
i don't find the alert() .... how do you generate the alertbox?
Jan 5 '08 #4

Gwyn Thomas
P: 10
I'm sorry...I do that in the code behind...

Public Sub DisplayAlert(ByVal msg As String)
Response.Write("<script language=JavaScript> alert('" & msg & "'); </script>")
End Sub

Ideally, I would like you of the boxes to be a confirm type but can't find any code to do this in code behind and be able to retrieve the return value, ok or cancel, and continue processing based on that value.
Jan 5 '08 #5

gits
Expert Mod 5K+
P: 5,329
so that is an entirely serverside problem ... as far as i understand you have an asp-page ... the user makes a decision and the page is posted back to the server where you validate the action and write an alert mesage to the page when there was a wrong action taken by the user before. may be when you use:

Expand|Select|Wrap|Line Numbers
  1. Response.Write("<script type=\"text/javascript\"> window.onload = function() { alert('" & msg & "'); };</script>");
it works as you expect? with that the message should be displayed when the page is fully loaded to the client ...

kind regards
Jan 5 '08 #6

Gwyn Thomas
P: 10
I'll give that a try and see what happens.

Many thanks again and I'll let you know if it sorts it out.

Gwyn.
Jan 5 '08 #7

Gwyn Thomas
P: 10
It doesn't quite do it...

The page posts back and then reloads with the alert box on top but the text size and font have changed. As you can see from the CSS above I am using Small Arial font but when it comes back it is medium or large and looks like Times.

When the page is reposted when I click on another button that causes a postback the text returns to normal???

Is there a simple way to trigger a postback?

Thanks

Gwyn
Jan 5 '08 #8

gits
Expert Mod 5K+
P: 5,329
i wonder about this problem ... in case you remove the alert everything works fine?
Jan 5 '08 #9

Gwyn Thomas
P: 10
Yes, you just don't get informed when there is a problem retreiving or deleting a file.

I have also now noticed that when the page is in this state (after the alert box with the larger text) that if I click another button, or the same one again that I don't get the alert box at all until the page has been reset back to the initial state.

Any ideas?
Jan 5 '08 #10

gits
Expert Mod 5K+
P: 5,329
Yes, you just don't get informed when there is a problem retreiving or deleting a file.

I have also now noticed that when the page is in this state (after the alert box with the larger text) that if I click another button, or the same one again that I don't get the alert box at all until the page has been reset back to the initial state.

Any ideas?
sure ... since we have added it to the documents onload-handler that is only called when the page is (re)loaded ... but to me that seems a very strange problem ... what happens when you put the following in the body?

Expand|Select|Wrap|Line Numbers
  1. <body onload="alert('test');">
and remove the other alert for testing purposes.

kind regards
Jan 5 '08 #11

Gwyn Thomas
P: 10
I'll have to give this a try tomorrow as it's time to go home!!! Yay!

I will try it out and let you know.

Many thanks for all your efforts this afternoon, I really appreciate it.

Gwyn.
Jan 5 '08 #12

Gwyn Thomas
P: 10
Hi,

Thanks again for the help the other day.

I implemented that onload alert in the body as you suggested and that has no affect on the font style at all???

I'm beginning to think that perhaps it is the use of javascript attached to a command button within a Gridview.

I might try changing it to a template column and doing it that way and see what happens unless you have a better suggestion?

Thanks again,

Gwyn
Jan 7 '08 #13

Gwyn Thomas
P: 10
Template fields are not the solution as I need to back end processing on the information and therefore use the RowCommand and more specifically the rowindex value provided by it and Template fields don't seem to be able to pass this value, only button fields.

Damn!
Jan 7 '08 #14

gits
Expert Mod 5K+
P: 5,329
hmmm ... sadly i'm not very familiar with asp so i cannot really say that there could be a problem with javascript-code ... but it would be very strange in case it would :) ... as far as i understood the problem now we have the following:

1. page is completely rendered through asp and delivered correctly
2. client renders it correctly and user takes an action
3. asp recieves the action and identifies an error with the user's action
3.1. asp writes an alert to the page

now: is the page precessed completly and then send back to the client? or immediatly after adding the alert? it should be send completely ... in case you have a look at the source-code when it is sent back to the client ... is that complete?

kind regards
Jan 8 '08 #15

Gwyn Thomas
P: 10
Yes, once the button in the gridview is clicked the code behind processes the request and if a matching file exists it is played, if not, the alert box is shown on the page being re-loaded. At this point the text comes back a different size behind the alert box.

On clicking one of the other buttons on the form which causes a postback the text is returned to normal.
Jan 8 '08 #16

P: 1
Please remove where you write Response.Write(message)
instead of this use

message= "r u ok";
ScriptManager.RegisterClientScriptBlock(this,
this.GetType(), Guid.NewGuid().ToString(), message,true);


respoce.write causing the problem
Jul 28 '10 #17

Post your reply

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