Hi,
I'm using Javascript, ASP.net and c#.
I want to write a custom control to check if javascript is enabled on the browser and display a message.
I'm using the following approach:
-the control shows a message "Javascript disable" in a tag
-the control adds in the section a javascript section with this line:
window.onload = function()...
Hi,
In my page ASP.net page I'm using a custom control like this:
<MyNamespace:MyControl runat="server" ID="myControl">
<contenttemplate>
This is the text I want to use
</contenttemplate>
</MyNamespace:MyControl>
In the c# code of the control how can I obtain a string containing the text between the <contentemplate> tag (eg. "This is ...
Does anyone have the special sauce for following a jQuery Form ajax post to a controller method forcing a refresh to a PartialView existing on the same page? Does that involve bringing partial HTML back and appending or can I simply somehow cause that PartialView to refresh magically?
Thanks in advance.
Doug
Here is my RenderPartial w...
My ascx control inside a container update panel does a full page refresh when one of the controls inside it is clicked.
Has anyone faced this behavior before?
Thanks.
...
Hi. I tried to create this by following the video at http://www.asp.net/learn/videos/video-7026.aspx where Joe Stagner created a simple web service that is called with Ajax. In the Button1_onclick() handler, javascript can't resolve the object "WebService1". Do you see s anything wrong?
The exact error is "'WebService1' is undefined" i...
I imagine having to interact with Gmail is a necessity for most programmers. Gmail's control for associating labels to emails is monumentally effective UI behavior.
For those unfamiliar with the behavior, it's basically a button-initiated pop up panel (drop down UI effect) containing:
1) a text entry box
2) scrollable multi-checkbox li...
So I wanted to create a toggle-button for a table, where I can make an async call to update a database record (enable/disable).
After some trial and error, I have managed to get it working - but it feels like there must be a more elegant way.
I don't like repeating my image-tag in my controller, obviously... How can I avoid that in ...
I am using UpdatePanel to trigger a button click event, which saves some 100+ files on a designated folder.
I want the server to update the client about the status and count of files being saved.
protected void btnSave_Click(...){
var filesToSave = GetFilesToSave();
foreach(var fileToSave in filesToSave){
SaveProcessedFile(f...
Hi,
I'm trying to use jquery's .ajax(), google visualisation annotated timeline and one of the google datatable helpers together. Ultimately what i'm after is having a link on a page and when the user clicks it data is loaded asynchronously via jquery.ajax(), returned as google visualisation compliant JSON and passed to the charting API...
Hi,
How can I use GWT together with Visual Studio to create an ASP.NET website? If it is possible.
Thanks
...
Im using ASP.NET Ajax Rating control in my current project and i get this strange behaviour:
When somoene clicks on the control to rate some content, rating is properly executed but browser sroll position jumps to the top of the browser window!
This is very user un-friendly.
Is there a fix for this bug?
...
I have a custom user control that i use in a page in Umbraco CMS... since upgrading to version 4, it seems this user control wont work any longer.
The user control contains an ajax uploader control (support request post here: http://cutesoft.net/forums/53732/ShowThread.aspx#53732), which allows users to upload images, then displays th...
Hi guys,
I am looking into create a dynamic survey as posted in Get User Input From Dynamic Controls but with some different environment.
Below is what i am trying to do:
First when the user click the button, it will populate a dynamic table with radio button for the survey questionnaire inside a placeholder. However, I was unable to ...
I have the following code:
public partial class queryTerm : System.Web.UI.UserControl
{
private static readonly List<string> BooleanOperators = new List<string> { ".", "AND", "AND NOT", "OR", "OR NOT" };
protected void BuildBoolPanel()
{
var parensOpen = _labelBoolean.Text;
foreach...
I'm experimenting with some AJAX now. I have a custom control which appears on my masterpage in which there is an update panel and a timer. The timer fires and the panel updates and everything is dandy. Except that there are some operations that I don't want it to perform on every refresh. It seems like the entire page lifecycle happ...
I have a web application. It is separated into three sections, each with its own asp update panel.
I am using the $(.Selector).slideToggle('slow') jquery method for one of these sections to hide/show the section if the use clicks an HTML link...Another section of the application contains two ASP radio buttons.
I need to trigger the cl...
I am refactoring a legacy web app. This app has a is using the onload event inside the body tag (On the Master page) to run this javascript script. Note this script tag is after the form element in the doc. I know the syntax looks hideous (or Visual Studio at least tells it is by the squiggles), but I'll be darned, the thing DOES indeed ...
Using the asp.net AjaxControlToolkit ModalPopupExtender is there a way listen to an event when the TargetControlID is clicked and the Modal becomes visible?
something like an OnShow or an OnClose method which can be run on the server
Thanks
...
I was wondering if there is a good reason for ScriptReference not to override Equals. It would certainly make life in ScriptReferenceCollections easier (e.g. Contains), would it not?
...
Given the following javascript code:
function ValidateFlagAsUrgent() {
selectedValuesList = document.getElementById('<%= _searchResultsUserControlUserControl.SelectedValuesHiddenFieldClientID %>').value;
$.ajax({
type: 'POST',
url: window.location.href + '/' + 'AreAnyOfTheSelectedTasksInMyProjects',
data: '{"selectedTasks"...