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

Hover menu dosent works on gridview row

$
0
0

I have grid view with hover menu in code behind I set targetcontrolid on each row but hover dosen't works It works on whole gridview not for each row I use ajaxtoolkit version 4.5.7.1213

my code is

<ItemTemplate><asp:Label ID="Label2" runat="server" Text='<%# Bind("naziv") %>'></asp:Label><asp:Panel ID="Panel1" runat="server" CssClass="HoverMenu"><asp:LinkButton ID="LinkButton1" runat="server">edit</asp:LinkButton><asp:LinkButton ID="LinkButton2" runat="server">delete</asp:LinkButton></asp:Panel><cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" HoverCssClass="Hover"
                             PopupControlID="Panel1"
                             PopupPosition="Right"
                             TargetControlID="Panel1"
                             PopDelay="50"></cc1:HoverMenuExtender></ItemTemplate>

Code behind is

protected void gr_RowCreated(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                HoverMenuExtender hov = e.Row.FindControl("HoverMenuExtender1") as HoverMenuExtender;
                e.Row.ID = e.Row.RowIndex.ToString();
                hov.TargetControlID = e.Row.ID;


            }
        }
Please help

ASP.Net Ajax Control Toolkit

$
0
0

I want exact Ajax Control Toolkit with .Net 4.5, Visual Studio 2012 Ultimate, and Windows 7 64bit

HtmlEditorExtender and image upload resize

$
0
0

Hi

i need to know how to use HtmlEditorExtender to modify the size of upload picture ?

Is Asp.net TabStrip supported in Internet Explorer 11

$
0
0

Hi,

I m planning to implement Asp.net TabStrip control in my project,  I wanted to know is this control supported in IE 11.

Regards

Ravi

Page slow with Toolkit ajax??

$
0
0

hi,

A page on my site loads very slow which has  toolkitscript defined  -  there update panels and textbox extender controls on the page.

this is top part of my page below. I noticed scriptmanager is faster but textboxwatermark extender do not work with that.

Is there any way to speed up page loading?

 <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender629" runat="server"
                     Enabled="True" TargetControlID="SongName2" WatermarkCssClass="watermark"
                     WatermarkText="enter name" />


     
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>



<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">


    
   
    <link href="Style/Style.css" rel="stylesheet" type="text/css" />
    




      <script type="text/javascript">
          function ShowMP() {
              if (Page_ClientValidate() == true) {
                  var MP = $find("<%=MPE3.ClientID %>");
                  MP.show();
                  setTimeout('document.images["myAnimatedImage"].src = "Images/286.GIF"', 200);
              }


          }

          function HideMP() {
              var MP = $find("<%=MPE3.ClientID %>");
              MP.hide();
          }   
 </script>  


 

      <script type="text/javascript" language="javascript">
          function validateLimit(obj, divID, maxchar) {

              objDiv = get_object(divID);

              if (this.id) obj = this;

              var remaningChar = maxchar - trimEnter(obj.value).length;

              if (objDiv.id) {
                  objDiv.innerHTML = remaningChar + " characters left";
              }
              if (remaningChar <= 0) {
                  obj.value = obj.value.substring(maxchar, 0);
                  if (objDiv.id) {
                      objDiv.innerHTML = "0 characters left";
                  }
                  return false;
              }
              else
              { return true; }
          }

          function get_object(id) {
              var object = null;
              if (document.layers) {
                  object = document.layers[id];
              } else if (document.all) {
                  object = document.all[id];
              } else if (document.getElementById) {
                  object = document.getElementById(id);
              }
              return object;
          }

          function trimEnter(dataStr) {
              return dataStr.replace(/(\r\n|\r|\n)/g, "");
          }


        

    
    </script>


</head>
<body>
    <form id="form1" runat="server">
    
    <cc1:ToolkitScriptManager runat="server">
    </cc1:ToolkitScriptManager>

       
   



 
   <div class="page">

Upgrade a WebSite with AjaxControlToolKit 1.0.20229.0

