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

IE9 ModalPopupExtender doesn't always show

$
0
0

Hey everyone,

      I am working with a modalpopupextender that is supposed to have the .show() event happen from a clickevent in another modalpopupextender.  What the issue is, is that in IE9 (works in FF, chrome, etc..) every 3 or 4 times this event is triggered the modalpopup doesn't show.  I have debugged the code and the .Show() events are being hit properly, but sometimes just doesn't show the modal popup and I don't know why.  Here is the code to the initial modalpopup where the "Continue" button is clicked to launch the second popupextender.

Any help would be greatly apprecaited.

Thank you,

NickG

Original Popup:

<cc1:ModalPopupExtender ID="ModalPopupExtender7" runat="server"
TargetControlID="linkBtnConfirm" PopupControlID="pnlConfirmAccountAdd"
BackgroundCssClass="modalBackground"></cc1:ModalPopupExtender><asp:Panel ID="pnlConfirmAccountAdd" runat="server" width="500px" style="display:none; background-color:White;border-style:solid;border-width:1px;margin-left:10px;margin-right:10px"><div class="SectionHeaderBar" style="padding-top:8px;height:30px;width:500px;background-repeat:repeat-x;border-style:none;font-size:11pt">&nbsp;&nbsp;Add Accounts</div><div class="FontStandard" style="padding : 10px 10px;"><b>Warning:</b> Accounts can exist in one household only. Therefore, if an account already exists in a household, adding the account to a different household will remove it from the current household, as well as remove the account from any groups it is currently assigned to. In addition, adding/removing accounts to/from a household will impact historical valuations and performance on client statements if the account is currently in a group.<br /><br />
Would you like to add an account(s) to this household?</div>&nbsp;<asp:TextBox ID="TextBox3" runat="server" style="display:none"></asp:TextBox><asp:TextBox ID="TextBox4" runat="server" style="display:none"></asp:TextBox><br /><div style="text-align:right;"><asp:ImageButton onmouseover="this.src='/applications/images/cancel2_over.gif'" onmouseout="this.src='/applications/images/cancel2.gif'" ImageUrl="/applications/images/cancel2.gif" id="btnConfirmNoAdd" runat="server" CausesValidation="False" onclientclick="javascript:ModalHide()"/>&nbsp;&nbsp;<asp:ImageButton onmouseover="this.src='/applications/images/Continue_hover.gif'" onmouseout="this.src='/applications/images/continue.gif'" ImageUrl="/applications/images/continue.gif" ID="btnConfirmContinue" runat="server"/>&nbsp;&nbsp;</div><br /></asp:Panel>

Popup that doesn't always show correctly:

<asp:linkbutton id="linkDummy" runat="server" style="display:none"><img src="/applications/images/icons/Add_icon.gif" alt="add accounts" style="border:0; padding-right:5px" />Add Accounts</asp:linkbutton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           <cc1:ModalPopupExtender ID="mpeAccounts" runat="server"
     TargetControlID="linkDummy" PopupControlID="pnlSearchAccounts"
     BackgroundCssClass="modalBackground">        </cc1:ModalPopupExtender><asp:Panel ID="pnlSearchAccounts" class="accountSearch" runat="server" ScrollBars="Vertical" Height="600" style="display:none;background-color:white;width:680px;overflow:hidden;"><asp:UpdatePanel ID="updtpnlAccounts" runat="server" UpdateMode="conditional"><ContentTemplate><table cellpadding="0" style="width:680px" cellspacing="0" border="0"><tr>			        <hcpu:HeaderControlPU id="hc" runat="server"></hcpu:HeaderControlPU> 	</tr></table>     <asp:Panel ID="pnlsearch" runat="server" style="margin-left:10px;margin-right:10px;margin-bottom:10px;"></asp:Panel>    </ContentTemplate></asp:UpdatePanel><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="width:640px" align="right"><asp:Button ID="btnModalClose" Text="Close" runat="server" /></td><td style="width:40px" align="right">&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>  </asp:Panel>
    Private Sub btnConfirmContinue_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnConfirmContinue.Click
        Me.ModalPopupExtender7.Hide()

        LoadSearchControl()
        mpeAccounts.Show()
        pnlSearchAccounts.Visible = True
    End Sub






