AJAX :: ListBox1_SelectedIndexChanged Does Not Work?
Mar 12, 2010
I have put a ListBox1 inside an updatePanel. Now I have put 5 items in this ListBox1.
So now with the ListBox1_SelectedIndexChanged, I am trying to show a MessageBox when I select different Items but the MessageBox does not execute with the below code ?
[Code]....
View 2 Replies
Similar Messages:
Mar 12, 2010
I am using a ListBox1_SelectedIndexChanged to track what Index that was choosen in the ListBox.
So I use the code below to do that. The problem is that when the Page_Load runs and displays the messagebox, it always displays the previous choosen Selected Index.
So the First time when clicking an index in the listbox, no messagebox is shown. The second click, the messageBox shows the previous clicking Index and so on...
[Code]....
View 2 Replies
Oct 7, 2010
i'm trying to make this work for several days but it just doesn't work.
this is my code:
aspx page:
[Code]....
webservice:
[Code]....
this was downloaded from this website.
the problem is that the page loads fine but no autocomplete occurs.
View 5 Replies
May 11, 2010
I am a new to WCF. I have written ajax to use a web service before, but on this project I am trying to use ajax to WCF.After I build the project and wcf using ajax, I receive the return successfully. But, 10 or more minutes later I don't get a return, the ajax calls the error function, and the fiddler returns nothing.
If I rebuild the project without any source modifying, I receive the return successfully again.
View 2 Replies
Jun 22, 2010
I am new to WCF, I was using web service asmx before. I have trouble on making my wcf JSON ajax service work through http like asmx.Could you help me see what wrong in my code?My WCF services are defined in my website application folder. My aim is to call this service in my aspx page java-script code and return complex object back as JSON to my javascript. I have no problem on doing this through classic asmx web service.
When I try to test it through my browser by type this in the URL , URL-http://localhost:3849/WebServices/Account/WCFCompanyService.svc/GetAll. it return "Method not allowed."
But if I type just this URL-http://localhost:3849/WebServices/Account/WCFCompanyService.svc, it return this:
WCFCompanyService Service
You have created a service.To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:
svcutil.exe URL-http://localhost:3849/WebServices/Account/WCFCompanyService.svc?wsdl
This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:
C#
class Test { static void Main() { HelloClient client = new HelloClient();
[Code]....
This is my Ajax-enabled WCF service code:
[Code]....
This is the web.config service model setting
[Code]....
View 1 Replies
Jan 7, 2011
I'm using VS2005.I just downloaded .NET framework 4 and so then I downloaded ajaxcontroltoolkit.binary.net4 via [http://ajaxcontroltoolkit.codeplex.com/releases/view/43475](as opposed to ajaxcontroltoolkit.binary.net35 for .NET 3.5), but when I try to load the ajaxcontroltoolkit.dll into my toolbox (as said in the tutorials), I get the following error msg:"'C:......ajaxcontroltoolkit.dll' is not a microsoft .NET module."
View 2 Replies
Aug 18, 2010
when put the calendar extender in bodt tag with dir="rtl", the web page not work currectly and hang web page and lock page.
View 1 Replies
Jan 20, 2011
I have a page which retrieves information from the database when the page loads. It does this via jQuery AJAX once the page has actually loaded. Everything works fine on my VS dev server, but it when I put it on our site it doesn't work. If I use the javascript console in Chrome it says Failed to load resource 500 internal server error for each AJAX request.
The site I am working on uses SSL does this interfere with AJAX posts? The AJAX is just requesting a static method from the code-behind so its not going outside of the SSL domain.
View 2 Replies
Apr 7, 2010
I've been racking my brains out trying to get this to work. I've followed multiple tutorials to the letter and I have had no luck.
Here is my Default.aspx page:
[Code]....
Here is my WebService.asmx.cs file:
[Code]....
I don't know what else there is to do. I have a zip of my solution here: [URL]
Edit: I forgot to add that I am able to run the WebService by itself. It returns the values from the function. The function is never invoked from the aspx though.
View 11 Replies
Mar 2, 2011
i have an application mvc3, created a link with ajax but confirm property does not works.
index.cshtml is
@{
View.Title = "Home Page";
}
@section Header{
<script src="../../Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftMvcAjax.debug.js" type="text/javascript"></script>
}
<h2>@View.Message</h2>
@Ajax.ActionLink(
"Delete Product",
"Delete",
new { id = 1 },
new AjaxOptions { HttpMethod = "DELETE", Confirm = "Are you sure?" }
)
and home controller delete action
public ActionResult Delete(int id)
{
return View();
}
but directly does delete page. how can i confirm box show?
View 6 Replies
Dec 25, 2010
This is my Controller method
[HttpPost]
public ActionResult RemoveValue()
{
return View();
}
And this is how i am trying to access to method
@Ajax.ActionLink("Asenkron process", "RemoveValue")
But if i remove HttpPost attribute then it works. I have tested this on MVC 3 RC 2
View 2 Replies
May 4, 2010
I have a master page, aspx page, user control
I use HTMLEditor in the user control like this:
<HTMLEditor:Editor runat="server" ID="Editor" Height="300px" AutoFocus="true" Width="100%" />
in the code behind file
i use ((AjaxToolkitHtmlEditor.Editor)SettingsFormView.FindControl("Editor1")).Content. I got NULLReference Exception.
Also i use Editor editor = Page.FindControl("Editor") as Editor; still get null
my user control code is below:
<table width="100%"; style=" word-break:break-all">
<tr>
<td style="height:auto">
<HTMLEditor:Editor runat="server" ID="Editor" Height="300px" AutoFocus="true" Width="100%" />
<br />
<asp:ImageButton ID="add" runat="server" onclick="add_Click" ImageUrl="~/images/OK.gif" />
</td>
</tr>
</table>
View 1 Replies
Jun 9, 2010
in DotNetNuke module,i tried CollapsiblePanelExtender, it work fine with FF,it alway explan with IE?
View 1 Replies
Sep 1, 2010
Iīm testing roundedcornersextender and it donīt work.I tryied round some controls (panel, div and textbox) without success.Am I doing something wrong?
See the aspx code:
[Code]...
View 5 Replies
Oct 4, 2010
i've created an ajax test call that works locally, but when i upload to my hosts(2 of them) i get nothing. My sample page is: Linkage to test page.
my code is as follows:
[Code]....
View 8 Replies
Dec 2, 2010
after i got the file AjaxControlToolkit.Binary.NET4, i did all the instructions and imported it to VS2010.
this is my code :
[code]....
View 4 Replies
May 28, 2010
Thought I'd give that AjaxControlToolkit a try, but sadly it doesn't seem to work. Am I missing a step? I followed these instructions [URL] and did the following.
Downloaded the Binary.net3.5 zip to C:Downloads on my pc that uses VS2008 Extracted All Files Added the files to VS 2008 (I see them in the toolbox, and can click/drag them to my sample page.
I build the site, and no "coolness" rounded corners. (this is the first control I thought I'd try).
[URL]
View 1 Replies
Oct 28, 2010
I have made a solution with ResizableControlExtender in the Ajax control toolkit. It is a solution with a treeview on the left side of the screen and a content panel on the right side. Depending on what level in the treeview the user clicks at different content is shown in the right panel. What I want to do is to make it possible for the user to resize the width of the treeview. I have put the treeview in a panel and sets the target for the ResizableControlExtender to this panel. I have set the overflow style to auto. This works fine in all browsers except IE6. Unfortunately IE6 is an important browser for this solution. In IE6 the text of the treenodes is not cut when it is wider than the treeview width so it flows over the borders.The overflow works if I set a fixed width in the styleTreeView class but that makes it impossible to resize. I've tried to change the overflow setting in a lot of ways but nothing is working.
[Code]....
View 1 Replies
May 6, 2010
Why my autocomplete ajax script does not work:
This is my WebService.cs
[Code]....
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" MinimumPrefixLength="1" ServiceMethod="GetCountryInfo" TargetControlID="TextBox2" ServicePath="WebService.asmx" runat="server"></cc1:AutoCompleteExtender>
Categories row in database is text type...
I use ModalPopup, too(my textbox2 is in Modalpopup), does it makes problem?
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" MinimumPrefixLength="1" ServiceMethod="GetCountryInfo" TargetControlID="TextBox2" ServicePath="WebService.asmx" runat="server"></cc1:AutoCompleteExtender>
View 7 Replies
May 20, 2010
I have the following situation in my page: I've created a textbox and then set an AutoCompleteExtender to this textbox and, later I wanted to set the focus to this field with the code behind i set textbox.focus(), when i'm trying to add focus the AutoCompleteExtender simply not working, but when i click outside the text box and click back in , it's working.
Can anybody give me a simple explanation how to solve this situation.
View 1 Replies
Mar 24, 2010
I have 4 file upload and one upload button.When i have used an update panel then file upload loses it's content.So i have used trigger with postback.But still a progress bar is not displayed?
View 3 Replies
Jul 22, 2010
I'm having a problem with AutoComplete tool see demo here [URL]
When enter 123 for first time, it works. Then click somewhere to close the result, clear textbox enter same value, it does not work. I got a description "...Caching is turned on, so typing the same prefix multiple times results in only one call to the web service." I tried turning off cache, but still not work.
View 2 Replies
Jan 9, 2011
I am building a simple Ajax control sample off one of the tutorials provided. Here's code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html xmlns="[URL]">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="asm" runat="server" />
<div atomicselection="False">
Departure date: <asp:TextBox ID="tbDeparture" runat="server" />
Return date: <asp:TextBox ID="tbReturn" runat="server" />
<asp:Panel ID="pnlCalendar" runat="server">
<asp:UpdatePanel ID="up1" runat="server">
<ContentTemplate>
<asp:Calendar ID="c1" runat="server" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="tbDeparture" EventName="Load" />
<asp:AsyncPostBackTrigger ControlID="tbReturn" EventName="Load" />
</Triggers>
</asp:UpdatePanel>
</asp:Panel>
<asp:PopupControlExtender ID="pce1" runat="server"
TargetControlID="tbDeparture" PopupControlID="pnlCalendar" Position="Bottom" />
<asp:PopupControlExtender ID="pce2" runat="server"
TargetControlID="tbReturn" PopupControlID="pnlCalendar" Position="Bottom" />
</div>
</form>
</body>
</html>
View 2 Replies
May 25, 2010
I am trying to show client side confirm messages
from a button click event within Update Panel.
I find that ScriptManager.RegisterClientScriptBlock does not work.
I need to get the response value i.e yes or no from the confirm msg
and if it is yes call another js function.
What is the best solution to the problem?
My call is:
[Code]....
View 6 Replies
Oct 14, 2010
I have a AutoCompleteExtender in my form. I tried to use it with some examples in google, but it is not working My environment is: ASP.NET 2.0 C# using Ajax Control Kit 1.0
My page code is:
[Code]....
My asmx page is:
[Code]....
When I type 'a' on the textbox, nothing happens
View 8 Replies