$
0
0

Hello dear colleagues,

I have to upgrade a web site with AjaxControlToolKit 1.0.20229.0 and FrameWork 2.0 running on a windows 2003 server to a windows 2012 r2 server with FrameWork 4.5.2.

I need to know what are the possible problems (references, versions)

what will i need to do?

Thank you!

Where to put the AJAX script manager

$
0
0

I am using Asp.Net VB.  I am not using a master page.

Where is the best place to put the script manager?  Top or bottom? Does either impact page loading speed?

Also, can it be in a div? (Not that I need it there...just curious.)

Thank you,

Thor

my ajaxtoolkit server tag not working

$
0
0

Hi,

in my local system ajaxtoolkit script manager  tag works properly, but when I place the page in remote hosting account, its showing unknown server tag.

even I placed  ajaxtoolkit dll IN Bin folder also. 

details:

Server Error in '/' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'asp:ToolkitScriptManager'.

Source Error:

Line 14:     
Line 15:    Line 16:     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">Line 17:     </asp:ToolkitScriptManager>
Line 18: 


Source File: /default3.aspx    Line: 16

 

waiting for reply.

regards,

karim


Documentation for AjaxControlToolkit.config File

$
0
0

Can't seem to find any documentation for AJaxControlToolkit.config file.

Does anyone know where documentation for this can be found? 

ModalPopupExtender.cs not found

$
0
0

One of the pages in my website has several forms that are supposed to open Modal popup panels. When I run it and click on one of the buttons, noting happens. IF I step through it in debug, when it gets to that point (panelAddress_ModalPopupExtender.Show()) I get the error "ModalPopupExtender.cs not found" and the debugger stops. THis did nt happen at one time and there are other pages that 'use the modal popup that work just fine, so I don't know why this code can't find the popup extender?  Here is the Design code:

<div style="width: 300px; float: left;"><%--User basic info frm--%><asp:Panel ID="pnlriderinfo" runat="server" CssClass="gainsPanel" Style="margin-top: 10px; margin-left: 15px; width: 250px; height: 265px;"><asp:FormView ID="FormView1" runat="server" DataKeyNames="riderid" DataSourceID="SqlDataSource1" Height="250px" Width="250px" CssClass="formstyle"><HeaderTemplate><asp:Image ID="imgicon" runat="server" ImageUrl="~/Images/Site/bdicon.png" /><asp:Label ID="lblbdtitle" runat="server" Text="Your Big Dog Profile" Font-Bold="true" Font-Size="Medium" /><hr /></HeaderTemplate><ItemTemplate><table><tr><td class="tdrt_100"><asp:Label ID="lblfullname" runat="server" Text="Full&nbsp;Name:" CssClass="labelstd" /></td><td class="tdlt_150"><asp:Label ID="TitleLabel" runat="server" Text='<%# getName() %>' CssClass="formstyle" /></td></tr><tr><td class="tdrt_100"><asp:Label ID="lbldispname" runat="server" Text="Display&nbsp;Name:" CssClass="labelstd" /></td><td class="tdlt_150"><asp:Label ID="Display_NameLabel" runat="server" Text='<%# Bind("[dname]") %>' CssClass="formstyle" /></td></tr><tr><td class="tdrt_100"><asp:Label ID="Labelbd" runat="server" Text="Birth&nbsp;Date:" CssClass="labelstd" /></td><td class="tdlt_150"><asp:Label ID="BirthdateLabel" runat="server" Text='<%# Bind("dob", "{0:d}") %>' CssClass="formstyle" /></td></tr><tr><td class="tdrt_100"><asp:Label ID="Labelgewn" runat="server" Text="Gender:" CssClass="formstyle" /></td><td class="tdlt_150"><asp:Label ID="GenderLabel" runat="server" Text='<%# getSex(Eval("gender").ToString()) %>' CssClass="formstyle" /></td></tr><tr><td class="tdlt_100"><asp:Label ID="Labelcom" runat="server" Text="Comment:" CssClass="labelstd" /></td><td></td></tr><tr><td colspan="2"><asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("comment") %>' CssClass="formstyle" BorderStyle="Solid" BorderWidth="1px" BorderColor="LightSteelBlue" TextMode="MultiLine" Rows="4" Width="200px" /></td></tr></table><br /><asp:Button ID="bDetail" runat="server" Text="Edit" OnClick="bDetail_Click" ToolTip="Press to Edit this information" /></ItemTemplate></asp:FormView></asp:Panel><%--End basic info--%><%-- Base info Modal panel --%><%--End of user info updatepanel--%><asp:SqlDataSource ID="sqlTitle" runat="server" ConnectionString="<%$ ConnectionStrings:BDUCConnectionString %>" SelectCommand="titlefetch" SelectCommandType="StoredProcedure" /><%--rider popup modal start--%><ajaxToolkit:ModalPopupExtender ID="pnlUserInfo_ModalPopupExtender" runat="server" Enabled="True" BackgroundCssClass="modalBackground"
                TargetControlID="Button1" PopupControlID="pnlUserInfo" OkControlID="UpdateButton" CancelControlID="UpdateCancelButton" /><asp:Button ID="Button1" runat="server" Text="Button" Style="display: none" /><%--popup end--%><asp:UpdatePanel runat="server" ID="updatescale" ChildrenAsTriggers="false" UpdateMode="Conditional"><ContentTemplate><asp:Panel ID="Panel5" runat="server" Height="71px" CssClass="gainsPanel" Style="margin-top: 0px; margin-left: 15px; width: 250px;"><div style="float: left; margin-left: inherit;"><asp:Label ID="Label3" runat="server" Text="Preferred Scale:" CssClass="labelstd"></asp:Label></div><div style="float: left;"><asp:RadioButtonList ID="rblscale" runat="server" RepeatDirection="Horizontal"
                                AutoPostBack="True" OnSelectedIndexChanged="rblscale_SelectedIndexChanged"
                                Style="font-family: sans-serif; font-size: .8em; font-weight: 200;"><asp:ListItem Value="I">US Std (Imperial)</asp:ListItem><asp:ListItem Value="M">Metric</asp:ListItem></asp:RadioButtonList></div></asp:Panel></ContentTemplate></asp:UpdatePanel></div><%--SECOND COlumn--%><div id="d2" style="float: left; width: 270px; margin-left: 15px;"><asp:Panel ID="Panel3" runat="server" CssClass="gainsPanel" Style="margin-left: 0px; width: 265px;"><asp:FormView ID="FormView2" runat="server" DataSourceID="dsAddress" Height="265px" Width="265px"><HeaderTemplate><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Icons/doghse.png" /><strong>Location Information</strong><hr style="width: 187px; margin: auto;" /></HeaderTemplate><ItemTemplate><%--<asp:Label ID="addressIDLabel" runat="server" Text='<%# Eval("addressID") %>' />--%><asp:HiddenField ID="hfaddressid" runat="server" Value='<%# Eval("addressID") %>' /><table><tr><td class="tdrt_100"><asp:Label ID="Labeladd1" runat="server" Text="Address:" CssClass="labelstd" /></td><td class="tdlt_150"><asp:Label ID="address1Label" runat="server" Text='<%# Bind("address1") %>' CssClass="txlt_150" /></td></tr><tr><td class="tdrt_100"><asp:Label ID="Labeladd" runat="server" Text="Address&nbsp;2:" CssClass="labelstd" /></td><td><asp:Label ID="address2Label" runat="server" Text='<%# Bind("address2") %>' /></td></tr><tr><td class="tdrt_100"><asp:Label ID="Label2" CssClass="labelstd" runat="server" Text="City:" /></td><td class="tdlt_150"><asp:Label ID="cityLabel" runat="server" Text='<%# Bind("city") %>' /></td></tr><tr><td class="tdrt_100"><asp:Label ID="Labelst" CssClass="labelstd" runat="server" Text="State:" /></td><td class="tdlt_150"><asp:Label ID="stateidLabel" runat="server" Text='<%# getState(Eval("stateid").ToString()) %>' /></td></tr><tr><td class="tdrt_100"><asp:Label ID="Label11" CssClass="labelstd" runat="server" Text="Postal&nbsp;Code:" /></td><td class="tdlt_150"><asp:Label ID="postalcodeLabel" runat="server" Text='<%# Bind("postalcode") %>' /></td></tr><td class="tdrt_100"><asp:Label ID="Labelph" CssClass="labelstd" runat="server" Text="Phone:" /></td><td><asp:Label ID="phoneLabel" runat="server" Text='<%# Bind("phone") %>' /></td></tr><tr><td class="tdrt_100"><asp:Label ID="Labelcntryr" CssClass="labelstd" runat="server" Text="Country:" /></td><td class="tdlt_150"><asp:Label ID="countryLabel" runat="server" Text='<%# getCountry(Eval("iso").ToString()) %>' /></td></tr></table><asp:Button ID="btneditadd" runat="server" OnClick="btneditadd_Click" Text="Edit" /><br /></ItemTemplate></asp:FormView></asp:Panel>