Calendar PopupPosition Ignored

$
0
0

Hi,

I am trying to use a CalendarExtender, with the latest version of AjaxControlToolkit.dll for VS2010 installed - 4.1.7.123.  It all works fine except the PopupPosition property is being ignored.  This worked fine with previous versions of the toolkit.

The problem occurs in IE9 in both Compatibility and native mode, and also in Chrome and Firefox.  I am using the exact same calendar.css as with the previous version.

The code is below.

Thanks.

--Dan

<asp:TextBox ID="txtCheckInDate" runat="server" CssClass="TxtFld" Width="70"
   AutoPostBack="false"/><asp:ImageButton ID="ibCheckInDate" runat="server"
   Height="18" Width="18"
   ImageUrl="~/Images/Calendar18x18.gif" ImageAlign="AbsBottom" /><ajax:CalendarExtender ID="ceCheckInDate" runat="server"
   CssClass="cal_Theme1"
   TargetControlID="txtCheckInDate"
   FirstDayOfWeek="Monday"
   PopupPosition="TopRight"
   PopupButtonID="ibCheckInDate" />

Html5 extender doesn't add, looks for a cs file.

$
0
0

I downloaded the ajaxcontroltoolkit to my local PC, and put it in the bin folder of my website folder.  Then I added dragged the extender to my webpage, and got:

<asp:TextBox ID="TextBoxHTML5" runat="server" Height="288px"
TextMode="MultiLine" Width="984px"></asp:TextBox>
<asp:HtmlEditorExtender ID="HtmlEditorExtender1" TargetControlID="TextBoxHTML5" EnableSanitization="false"
runat="server">
</asp:HtmlEditorExtender>

But when I try to run it (using visual web developer 2010), bad things happen.  I get the message below.  Anyone have an idea why this would happen?

f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

System.Resources.MissingManifestResourceException was unhandled by user code
Message=Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Source=mscorlib
StackTrace:
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at AjaxControlToolkit.Properties.Resources_NET4.get_E_NoScriptManager() in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\Properties\Resources.NET4.Designer.cs:line 68
at AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control control) in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:line 332
at AjaxControlToolkit.ExtenderControlBase.OnLoad(EventArgs e) in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:line 305
at AjaxControlToolkit.HtmlEditorExtender.OnLoad(EventArgs e) in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\HtmlEditorExtender\HtmlEditorExtender.cs:line 246
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:

Slider Control not displaying in Fixed location

$
0
0

Hello,

I am creating a custom pager user Control for my app. It contains Ajax-ToolKit - Slider control in it. Everything works fine but there is an wierd display issues.

1. Whenever an postback happends in the Updatepanel, the Slider disappears and reappears

2. when you screen in the page, the Slider control is not in fixed location. I have placed the slider control inside a TR and applier css properties also.

Any thoughts?

Tabcontainer mouseover issue

$
0
0

Hello,

I have a tab container control in my web form with collapsable panel controls in each tab.  These tabs are inside several update panels.

These tabs have the autopostback property set to true, and dynamically post back and hide and show themselves.

When I go from one tab to the other, the text in the collapsable panel partially disappears, but when I mouse over the tabs, it reappears.

What is happening here, and why does a mouseover of the tab control make the text reappear.  This only occurs on IE.  It works perfectly on Firefox.

Thanks,

Full Postback AFTER Partial Postback

$
0
0

I have a web page with several update panels that all do partial page postbacks. That all works fine.

However, I have one section that needs to do a full page postback AFTER completing the action of the partial postback.

How can I, from inside the button click event of a partial postback, trigger a full page postback (or a redirect)?

Thanks,

Load testing for Silverlight Asynchronous WCF Service calls

$
0
0

