Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all 5678 articles
Browse latest View live

Why doesn't Ajax calendar extender work until I click any button ?

$
0
0

I have an AjaxCalendarExtender applied on text box. It doesn't work until i click button within page (any asp button which doesn't post back). After clicking any button it starts working like a charm.

Why ?

<asp:TextBox ID="txtBoxDateOfBirth" runat="server" CssClass="form-control"></asp:TextBox><asp:CalendarExtender ID="calExt1" runat="server" Format="dd/MMM/yyyy" TargetControlID="txtBoxDateOfBirth">

Button:

<asp:Button ID="btnShowViewPersonalInfo" runat="server"OnClick="btnShowViewPersonalInfo_Click"/>

this button doesn't nothing big, just changes VIEWs in webform.


How to hide AJAX modal automatically ?

$
0
0

I have an ajax modal in page. I want it to disappear after e.g. 3 seconds without refreshing or post back on page. I tried TIMER but the postsback and looks weird. 

Any clean way to hide MODAL after few seconds.

<asp:ModalPopupExtender ID="mdlMessageBox" BackgroundCssClass="modalBackground" runat="server" TargetControlID="hdnField1"
PopupControlID="pnlMessageBox"></asp:ModalPopupExtender>



Multiple Preloaders

$
0
0

Hi there,

I've created a page which has multiple updatePanel instances and updateProgress instances.

In the code behind i use three remote webservice calls which i load in the Threadpool using the QueueUserWorkItem.

Now when i load the page i have three preloaders running when the main "invoke" button is pressed, what i need is that all of the preloaders work independent from each other, now they don't and this has to do with the Threadpool and a while loop i use for the Thread.Sleep.

Does anyone know a working example reference or tutorial on this, or does any of you have tips on how to do this ?

Kind regards,

K

Why AjaxMaskExtender doesn't work with backspace ?

$
0
0

I have used AJAX latest tool kit but AjaxMaskExtender doesn't work properly i.e. BackSpace doesn't in it. why ? 

<div class="form-group"><label class="control-label" for="disabledInput">CNIC</label><asp:TextBox ID="TextBoxCNIC" runat="server" MaxLength="15" Height="40px"
                                    CssClass="form-control"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidatorModel" runat="server" ControlToValidate="TextBoxCNIC"
                                    ErrorMessage="*" Display="Dynamic" ValidationGroup="0"></asp:RequiredFieldValidator><cc1:MaskedEditExtender ID="MaskedEditExtenderCNIC" runat="server" TargetControlID="TextBoxCNIC"
                                    Mask="99999-9999999-9"
                                    MessageValidatorTip="true"
                                    OnFocusCssClass="MaskedEditFocus"
                                    OnInvalidCssClass="MaskedEditError"
                                    MaskType="Number"
                                    InputDirection="LeftToRight"
                                    ErrorTooltipEnabled="True"></cc1:MaskedEditExtender></div>

The Controls collection cannot be modified because the control contains code blocks (i.e. ).

$
0
0