And the C#
   protected void bDetail_Click(object sender, EventArgs e)
    {
        pnlUserInfo_ModalPopupExtender.Show();
    }

The method is   hit when debugging, but you get the error. I have looked at quite a few posts about similar issues but have not been able to fix this.

ModelPopupExtender => gives error - Edit button not found

$
0
0

i creatd 1 GridView and in that i create  Edit button by <TemplateField> , i want functionality like when we click on that Edit button which in inside GridView then a Popup window comes and in that we Edit  the Details, but i unable to find that Edit button

custom Validations using Ajax

$
0
0

Hi,

I'm very new for Ajax. and i want to implement custom validations using ajax (asynchronously).

example:  i want to check validation is email already exist in database

Please post any sample scripts or logic and suggestions.

Thank you

Problem about UpdateProgress

$
0
0

I write UpdatePanel and then Outside UpdatePanel I write UpdateProgress but gives error

"An extender can't be in a different UpdatePanel than the control it extends."

tasp.net ajax toolkit source

$
0
0

Hi,

is there any link to download asp.net ajax toolkit source? not the binary one.

Thank

AJAX for Visual Web Developer is missing in template

$
0
0

Hi, everybody.

I am using Visual Web Developer 2010 and studying how to use Ajax with DataBase in ASP.NET.

I downloaded ASP.NET AJAX Extensions 1.0 successfully but when I click on File new  Web Site the option ASP.NET AJAX-Enabled Web Site is missing. 

I can't continue my studies. I've look it up for some anwwers but I didn't find any. 

Could someone tell me what I should do and show this option in template ?

I appreciate any tips.

My best regards.

Joao Franco


Update panel not working in IIS 7

$
0
0

Hello All,

I have an asp.net application where a page had an update panel that queries into a gridview using some parameters with some telerik controls (ie Radcombobox and raddatepicker.).

Everything works fine on my production machine with the update panel showing when query being down.

But when i host it on Windows server 2008 the update panel doesnt show on click on the search button and also some plenty line appear in the address bar which at the end doest run the query using the selected parameters.

Please can anyone help me fix this since I have being struggling with it for somethin now

Thanks and regards

Setting CascadingDropDown value via JavaScript/jQuery

$
0
0

I am able to successfully set the value of the parent drop down list in my CascadingDropDown controls.  However, I now need to trigger the web service of the child CascadingDropDown to refresh the contents before setting the value of the child.  I have read so many articles on this online but not one has a working solution.  I have tried:

$find('CCD_Parent')._onParentChange(null, null);

$('<%=CCD_Parent.ClientID%>')._onParentChange(null, null);

$('[id$=Parent]').change();

$('[id$=Parent]').trigger('onchange');

The last one was the closest in that the drop down populated but it did not populate with the category in the parent set correctly.  It is possible the way I am setting the parent is not correct.