Hi,

I'm a Silverlight Guy working in a production support based project. We got a critical issue in production box from a WCF service due to concurrency. i.e., more than 100 users hitting the same service simultaneously. It was occuring in rare cases, but we need to resolve it since it was firing from production part.  Issue has been mentioned below.

 

 Remote Server Error : Argument Not Found

 

We need to replicate this issue in local box. We are calling this service asynchronously from a silverlight application. So we need to write a Unit test for this asynchronous service and load testing to test the performance of it.  We are using MOQ framework in our SL solution as well.  If i get any samples of writing unit test case and load testing for calling async service then it would be more helpful to resolve this issue.  Any help will be appreciated.

 

Thanks

Chendhil

problem with maskeditextender

$
0
0

Hi , my problem is as follows: I have a asp.net web form with a textbox and a maskeditextender. The mask contains a period (.) and this works perfectly on the machine it was developed on , however ive just moved over to a new laptop and now using the exact same source every time i debug the period turns to a comma (,) and this means the text in the textbox is no longer accepted as a floating point value.

How is this possible?

<asp:MaskedEditExtender ID="TextBox4_MaskedEditExtender" runat="server" Mask="99.999"
                MaskType="Number" TargetControlID="TextBox4"></asp:MaskedEditExtender>


Throwing settimeout error having invalid argument