Please Help Me For This Error...

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="User_Registration" %><%@ PreviousPageType VirtualPath="~/User/Default.aspx" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title><script type="text/javascript" src="../Scripts/jquery-2.1.4.js"></script><script type="text/javascript" src="../Scripts/jquery-ui-1.11.4.js"></script><link href="../Content/themes/themes/flick/jquery-ui.css" rel="stylesheet" /><link href="../Content/themes/themes/flick/theme.css" rel="stylesheet" /><script type="text/javascript" >$(document).ready(function () {$(document).tooltip({ track: true });$("#<%=txtEmail.ClientID%>").blur(function () {
                 var email = $("#<%=txtEmail.ClientID%>").val();
                    if (email != "") {$.ajax({
                            type: "POST",
                            contentType: "application/json;charset=utf-8",
                            url: "Default.aspx/CheckEmailAvailablity",
                            data: "{email:'" + email + "'}",
                            dataType: "json",
                            success: function (response) {
                                var value = response.d;
                                if (value > 0) {$("#<%=lblStatus.ClientID%>").html("<b style='color:red'>Email Id is Alerady Register Please Try Again!!!</b>");$("#<%=txtEmail.ClientID%>").focus();$("#<%=btnRegister.ClientID%>").prop("disabled", true);
                                }
                                else {$("#<%=lblStatus.ClientID%>").html("<b style='color:green'>You can Use this Email Id!!!</b>");$("#<%=btnRegister.ClientID%>").prop("disabled", false);
                                }
                            },
                            error: function (error) {
                                alert("Error:" + error.statusText);
                            }
                        });
                    }


            });
            $("#<%=txtDateOfBirth.ClientID%>").datepicker({
                changeMonth:true,
                changeYear: true,
                maxDate: 0,
                showOp:"both",
                yearRange:"-100:+0",
                dateFormat:"dd-mm-yy"
            })

             });



        </script></head><body><form id="form1" runat="server"><asp:ScriptManager ID="sp1" runat="server"></asp:ScriptManager><div style="background-color:aqua"><table><tr><td colspan="3" style="text-align:center"><h1> Register Here</h1></td></tr><tr><td>
                First Name</td><td>&nbsp;</td><td><asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>    <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="txtFirstName" ErrorMessage="First Name Required" SetFocusOnError="true" ></asp:RequiredFieldValidator></td></tr><tr><td>
                Middle Name</td><td>&nbsp;</td><td><asp:TextBox ID="txtMiddleName" runat="server"></asp:TextBox>    </td></tr><tr><td>
               Last Name</td><td>&nbsp;</td><td><asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>    </td></tr><tr><td>
                Date Of Birth</td><td>&nbsp;</td><td><asp:TextBox ID="txtDateOfBirth" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="rfv2" runat="server" ControlToValidate="txtDateOfBirth" ErrorMessage="Select Date Of Birth" ></asp:RequiredFieldValidator>&nbsp;<br /><asp:CheckBox ID="chkIsAgeSecrete" runat="server" Text="Is Age Secret" />   </td></tr><tr><td>
               Gender</td><td>&nbsp;</td><td><asp:RadioButton ID="rb1Male" runat="server" GroupName="Gender" Text="Male" Checked="true" />&nbsp;&nbsp;<asp:RadioButton ID="rb2Female" runat="server" GroupName="Gender" Text="Female" /> </td></tr><tr><td>
               Mobile No</td><td>+91</td><td><asp:TextBox ID="txtMobileNo" runat="server"></asp:TextBox>    <asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="txtMobileNo" ErrorMessage="Enter Mobile Number"  ></asp:RequiredFieldValidator></td></tr><tr><td>
                Email Id</td><td>&nbsp;</td><td><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="rfv4" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email Id Required" ></asp:RequiredFieldValidator>  <br /><asp:Label ID="lblStatus" runat="server"></asp:Label></td></tr><tr><td>
                Password</td><td>&nbsp;</td><td><asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="rfv5" runat="server" ControlToValidate="txtPassword" ErrorMessage="Password Required" ></asp:RequiredFieldValidator>  </td></tr><tr><td>
                Re-Enter Password</td><td>&nbsp;</td><td><asp:TextBox ID="txtConfirmPassword" TextMode="Password" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="rfv7" runat="server" ControlToValidate="txtConfirmPassword" ErrorMessage="Confirm Password Required"></asp:RequiredFieldValidator><asp:CompareValidator ID="cp1" runat="server" ControlToCompare="txtPassword" ControlToValidate="txtConfirmPassword" ErrorMessage="Password and Confirm Password Should be Match"></asp:CompareValidator></td></tr><tr><td></td><td></td><td><asp:Button ID="btnRegister" runat="server" Text="Register Now Its Free >>" OnClick="btnRegister_Click" BorderColor="Black" BorderStyle="Inset" Font-Bold="true" style="background-color:aqua;color:green;border-radius:10px 10px"  /></td></tr></table>    </div><asp:Panel ID="Rgistration" runat="server" Width="100%" BorderColor="Green" BorderStyle="Outset" BorderWidth="5" BackColor="Pink" style="border-radius:10px 10px"><asp:Panel ID="RgistrationTitle" runat="server" Width="100%" HorizontalAlign="Center" style="cursor:move;display:none"><b>Registration Status ! ! !</b></asp:Panel><asp:Label ID="lblRegistrationStatus" runat="server" style="display:none"></asp:Label><asp:Button ID="btnOk" runat="server" Text="Ok" /></asp:Panel><ajaxToolkit:ModalPopupExtender ID="mpe1" runat="server" TargetControlID="btnRegister" PopupControlID="Rgistration" PopupDragHandleControlID="RgistrationTitle" DropShadow="true" RepositionMode="RepositionOnWindowResizeAndScroll" OkControlID="btnOk" BackgroundCssClass="modelPoupBackground"></ajaxToolkit:ModalPopupExtender></form></body></html>

It Showing Error

Server Error in '/Way2Reminder' Application.


The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.Add(Control child) +12646612
   AjaxControlToolkit.ToolkitResourceManager.RegisterCssReferences(Control control) +1244
   AjaxControlToolkit.ExtenderControlBase.OnLoad(EventArgs e) +104
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

 


modalpopupextender is popup in both condition

$
0
0

I am trying to implement  modalpopupextender but now problem is that panel is visible in both condition. but my target is that when modalpopupextender  visible when condition true. I am trying in this way.

       protected void btn_mark_favorite_Click(object sender, EventArgs e)
        {
            try
            {
                if (UserID != 0)
                {

                    ModalPopupExtender2.Show();
                    Panel1.Visible = false;

                }
                else
                {
                    Response.Redirect("Home.aspx");
                    ModalPopupExtender2.Show();
                }
            }
            catch (Exception ex)
            { }
        }
<asp:ModalPopupExtender ID="ModalPopupExtender2" TargetControlID="btn_mark_favorite" runat="server" PopupControlID="Panel1" BackgroundCssClass="modalBackground"  CancelControlID="btn_cancle_2"></asp:ModalPopupExtender><asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" align="center" style = "display:none"><br /><p>Login first then try to favorite!</p><asp:Button ID="btn_cancle_2" runat="server" Text="Cancle"  BackColor="#0066ff" ForeColor="White" Font-Bold="true" Font-Names="Tahoma" Height="25" Width="70" BorderStyle="None" OnClick="btn_cancle_2_Click"   /></asp:Panel>



How do I maintain an AsyncPostback indefinitely?

$
0
0

Hello,

How do I maintain an AsyncPostback indefinitely?

I have a chatbot app and would like the app to "wake up" users after a period of time.

How would I maintain a responsive app and still not have any code-behind code to run?

Thanks.

Why javascript is not setting asp.net hidden field value ?

$
0
0

I am using javascript to set

asp:hiddenfield


 to '1' but not getting set.

I am setting it like this:

<script type="text/javascript">
function uploadComplete(sender, args) {
var myHidden = document.getElementById('<%= HdnFieldEmployeePicture.ClientID %>');
myHidden.value = '1';
}</script>



from:

<asp:AsyncFileUpload ID="FileUpload1" OnClientUploadComplete="uploadComplete" ClientIDMode="AutoID" UploaderStyle="Modern" runat="server"/> <asp:HiddenField ClientIDMode="Static" ID="HdnFieldHasFileUploaded" runat="server" />



I am checking it on server side:

if (HdnFieldHasFileUploaded.Value == "1")
{



but not set to 1.

AsyncControl and hidden field are inside UpdatePanel.


Why doesn't Async File upload hit UploadCompleted event ?

$
0
0

I have used Ajax Async File Upload in UpdatePanel, It shows that file has been uploaded but it doesn't hit 

Uploaded Complete Event
.
protectedvoidFileUpload1_UploadedComplete(object sender,AjaxControlToolkit.AsyncFileUploadEventArgs e){HdnFieldHasFileUploaded.Value="1";}

why ?

ajax control toolkit by javascript

$
0
0

how to apply style for ajax control toolkit childnodes? for ex: creating ajax combobox in asp.net and apply javascript to change their style but it could not change it will apply only for respected div give some solution to change style for childnodes by using javascript

Assign List to view state ASP.net

$
0
0

Dears
we have .net page has Update panel

<div class="lists collaps_container "><asp:UpdatePanel runat="server" ID="upMain" UpdateMode="Always"><ContentTemplate><table style="width: 100%"><tr><td><common:Message runat="server" ID="ucMessage" /></td></tr></table><common:JalsaStatmentView runat="server" id="JalsaStatmentView" /></ContentTemplate></asp:UpdatePanel><asp:UpdateProgress runat="server" AssociatedUpdatePanelID="upMain" ID="uppMain" DisplayAfter="1"><ProgressTemplate><div class="divWaiting"><img src="/Design/images/loading.gif" height="120" width="120" /></div></ProgressTemplate></asp:UpdateProgress></div>



when we try to edit the page by this code

txtIdea.ReadOnly = ISActive;
txtIdea.CssClass = CSSClass;
txtStatement.ReadOnly = ISActive;
txtStatement.CssClass = CSSClass;
txtSubject.ReadOnly = ISActive;
txtSubject.CssClass = CSSClass;
chkIsResolved.Enabled = !ISActive;

it's work normal, but when i assign the list to view state after that the page keep its state and not change to edit mode

txtIdea.ReadOnly = ISActive;
txtIdea.CssClass = CSSClass;
txtStatement.ReadOnly = ISActive;
txtStatement.CssClass = CSSClass;
txtSubject.ReadOnly = ISActive;
txtSubject.CssClass = CSSClass;
chkIsResolved.Enabled = !ISActive;

List<RequestAttachment> AttachmentList = new List<RequestAttachment>();//dbContext.RequestAttachment.GetByQuery(x => x.EntryTypeId == 2 && x.EntryId == statementID && x.UpdatedBy != HttpContext.Current.User.Identity.Name).ToList();
ViewState.Add("AttachmentList", AttachmentList);//AttachmentList;

when i add the last tow rows to our code the page not work and stay in view mode

* when we change the assign to string like that

ViewState.Add("AttachmentList", "Hello");//AttachmentList;

the page work again and changed to the edit mode ,

My problem why when i add List of object to view state the page not change its mode

Why doesn't ajax control work when page is loaded for the first time ?

$
0
0

I have used ajax toolkit in web forms with updatepanel in it. I have used MaskEditExtender over a textbox. It doesn't work when the page is loaded for the first time but works if a postback occurs on page of any kind. This is the issue for every AjaxControl in page. Why ?

<asp:TextBox ID="txtBoxNICNo" runat="server" onkeypress="return isNumberKeyCNIC(this)" ClientIDMode="Static" placeholder="XXXXX-XXXXXXX-X" MaxLength="15" CssClass="form-control"></asp:TextBox><asp:maskededitextender id="MaskedEditExtenderCNIC" runat="server" targetcontrolid="txtBoxNICNo" mask="99999-9999999-9" messagevalidatortip="true"
onfocuscssclass="MaskedEditFocus" oninvalidcssclass="MaskedEditError"
masktype="Number" inputdirection="LeftToRight"errortooltipenabled="True"></asp:maskededitextender>



modalpopupextender CSS in gridview breaks on extended use

$
0
0

Hi

I have a gridview that contains an image button showing the images of employees. When the image button is clicked, a larger version of the image is shown. This all works fine. However, after 10 (and this is repeatable) clicks of the images the CSS of the popup breaks and the image is behind the gridview. 

Appreciate any insight

Thank you

Michael

HTML Extender Editor --JavaScript runtime error: Invalid argument. in IE11

$
0
0

This is the line that is erroring in the ajax toolkit: b.collapse(this._editableDiv.firstChild,t)

MaskedEditExtender behavior

$
0
0

I am referencing the latest AJAXControlToolkit in my ASP.Net 4.0.xxx WebForm application. I am using the extender to format a phone number field as follows. If the field is left empty then I don't need any mask showing up. But if the phone number is entered then I don't want the mask to disappear when tabbed away from that field, but this is exactly whats happening. The hyphens in the mask disappear and only numbers are left in the field. How can I prevent this from happening?

<asp:TextBox ID="Contact_HomePhone" runat="server" MaxLength="50"></asp:TextBox>
<ajaxToolkit:MaskedEditExtender
Mask="999-999-9999" MaskType="Number" ClearMaskOnLostFocus="True"
ID="Contact_HomePhone_MaskedEditExtender" runat="server" TargetControlID="Contact_HomePhone" />

Thanks.


Modal Polpup Closes immediately

$
0
0

I have a formview with client information displayed. A    modal popup is supposed to show a form to update that information. However when I click the button the popup flasheds opened and closed in a fraction of a second.

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><div id="blkdiv" class="blackpages"><div><div><div style="float:left; width:340px; height:250px; border:1px dashed gray; margin-top:25px;"><asp:FormView ID="FormView1" runat="server" DataKeyNames="riderid" ForeColor="WhiteSmoke"><EditItemTemplate>
                    titleid:<asp:TextBox ID="titleidTextBox" runat="server" Text='<%# Bind("titleid") %>' /><br />
                    fname:<asp:TextBox ID="fnameTextBox" runat="server" Text='<%# Bind("fname") %>' /><br />
                    mname:<asp:TextBox ID="mnameTextBox" runat="server" Text='<%# Bind("mname") %>' /><br />
                    lname:<asp:TextBox ID="lnameTextBox" runat="server" Text='<%# Bind("lname") %>' /><br />
                    suffixid:<asp:TextBox ID="suffixidTextBox" runat="server" Text='<%# Bind("suffixid") %>' /><br />
                    dname:<asp:TextBox ID="dnameTextBox" runat="server" Text='<%# Bind("dname") %>' /><br />
                    dob:<asp:TextBox ID="dobTextBox" runat="server" Text='<%# Bind("dob") %>' /><br />
                    gender:<asp:TextBox ID="genderTextBox" runat="server" Text='<%# Bind("gender") %>' /><br />
                    comment:<asp:TextBox ID="commentTextBox" runat="server" Text='<%# Bind("comment") %>' /><br />
                    riderid:<asp:Label ID="rideridLabel1" runat="server" Text='<%# Eval("riderid") %>' /><br /><asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /></EditItemTemplate><InsertItemTemplate>
                    titleid:<asp:TextBox ID="titleidTextBox" runat="server" Text='<%# Bind("titleid") %>' /><br />
                    fname:<asp:TextBox ID="fnameTextBox" runat="server" Text='<%# Bind("fname") %>' /><br />
                    mname:<asp:TextBox ID="mnameTextBox" runat="server" Text='<%# Bind("mname") %>' /><br />
                    lname:<asp:TextBox ID="lnameTextBox" runat="server" Text='<%# Bind("lname") %>' /><br />
                    suffixid:<asp:TextBox ID="suffixidTextBox" runat="server" Text='<%# Bind("suffixid") %>' /><br />
                    dname:<asp:TextBox ID="dnameTextBox" runat="server" Text='<%# Bind("dname") %>' /><br />
                    dob:<asp:TextBox ID="dobTextBox" runat="server" Text='<%# Bind("dob") %>' /><br />
                    gender:<asp:TextBox ID="genderTextBox" runat="server" Text='<%# Bind("gender") %>' /><br />
                    comment:<asp:TextBox ID="commentTextBox" runat="server" Text='<%# Bind("comment") %>' /><br /><asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />&nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /></InsertItemTemplate><ItemTemplate>
                    titleid:<asp:Label ID="titleidLabel" runat="server" Text='<%# Bind("titleid") %>' /><br />
                    fname:<asp:Label ID="fnameLabel" runat="server" Text='<%# Bind("fname") %>' /><br />
                    mname:<asp:Label ID="mnameLabel" runat="server" Text='<%# Bind("mname") %>' /><br />
                    lname:<asp:Label ID="lnameLabel" runat="server" Text='<%# Bind("lname") %>' /><br />
                    suffixid:<asp:Label ID="suffixidLabel" runat="server" Text='<%# Bind("suffixid") %>' /><br />
                    dname:<asp:Label ID="dnameLabel" runat="server" Text='<%# Bind("dname") %>' /><br />
                    dob:<asp:Label ID="dobLabel" runat="server" Text='<%# Bind("dob") %>' /><br />
                    gender:<asp:Label ID="genderLabel" runat="server" Text='<%# Bind("gender") %>' /><br />
                    comment:<asp:Label ID="commentLabel" runat="server" Text='<%# Bind("comment") %>' /><br />
                    riderid:<asp:Label ID="rideridLabel" runat="server" Text='<%# Eval("riderid") %>' /><br /><asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Button" CausesValidation="False" /><br /></ItemTemplate></asp:FormView><asp:SqlDataSource ID="dsdisplayrider" runat="server" ConnectionString="<%$ ConnectionStrings:BDUCConnectionString %>" SelectCommand="um_fetchridereditdata" SelectCommandType="StoredProcedure"><SelectParameters><asp:Parameter Name="rider" Type="Int32" /></SelectParameters></asp:SqlDataSource></div><div style="float:left; width:340px; border:1px dashed aqua; height:250px; margin-left:15px; margin-top:25px;"><asp:Label ID="Label3" runat="server" Font-Bold="true" Font-Size="Large" ForeColor="White" Text="Pookiewanna"></asp:Label></div><asp:SqlDataSource ID="dsRider" runat="server" ConnectionString="<%$ ConnectionStrings:BDUCConnectionString %>" SelectCommand="um_updateriderinfo" SelectCommandType="StoredProcedure" UpdateCommand="um_updateriderinfo" UpdateCommandType="StoredProcedure"><SelectParameters><asp:Parameter Name="riderid" Type="Int32" /><asp:Parameter Name="titleid" Type="Int32" /><asp:Parameter Name="fname" Type="String" /><asp:Parameter Name="lname" Type="String" /><asp:Parameter Name="mname" Type="String" /><asp:Parameter Name="suffixid" Type="Int32" /><asp:Parameter Name="dob" Type="DateTime" /><asp:Parameter Name="gender" Type="String" /><asp:Parameter Name="dname" Type="String" /><asp:Parameter Name="comment" Type="String" /></SelectParameters><UpdateParameters><asp:Parameter Name="riderid" Type="Int32" /><asp:Parameter Name="titleid" Type="Int32" /><asp:Parameter Name="fname" Type="String" /><asp:Parameter Name="lname" Type="String" /><asp:Parameter Name="mname" Type="String" /><asp:Parameter Name="suffixid" Type="Int32" /><asp:Parameter Name="dob" Type="DateTime" /><asp:Parameter Name="gender" Type="String" /><asp:Parameter Name="dname" Type="String" /><asp:Parameter Name="comment" Type="String" /></UpdateParameters></asp:SqlDataSource></div><asp:Panel ID="pnledit" runat="server" CssClass="gainsPanel" Width="270px"><asp:FormView ID="fveditrider" runat="server" DataKeyNames="riderid" DefaultMode="Edit" ForeColor="WhiteSmoke" Width="250" BackColor="Black"><EditItemTemplate>
                    titleid:<asp:TextBox ID="titleidTextBox" runat="server" Text='<%# Bind("titleid") %>' /><br />
                    fname:<asp:TextBox ID="fnameTextBox" runat="server" Text='<%# Bind("fname") %>' /><br />
                    mname:<asp:TextBox ID="mnameTextBox" runat="server" Text='<%# Bind("mname") %>' /><br />
                    lname:<asp:TextBox ID="lnameTextBox" runat="server" Text='<%# Bind("lname") %>' /><br />
                    suffixid:<asp:TextBox ID="suffixidTextBox" runat="server" Text='<%# Bind("suffixid") %>' /><br />
                    dname:<asp:TextBox ID="dnameTextBox" runat="server" Text='<%# Bind("dname") %>' /><br />
                    dob:<asp:TextBox ID="dobTextBox" runat="server" Text='<%# Bind("dob") %>' /><br />
                    gender:<asp:TextBox ID="genderTextBox" runat="server" Text='<%# Bind("gender") %>' /><br />
                    comment:<asp:TextBox ID="commentTextBox" runat="server" Text='<%# Bind("comment") %>' /><br />
                    riderid:<asp:Label ID="rideridLabel1" runat="server" Text='<%# Eval("riderid") %>' /><br /><asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /></EditItemTemplate><ItemTemplate>
                    titleid:<asp:Label ID="titleidLabel" runat="server" Text='<%# Bind("titleid") %>' /><br />
                    fname:<asp:Label ID="fnameLabel" runat="server" Text='<%# Bind("fname") %>' /><br />
                    mname:<asp:Label ID="mnameLabel" runat="server" Text='<%# Bind("mname") %>' /><br />
                    lname:<asp:Label ID="lnameLabel" runat="server" Text='<%# Bind("lname") %>' /><br />
                    suffixid:<asp:Label ID="suffixidLabel" runat="server" Text='<%# Bind("suffixid") %>' /><br />
                    dname:<asp:Label ID="dnameLabel" runat="server" Text='<%# Bind("dname") %>' /><br />
                    dob:<asp:Label ID="dobLabel" runat="server" Text='<%# Bind("dob") %>' /><br />
                    gender:<asp:Label ID="genderLabel" runat="server" Text='<%# Bind("gender") %>' /><br />
                    comment:<asp:Label ID="commentLabel" runat="server" Text='<%# Bind("comment") %>' /><br />
                    riderid:<asp:Label ID="rideridLabel" runat="server" Text='<%# Eval("riderid") %>' /><br /><asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" /></ItemTemplate></asp:FormView><asp:SqlDataSource ID="dseditrider" runat="server" ConnectionString="<%$ ConnectionStrings:BDUCConnectionString %>" SelectCommand="um_fetchridereditdata" SelectCommandType="StoredProcedure" UpdateCommand="um_updateriderinfo" UpdateCommandType="StoredProcedure"><SelectParameters><asp:Parameter Name="rider" Type="Int32" /></SelectParameters><UpdateParameters><asp:Parameter Name="riderid" Type="Int32" /><asp:Parameter Name="titleid" Type="Int32" /><asp:Parameter Name="fname" Type="String" /><asp:Parameter Name="lname" Type="String" /><asp:Parameter Name="mname" Type="String" /><asp:Parameter Name="suffixid" Type="Int32" /><asp:Parameter Name="dob" Type="DateTime" /><asp:Parameter Name="gender" Type="String" /><asp:Parameter Name="dname" Type="String" /><asp:Parameter Name="comment" Type="String" /></UpdateParameters></asp:SqlDataSource></asp:Panel><ajaxToolkit:ModalPopupExtender ID="pnledit_ModalPopupExtender" runat="server" BehaviorID="pnledit_ModalPopupExtender" 
             TargetControlID="pnlopen" PopupControlID="pnledit" BackgroundCssClass="modalBackground" CancelControlID="UpdateCancelButton"></ajaxToolkit:ModalPopupExtender> <asp:Button ID="pnlopen" runat="server" Text="Button" style="display:none;" /></div></div></asp:Content>

C#

using System;
using System.Collections.Generic;
using System.Data;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Profile_MyProfiles : System.Web.UI.Page
{
    int rid;
    protected void Page_Load(object sender, EventArgs e)
    {
       if (!IsPostBack)
       {
            rid = Convert.ToInt32(Session["RID"]);
            rider rd = new rider();
            FormView1.DataSource = rd.ridereditdata(rid);
            FormView1.DataBind();
        }
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        rider rd = new rider();
        fveditrider.DataSource = rd.getrider(rid);
        fveditrider.DataBind();
        pnledit_ModalPopupExtender.Show();
    }
}

Modal In Modal scroll bar disapears

$
0
0

Hello

I have a page that opens a bootstrap modal, which is quite long and requires a scroll bar, and has a link that opens another modal.

When the second modal is dismissed the scroll bar disappears which makes the first modal unreadable.

This is a sample code:

<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
        Launch demo modal</button><div class="modal fade" tabindex="-1" role="dialog" id="myModal"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><h4 class="modal-title">Modal title</h4></div><div class="modal-body"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus cursus convallis neque, at finibus lacus pellentesque ut. Mauris tempor id velit at eleifend. Cras in nisi imperdiet eros interdum interdum commodo viverra metus. Morbi dapibus ex ut urna tincidunt, eu pellentesque sem euismod. Cras id viverra dui. Donec id ante tempor, aliquam est vel, interdum ipsum. Suspendisse potenti.</p><p>In hac habitasse platea dictumst. Mauris tempus pretium magna, ut pulvinar libero laoreet at. Sed rutrum, diam in fringilla finibus, nibh ipsum fringilla lacus, at sodales metus purus nec lectus. Nulla mattis a enim sed dapibus. Etiam sit amet volutpat orci. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse laoreet nunc sed turpis viverra maximus. Integer gravida arcu dolor, vel dapibus nisl finibus vel. Suspendisse molestie enim sed tincidunt maximus. Vivamus ultricies consequat ultrices. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Phasellus viverra, leo sed semper ultrices, lacus odio blandit nunc, eget mattis odio turpis at quam. Praesent elementum faucibus mauris pharetra convallis. Aliquam erat volutpat.</p><p>Nulla vel fermentum lacus. Nunc tempor quam quis ante faucibus, id egestas lacus suscipit. Phasellus non odio vitae lacus vehicula volutpat. Nulla lorem eros, euismod et interdum in, malesuada sit amet velit. Fusce pretium eros sed aliquam efficitur. Vivamus elit elit, dapibus non venenatis in, efficitur vitae lacus. Quisque at lorem diam.</p><p>Nunc rhoncus molestie congue. Nunc id erat blandit, congue velit vitae, interdum urna. Sed sed vestibulum risus, in elementum erat. Nam volutpat fermentum ex non ultrices. Aliquam sit amet augue eu mi bibendum fermentum commodo nec urna. Nunc nec lacinia felis. Etiam elit tortor, accumsan quis risus vel, tincidunt sagittis ipsum. Curabitur porta vestibulum nulla a eleifend. Donec viverra lacus sit amet justo interdum, in vehicula eros luctus. Fusce auctor faucibus eleifend. Mauris semper scelerisque urna, eu accumsan nisl placerat nec.</p><p>Maecenas imperdiet imperdiet sagittis. Nullam consectetur, massa in mollis imperdiet, ante nibh imperdiet eros, a laoreet purus ligula eget nulla. Fusce condimentum in dui gravida placerat. Morbi eleifend a quam vel laoreet. Donec sit amet arcu porttitor, pharetra ligula nec, aliquet dui. Nullam vulputate euismod ipsum. Quisque lectus ipsum, fringilla a lobortis et, tincidunt nec nisl. Suspendisse vulputate erat ut urna volutpat mollis. Cras faucibus blandit risus. Aliquam sed diam vitae odio blandit scelerisque. Donec a lacus ac sem elementum tincidunt. Sed quis ornare elit. Donec viverra neque eu magna cursus viverra.</p><p>Mauris vulputate, lorem quis ullamcorper accumsan, augue odio egestas nunc, at posuere neque tellus et massa. Praesent ultrices non lacus vel euismod. Aliquam elit nibh, viverra efficitur varius sit amet, suscipit condimentum turpis. Nulla vitae lacus ultrices, cursus leo dictum, maximus metus. Vestibulum libero massa, aliquam quis rhoncus ac, suscipit in justo. Integer placerat non enim ut laoreet. Aenean id felis urna. Nunc tortor tellus, elementum id porta nec, egestas non nibh. Nulla feugiat dui vel leo gravida, in dapibus justo ultrices. Donec quis magna pretium, dictum quam et, hendrerit tortor. Etiam id porta massa.</p><p>Nam et mauris porttitor, egestas orci vitae, pretium massa. Phasellus in lacus ultrices, commodo magna porta, bibendum ipsum. Nulla interdum convallis quam luctus auctor. Pellentesque in nulla a ex pretium vulputate ac eget felis. In bibendum est dui, vel vestibulum odio bibendum et. Duis ultrices molestie sollicitudin. Pellentesque turpis turpis, ornare et sodales eget, cursus sit amet nisi. Proin sed metus vel neque elementum porta. Mauris accumsan nulla in nibh facilisis, eu commodo turpis elementum. Fusce ullamcorper viverra justo, condimentum mattis orci euismod non. Aliquam accumsan erat in fermentum hendrerit. Duis dapibus tellus non quam dignissim, ut maximus dui commodo. Suspendisse vel dui placerat, viverra tortor nec, mattis velit. Donec non neque arcu. Suspendisse pulvinar justo et lorem convallis mattis. Mauris sem odio, volutpat id suscipit nec, blandit eget sapien.</p><p>Nam imperdiet id ante sagittis elementum. Nunc ullamcorper justo ut nisi feugiat mattis. Donec at augue et est pulvinar pretium ac sit amet enim. Suspendisse velit quam, laoreet vel volutpat non, pulvinar a lorem. Cras vel efficitur neque, sed vulputate ex. Aenean a velit in mauris ultrices euismod et in tortor. Donec tempus rhoncus nunc. Pellentesque sollicitudin, enim sed aliquet maximus, nisl justo scelerisque neque, a suscipit lacus ex in augue. Donec maximus, nibh a hendrerit pharetra, sem magna posuere libero, eget pellentesque est elit quis ante. Vivamus interdum accumsan odio, et varius dolor tempor ac. Donec magna odio, porta elementum leo vitae, suscipit gravida magna.</p><p>Nullam in congue urna, vel tincidunt justo. Duis consectetur magna sed felis semper efficitur. Aenean aliquet dolor sed ligula porttitor, ut eleifend nisi gravida. Nunc justo ipsum, facilisis quis lectus ut, iaculis consectetur erat. Praesent interdum, metus eget ornare elementum, dui tellus ultrices ex, eget condimentum sem mauris sed eros. Etiam a nisi nisl. Phasellus gravida nisl nisl, vitae feugiat nisl dignissim sed. Duis ac sollicitudin nunc. Donec eget gravida urna, eu bibendum tortor. Sed elit mi, finibus at lacinia et, laoreet at urna. Quisque consequat lectus ac dignissim sagittis.</p><p>Fusce egestas tortor id nisi tempus efficitur. Vestibulum vitae purus sed quam sagittis efficitur. Proin scelerisque imperdiet odio ut mattis. Aliquam maximus rutrum nunc, quis consequat lacus ullamcorper id. Sed feugiat pulvinar nisi, nec vestibulum ligula posuere et. Quisque pretium consectetur erat at bibendum. Mauris maximus lectus eu congue tristique. Pellentesque eu cursus nisi, eget convallis ligula. Mauris bibendum ullamcorper tellus sit amet tempus. </p><button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal2">
                        Launch demo modal in modal</button></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Close</button><button type="button" class="btn btn-primary">Save changes</button></div></div></div></div><div class="modal fade" tabindex="-1" role="dialog" id="myModal2"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><h4 class="modal-title">Modal In Modal title</h4></div><div class="modal-body"><p>One fine body modal 2</p></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Close</button><button type="button" class="btn btn-primary">Save changes</button></div></div></div></div>

Any suggestions?

403 error on postback for pages having Ajax toolkit tabcontainer

$
0
0

I have deployed an ASP .NET web application on IIS8 with Forms authentication and anonymous authentication enabled. When I Access the Website from Intranet after giving in credentials via Login page, it runs without any problems. But when I Login to the application from Internet as an external user would do, Home page and other pages will load without any problem, but on postback like selected index changed or button click, then Website will throw 403 Forbidden error as follows "You don't have permission to Access page.aspx on this Server"

I tried in IE and Chrome, both throws error. I even tried With identity impersonate = true but still it throws same error. I have IUSR having full control on the Folder.

Later I find out that only those pages havinh ajax toolkit tabcontainer is throwing 403 error. When I remove tabcontainer it works fine.

Any solutions or suggestions on this? 

Web.config is as follows

<?xml version="1.0" encoding="utf-8"?><!--
    For more information on how to configure your ASP.NET application,  
    please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --><configuration><configSections><!-- For more information on Entity Framework configuration, visit  
       http://go.microsoft.com/fwlink/?LinkID=237468 --><section name="entityFramework" 
       type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, 
       EntityFramework, Version=4.4.0.0, Culture=neutral, 
       PublicKeyToken=b77a5c561934e089" requirePermission="false" /><section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" /></configSections><connectionStrings>    <add name="Test" 
     connectionString="metadata=res://*/Models.xxx_DB.csdl|res://
     */Models.xxx_DB.ssdl|res://*/Models.xxx_DB.msl;provider=
     System.Data.SqlClient;provider connection string=&quot;data  
     source=xxxxxxx\xxx;initial catalog=Test;integrated 
     security=True;pooling=False;multipleactiveresultsets=True;application 
     name=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings><system.web><httpHandlers><add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" /></httpHandlers><httpModules><add name="BypassCache" type="BypassCacheModule, BypassCacheModuleAssembly" /></httpModules><compilation debug="true" targetFramework="4.0"><assemblies><add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" /><add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" /><add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></assemblies><buildProviders><add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /></buildProviders></compilation><authentication mode="Forms"><forms cookieless="UseDeviceProfile" defaultUrl="~/Start.aspx" enableCrossAppRedirects="true" loginUrl="~/Login.aspx" name=".ASPXAUTH" path="/" protection="All" requireSSL="false" slidingExpiration="true" timeout="10080"/></authentication><authorization><deny users="?" /></authorization><profile defaultProvider="DefaultProfileProvider"><providers><add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" /></providers></profile><membership defaultProvider="DefaultMembershipProvider"><providers><add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /></providers></membership><roleManager defaultProvider="DefaultRoleProvider"><providers><add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" /></providers></roleManager><!--
        If you are deploying to a cloud environment that has multiple web server instances,
        you should change session state mode from "InProc" to "Custom". In addition,
        change the connection string named "DefaultConnection" to connect to an instance
        of SQL Server (including SQL Azure and SQL  Compact) instead of to SQL Server Express.
  --><sessionState mode="InProc" customProvider="DefaultSessionProvider"><providers><add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" /></providers></sessionState><pages><controls><add tagPrefix="asp" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /></pages><httpRuntime requestValidationMode="2.0" shutdownTimeout="120" />    </system.web><system.webServer><modules runAllManagedModulesForAllRequests="true" /><defaultDocument><files><add value="Start.aspx" /></files></defaultDocument><validation validateIntegratedModeConfiguration="false" /><handlers><add name="ReportViewerWebControlHandler" preCondition="integratedMode" 
    verb="*" path="Reserved.ReportViewerWebControl.axd" 
    type="Microsoft.Reporting.WebForms.HttpHandler, 
    Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, 
    PublicKeyToken=89845dcd8080cc91" /></handlers></system.webServer><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" /><bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" /><bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-2.1.0.4" newVersion="2.1.0.4" /></dependentAssembly><dependentAssembly><assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-1.4.6.0" newVersion="1.4.6.0" /></dependentAssembly></assemblyBinding></runtime><entityFramework><defaultConnectionFactory 
 type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, 
 EntityFramework"><parameters><parameter value="v11.0" /></parameters></defaultConnectionFactory></entityFramework><nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"  
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><targets><target name="file" xsi:type="File" fileName="${basedir}/Logs/${shortdate}.log" layout="${date}:${callsite}: ${level}: ${message}" /></targets><rules><logger name="*" minlevel="Info" writeTo="file" /></rules></nlog>


And HTML Markup for the page is below

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"><asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptLocalization ="true" EnableScriptGlobalization="true"></asp:ToolkitScriptManager><br /><table class="auto-style1"><tr><td class="col-style11">&nbsp;</td><td><asp:TabContainer ID="TabContainer" runat="server" BorderStyle="None"><asp:TabPanel ID ="TabPanel_xx" runat="server" HeaderText="xxxxx" BorderStyle="None" Font-Size="Medium">                            <ContentTemplate><table class="auto-style1"><tr><td colspan="3"><asp:Label ID="Lbl_Heading" runat="server" Text="xxxxxx." Font-Bold="True" Font-Size="Medium" Font-Names="Arial"></asp:Label>        </td></tr><tr><td class="col-style1"><asp:Label ID="Lbl_xxxx" runat="server" Text="xxxxx" Font-Size="Medium" Font-Names="Arial"></asp:Label>   </td><td class="col-style2"><asp:DropDownList ID="Dl_xxxx" runat="server" width="50%" style="text-align:right" AutoPostBack="true"></asp:DropDownList></td><td class="col-style3"></td></tr><tr><td class="col-style1" style="height:15px"></td><td class="col-style2" style="height:15px"></td><td class="col-style3" style="height:15px"></td></tr></table><br /><table class="auto-style1"><tr><td><asp:FormView ID="FV_xxxx" runat="server" DataSourceID="xxxx" DataKeyNames="xx_Id" Width="53%" Font-Names="Arial">                                                         <ItemTemplate><hr /><h4>Project Name: <%# Eval("xx_Name") %></h4><table class="auto-style1" ><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:Label ID="LBl_xx" runat="server" Text='<%# Bind("xxxxxx") %>'></asp:Label></td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxxx:</td><td class="form-style2"><asp:Label ID="Lbl_xxx" runat="server" Text='<%# Bind("xxxxxxxx") %>'></asp:Label></td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:Label ID="Lbl_xxxx" runat="server" Text='<%# Bind("xxxxxxx") %>'></asp:Label></td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:Label ID="Lbl_xxxx" runat="server" Text='<%# Bind("xxxxxxx") %>'></asp:Label></td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxxx :</td><td class="form-style2"><asp:Label ID="Lbl_xxxx" runat="server" Text='<%# Bind("xxxxxx") %>'></asp:Label></td></tr> <tr><td></td></tr><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:Label ID="xxxxx" runat="server" Text='<%# Bind("xxxxxx") %>'></asp:Label></td></tr> <tr><td></td></tr><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:Label ID="xxxxx" runat="server" Text='<%# Bind("xxxx") %>'></asp:Label></td></tr> <tr><td></td></tr><tr><td class="form-style1"></td><td class="form-style2"><asp:LinkButton ID="EditButton" runat="server" Text="Edit" CommandName="Edit">Edit</asp:LinkButton></td></tr>                                                      </table>                            </ItemTemplate> <EditItemTemplate><hr /><h4>xxxx: <%# Eval("xxxxx") %></h4><table class="auto-style1" ><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:TextBox ID="xxxx" runat="server" Text='<%# Bind("xxxxx") %>' ></asp:TextBox>                                                             </td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:TextBox ID="xxxx" runat="server" Text='<%# Bind("xxxxx") %>' ></asp:TextBox>                                                             </td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxx:</td><td class="form-style2"><asp:TextBox ID="xxxx" runat="server" Text='<%# Bind("xxxxx") %>' ></asp:TextBox></td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:TextBox ID="xxxxx" runat="server" Text='<%# Bind("xxxxxx") %>' ></asp:TextBox></td></tr><tr><td></td></tr><tr><td class="form-style1">xxxxx :</td><td class="form-style2"><asp:TextBox ID="xxx" runat="server" Text='<%# Bind("xxxxxx") %>' ></asp:TextBox>                                                               </td></tr> <tr><td></td></tr><tr><td class="form-style1"></td><td class="form-style2"><asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" Text="Update"/>&nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /></td></tr>                                                                                                         </table>                            </EditItemTemplate>                                               </asp:FormView><asp:EntityDataSource ID="xxxxx" runat="server" ConnectionString="name=Test" DefaultContainerName="Test" 
                                             EnableFlattening="False" EnableUpdate="True" EntitySetName="xxxxx" Where="it.xxx_Id == @xx_Id"><WhereParameters><asp:ControlParameter ControlID="Dl_xxx" Name="xx_Id" PropertyName="SelectedValue" Type="Int32" /></WhereParameters></asp:EntityDataSource></td></tr></table>   </ContentTemplate></asp:TabPanel>

AJAX Update Panel working in ASP.NET for Crystal Reports

$
0
0

Hi,

     I am using Crystal Report Viewer control in Update Panel of Ajax Control. I am facing an error that crystal report navigation and Export/print buttons are creating conflict with each other on using Update Panel otherwise they are working properly. When I bind report with page_init (), navigation buttons of crystal reports are working fine but print/export buttons are not working. For getting functionality of print/export buttons I bind report with page_load() function as well; now print/export functionality is working but navigation buttons couldn't proceed from 2nd page.

How is it possible that all the controls of crystal report toolbox work fine with AJAX CONTROL TOOLKIT???

Regards,

help UpdateProgress not working

$
0
0
Hi to all

I have this code, and I don't know what is wrong.

asp:MultiView ID="multiv" runat="server" EnableTheming="true">
<asp:View ID="VImage" runat="server">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" ></asp:ScriptManagerProxy>

<asp:UpdateProgress ID="UpdateProgress1" runat ="server" DynamicLayout ="false" AssociatedUpdatePanelID ="UpdatePanel2">
<ProgressTemplate >
<img alt="Progress" src="~/Images/Newfolder/Loading.GIF" />
</ProgressTemplate>
</asp:UpdateProgress>


<div id="div2" style="height: 778px; overflow-y: auto;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- <asp:PostBackTrigger ControlID="ImageBtnSave" /> For File upload to get the filename -->
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode ="Conditional" >
<Triggers>
<asp:PostBackTrigger ControlID="ImageBtnSave" />
</Triggers>
<ContentTemplate>

<table style="width: 810px">
<tr>
<td colspan="4">


<asp:FileUpload ID="FileUp" runat="server" AllowMultiple ="true"/>
&nbsp;&nbsp;<asp:ImageButton ID="ImageBtnSave" runat="server"
OnClick="ImageBtnSave_Click"
Width="16px" Height="16px" ImageUrl="~/Images/ImageButton/upload.png" ToolTip="Upload"/>
&nbsp;<asp:ImageButton ID="ImageButton2" runat="server" />
&nbsp;<asp:ImageButton ID="ImageButton3" runat="server" />

</td>
</tr>
<tr>

The updateprogress not shown.

Thanks.
Viewing all 5678 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>