$('[id$=Parent]').val(MyValue).attr('selected','selected');

Can someone help me figure this out?

NOTE: Parent is the mock ID of my drop down list control and CCD_Parent is the AJAX CascadingDropDown control.

AJAX Control Toolkit FileUpload File Lock

$
0
0

We have a intranet web app which uses AjaxControlToolkit's FileUpload mechanism to upload files from different branches of our company to the server which is hosted at HQ.

File Upload works fine. However, our problem is with deleting the file from branch computer.

Since its used within our company, we exactly know from which branch the file was uploaded (users have to select their branch from a dropdown before uploading) which allows us to delete the file from the branch after it has been uploaded. That is, say if branch B123 uploaded hello.pdf, we have a sql table mapping of branch to its network share path. It could be something like \\B123FileShare\Uploads

So once file has been uploaded, all we do is File.Delete(\\B123FileShare\Uploads\hello.pdf).

This delete sometimes works, sometimes doesn't because of sharing violation.

I am just wondering if once fileupload control uploads the file, does it still keeps a lock over the file from client machine? Is there a way I can release this lock (if any) before I can delete the file?

Thanks

filtered textbox extender question? add numbers

$
0
0

hi,

i am using the below but want to prevent user input of numbers as well?

<cc1:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender"
            runat="server" Enabled="True" TargetControlID="TextBox1" FilterMode="InvalidChars" FilterType="Custom" InvalidChars="~!@#$%^&*()_+[]{}|\<>/?" >
        </cc1:FilteredTextBoxExtender> the code below but want to prevent input of numbers as well ?

Is it possible also to warn the user with a label or message popup if they try to enter invalid values>

How do you fix a : "null entry for parameter 'id' of non-nullable type 'System.Int32'" Error

$
0
0

The alert is not being displayed.  The textbox displays the json string after a existing entry in the database is entered therefore the jQuery is functioning.  The "$.ajax is going directly to the error code so no display of the alert. 

How do you fix a : "null entry for parameter 'id' of non-nullable type 'System.Int32'" Error?

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><script type="text/javascript">$(function () {$("#btn1").click(function () {
                var id1 = $("#text1").val();
                var url1 = "Home/fn1";
                var data1 = { "id": id1 };
                var json1 = JSON.stringify(data1);$("#jsondata").val(json1);$.ajax({
                    type: "POST",
                    dataType: "json",
                    url: 'Home/fn1',
                    data: json1,
                    success: function (data) {
                        alert("success")
                    },
                    error: function (e) {
                        alert(e.responseText);
                    }
                });
            });
        });</script><center><table><tr><td><br /><br /><br /><br /></td></tr><tr><td>Input Id:</td><td>@Html.TextBox("text1")</td></tr><tr><td colspan="2"><input id="btn1" type="submit" value="Post Ajax" /></td></tr><tr><td>Json String:</td><td>@Html.TextBox("jsondata")</td></tr></table></center>

[HttpPost]
        public JsonResult fn1(int id)
        {
            List<Table1> the = new List<Table1>();
            string constr = ConfigurationManager.ConnectionStrings["conn"].ConnectionString;
            using (SqlConnection conn = new SqlConnection(constr))
            {
                conn.Open();
                using (SqlCommand cmd = new SqlCommand("SELECT [col1],[col2],[col3] FROM Table1 WHERE [id] =" + id + ";", conn))
                {
                    using (SqlDataReader dr = cmd.ExecuteReader())
                    {
                        if (dr.Read())
                        {

                            the.Add(new Table1 { col1 = dr["col1"].ToString(), col2 = dr["col2"].ToString(), col3 = dr["col3"].ToString() });
                        }
                    }
                }
            }
            return Json(the, JsonRequestBehavior.AllowGet);
        } 

Error code:

The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.JsonResult.fn1(Int32)' in 'AJAXMethod.Controller.HomeController'.  An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.

Viewing all 5678 articles
Browse latest View live


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