$
0
0

 $("[price-refresh-button]").live("click", function (e) {

        e.preventDefault();
        var message = $(this).attr("ajax-message");
        var errorMessage = $(this).attr("ajax-error-message");
        var blocked = $("#ProductsContainer");

        $.ajax({
            url: $(this).attr("url"),
            type: "POST",
            context: $(this),
            beforeSend: function () {
                block(blocked, message);
            },
            success: function (correlationId) {
                setTimeout(Hudson.PriceRequest.Summary.PollPriceRefresh(correlationId, $(this).attr('polling-url'), function () {
                    Hudson.PriceRequest.Tabs.loadProductsAndDocuments();
                }), 2500);

            },
            error: function (xhr, textStatus, errorThrown) {

                reportActionErrorResult(errorMessage);
                $(blocked).unblock();
            }
        }); // End Ajax call

===================================

Application breaking on Settime out method saying settimeout method having invalid argument

 

How do I add an image button to a tab on a AJAX TabControl dynamically at runtime

$
0
0

How do I add an image button to a tab dynamically at runtime so that it replicates the codebehind version :-

<

ajaxToolkit:TabPanelrunat="server"ID="tabA"HeaderText="">

<HeaderTemplate>

<asp:ImageButtonrunat="server"ID="refreshTabA"ImageUrl="./img/Refresh.gif"OnClick="refreshTabA_OnClick"/>

<spanstyle="">Tab A</span>

</HeaderTemplate>

  

I am building my Tabs on my TabControl dynamically and in each of the tabs I have a ReportViewer control. (So I can display multiple reports on a page 1 tab per report), this bit works ok which adds the tab and the tab title and the report, just the image button on the tab I'm missing.

TabPanel tabPanel = newTabPanel();  // Create Tab dynanically

tabPanel.ID =

"tab"+ ReportName;

tabPanel.HeaderText = DisplayName;

ReportViewer reportViewer =newReportViewer(); // Create report

tabPanel.Controls.Add(reportViewer); // Add report dynamically to Tab

TabContainer1.Tabs.Add(tabPanel); // Add Tab to Tab Container

Web Services java script: The server method '....' failed

$
0
0

Hello all

I have one problem realted to calling the webserive same method repeatedly 

I have one java script method called from the aspx page using Page.ClientScript.RegisterStartupScript

function CallWebservice methods()

{

  webservice.GetName(onsucess,onfaliure)

}

in webservice

[Webmethod]

function List<Class> GetName()

{

// Here is my logic for getting the value from db

}

Now this works fine in normal case while only 1 function is calling it

I am getting this error while "GetName" method is exicuting some thing(getting value from db) and its result not yet returned to the javascript success/faliure method and at the same time if we are calling the same methods(GetName) from diiferent js functions or pressing f5 button repeatedly(in firefox only) , it throughs the error

Error Code:
The server method 'GetName' failed.

Status Code: 0
Timed Out: false

Session got null (some time) when call to Web services

$
0
0

In my web service I need to get one value from session variable. In the constructor of my web service I am getting this value like

 

constructor()  // constructor of web service

{

  Person p = (Person)Session["xyz"];

  string name = p.Name;

  string Address = p.Address

}

 

Its works perfectly fine but some time i got the session as null, i have the session state in webconfig which has default time out as 60 minutes.

but before 60 minutes(not all the time) the session is getting null, this things happens only when i am calling the webservice from java script 

How to control alternativing color via CSS in AccordianPane?

$
0
0

I'm using an Accordion control. For each item inside of a pane, I like to have alternating background. How do I control this background color via CSS? Below is my pane code.

<asp:AccordionPane ID="adp2000s" runat="server"><Header>
                            2000s</Header><Content><asp:SqlDataSource ID="sql2000s" runat="server"
                                ConnectionString="<%$ ConnectionStrings:ConnStr %>"
                                SelectCommand="SELECT [clsNoteID], [fstName], [lstName], [mdnName], [classOf1], [classOf2], [major1], [major2], [notes], [dateInsert] FROM [classNotes] WHERE (([approval] = @approval) AND ([archived] = @archived) AND ([cateID] = @cateID) AND ([classOf1] &gt;= @classOf1) AND ([classOf1] &lt; @classOf12)) ORDER BY [classOf1], [classOf2], [lstName]"><SelectParameters><asp:Parameter DefaultValue="True" Name="approval" Type="Boolean" /><asp:Parameter DefaultValue="False" Name="archived" Type="Boolean" /><asp:Parameter DefaultValue="1" Name="cateID" Type="Int32" /><asp:Parameter DefaultValue="2000" Name="classOf1" Type="Int32" /><asp:Parameter DefaultValue="2010" Name="classOf12" Type="Int32" /></SelectParameters></asp:SqlDataSource><asp:Accordion
                                ID="acd2000s"
                                runat="Server"
                                SelectedIndex="0"
                                HeaderCssClass="accordionHeader"
                                ContentCssClass="accordionContent"
                                AutoSize="None"
                                FadeTransitions="true"
                                TransitionDuration="250"
                                FramesPerSecond="40"
                                DataSourceID="sql2000s"><Panes></Panes><HeaderTemplate><asp:Label ID="lblFullName" runat="server" Text='<%# getName() %>' /></HeaderTemplate><ContentTemplate><asp:Label ID="lblClassNews" runat="server" Text='<%# getClassNews() %>' /></ContentTemplate></asp:Accordion></Content></asp:AccordionPane>



ajaxToolkit:MultiHandleSliderExtender displaying selected range in a different color.

$
0
0

Hello,

I have managed to alter the slider rail and handles appearance using RailCssClass and HandleCssClass but is there any way to highlight the selected range. I have seen jquery slider controls which do it but i want to use the  MultiHandleSlider itself.

InnerRailCss will have the selected portion go white but I need it be highlighted in a bright color.

Why does this code work in server-side code, but not in a class?

$
0
0

Using ASP.NET 3.5 created in VS 2008

I have code that builds a message box, that was written by a former co-worker. I use it on all my web forms where I want a message box. it works perfectly when the code is on each form.

I've tried to put the server-side code into a class, and call it from the class. When the code is called, the web form otherwise works correctly, and no error messages appear, but neither does the message box.

Here's the html code:

<body style="background-color: #ccffff">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />

Textboxes, labels, other stuff goes here

<!-- ######################################## POPUP MESSAGE BOX ######################################################## -->
<!--### Include LinkButton as Target Control and Leave out Text to Make it Invisible ###-->
<asp:LinkButton ID="lnkPopup" runat="server" />
<asp:ModalPopupExtender ID="mpeModalWindow" TargetControlID="lnkPopup" PopupControlID="pnlPopup"
runat="server" Drag="True" DropShadow="True" X="-1" Y="-1" Enabled="True" BackgroundCssClass="modalBackground"
PopupDragHandleControlID="pnlPopup" RepositionMode="RepositionOnWindowScroll" />
<!--### X and Y Are Screen Coordinates to Position the Popup Extender and Can Be Set Programmtically in Behind Code ###-->
<!--### The PANEL Will Render the Image (Icon), Text, and Buttons in The ModalPopUp Extender ###-->
<asp:Panel ID="pnlPopup" BackColor="#5BBFB0" Width="300" runat="server" Style="display: none"
CssClass="modalPopup" BorderStyle="Ridge" BorderWidth="5">
<!--### Ajax Update Panel ###-->
<asp:UpdatePanel ID="updatePanel2" runat="server">
<ContentTemplate>
<div class="divHeader" style="line-height: 30px">
<!--### The Message Box Display Header ###-->
<asp:Image ID="Images" runat="server" ImageUrl="" Height="30px" Width="30px" ImageAlign="Left" />
<asp:Label ID="lbl_Header" runat="server" Width="240px" ForeColor="#FFFF66" Font-Bold="True"
Font-Size="Large" CssClass="boxHeader" />
</div>
<br />
<div class="boxHeader">
<!--### Message Box Message Area ###-->
<asp:Label ID="lbl_BoxMessage" runat="server" Width="260" />
</div>
<br />
<div class="boxHeader">
<!--### Message Box Button Area ###-->
<asp:Button ID="btn_OK" Text="OK" runat="server" OnClick="btnOK_Cancel_Click" BorderStyle="Outset"
BackColor="#CCCCCC" ForeColor="#993300" Width="65px" CausesValidation="False" />
<asp:Button ID="btn_Cancel" Text="Cancel" OnClick="btnOK_Cancel_Click" runat="server"
BorderStyle="Outset" BackColor="#CCCCCC" ForeColor="#993300" Width="65" />
</div>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
<!-- ############################################################################################################################# -->
</form>
</body>

Here is the server side code:

protected void BuildMsgBox(string title, string msg, string icon)
{
//*** Set the Appearance of the Modal Popup Control ***

Image errorImg = (Image)pnlPopup.FindControl("Images");
Label lblMsgBox = (Label)pnlPopup.FindControl("lbl_BoxMessage");
Label lblHeader = (Label)pnlPopup.FindControl("lbl_Header");
Button cancelButton = (Button)pnlPopup.FindControl("btn_Cancel");
Button OKButton = (Button)pnlPopup.FindControl("btn_OK");

lblHeader.Text = title;
lblMsgBox.Text = msg;
errorImg.ImageUrl = icon;
cancelButton.Visible = false;
mpeModalWindow.Show();

}

protected void btnOK_Cancel_Click(object sender, EventArgs e)
{

Button theBtn = (Button)sender;


if (theBtn.ID == "btn_OK")
{
mpeModalWindow.Hide();
}

}

Here I'm calling it from within a button on_click event:

snip...

if (dateCompare > 0)
{
title = "Invalid selection!";
msg = "The ending month must be later than the starting month.";
icon = "IconImages/warning.ico";
BuildMsgBox(title, msg, icon);
}

Now here is the code put into methods in a class:

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

/// <summary>
/// Summary description for MessageBox
/// </summary>
public static class MessageBox
{
public static void BuildMsgBox(string title, string msg, string icon)

{
Page page = HttpContext.Current.Handler as Page; //Reference to the calling form


Panel pnlPopup = HttpContext.Current.Handler as Panel;

AjaxControlToolkit.ModalPopupExtender mpeModalWindow = HttpContext.Current.Handler as AjaxControlToolkit.ModalPopupExtender;


//*** Set the Appearance of the Modal Popup Control ***

Image errorImg = (Image)pnlPopup.FindControl("Images");
Label lblMsgBox = (Label)pnlPopup.FindControl("lbl_BoxMessage");
Label lblHeader = (Label)pnlPopup.FindControl("lbl_Header");
Button cancelButton = (Button)pnlPopup.FindControl("btn_Cancel");
Button OKButton = (Button)pnlPopup.FindControl("btn_OK");

lblHeader.Text = title;
lblMsgBox.Text = msg;
errorImg.ImageUrl = icon;
cancelButton.Visible = false;

mpeModalWindow.Show();

}

public static void btnOK_Cancel_Click(object sender, EventArgs e)
{
Page page = HttpContext.Current.Handler as Page; //Reference to the calling form
AjaxControlToolkit.ModalPopupExtender mpeModalWindow = HttpContext.Current.Handler as AjaxControlToolkit.ModalPopupExtender;
Button theBtn = HttpContext.Current.Handler as Button;

if (theBtn.ID == "btn_OK")
{
mpeModalWindow.Hide();
}

}
}

And here it is being called from within the same button on_click event as above:

snip...

if (dateCompare > 0)
{
title = "Invalid selection!";
msg = "The ending month must be later than the starting month.";
icon = "IconImages/warning.ico";

MessageBox.BuildMsgBox(title, msg, icon);


How to Close Child Page when Parent is Closed

$
0
0

I have two pages page1.aspx and page2.aspx.

Say Page1.aspx as parent page and Page2.aspx as Child page.

In Parent page , i have one button, button name is Show.

if i click Show button it opens Child Page(page2.aspx) as pop window.

My requirement is that, when i closed Parent Page(Page1.aspx) it should automatically close the Child Page(Page2.aspx) page.

Please Help Me,

Thanks.

ajax installer

$
0
0

Hello all,

If I dont have ajax installed on my pc and I have AjaxControltoolkit.dll file in my bin folder of my website, will my website work or still I need to do something else?

Thanks,

How to enable a button when an item in the ComboBox is selected

$
0
0

Hi

I have an ajax ComboBox

<ajax:ComboBoxID="TicketTypeComboBox"runat="server"DropDownStyle="DropDown"AutoCompleteMode="SuggestAppend"RenderMode="Block"MaxLength="2"CssClass="PONComboBox"Width="20px"TabIndex="2"/>

When the form loads the ComboBox is populated from values in a database table. There is no default selection in the Combobox list of items i.e. the SelectedIndex = -1

I want to use JQuery to enable a button whenever an item is selected in the ComboBox.

Now, I understand that when an ajax ComboBox is rendered, it is rendered as a combination of three different controls - textbox, button and optionlist.

I am able to get to the button click of ComboBox but after that not able to figure out how to detect a change in ComboBox selection. 

Please help.

Thanks

Rajat

 

 

Add Formview insert button as UpdatePanel trigger

$
0
0

I want to implement a FileUpload functionality within a formview and since I'm using UpdatePanel in my page I need to use the upload button as a full postback trigger, using the tag <asp:PostBackTrigger ControlID="" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server"><Triggers><asp:PostBackTrigger  ControlID="Formview_Insert_Button" /></Triggers><ContentTemplate><%-- My FormView and other controls --%></ContentTemplate></asp:UpdatePanel>

The question is how to declare the insert button of the formview as a trigger control ID ? when I tried adding the ID of the button, I had an error saying the control is not found !

" A control with ID 'btnInsert' could not be found for the trigger in UpdatePanel 'UpdatePanel1' "

I tried adding formview ID as trigger but it shows an error also 

" A control with ID 'FV_AddOwner' could not be found for the trigger in UpdatePanel 'UpdatePanel1' "

ASP with AJAXCONTROLTOOLKIT

$
0
0

Hi, I am using vs2012. i installed AjaxcontrolToolkit 4.1.7.123 version. I am not able to execute programs. may be Compatibleissues. Can i have reply for this query?

Viewing all 5678 articles
Browse latest View live


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