 |
|
 |
nice article provided by you.
|
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi guys!
I created a control that works like an AJAX container. Basically the way it works is that all the ASP.NET controls that you place inside of the AJAX container will automatically become AJAX enabled.
For example, at the same website where I uploaded the control assembly, I also posted some tutorials on how to use this AJAX container control. One of the tutorials walks you through the steps to create an AJAX chat application. You will see that you can code the ASP.NET controls exactly the same way you do in other regular projects. The controls are placed inside of the AJAX container which turns them into AJAX enabled. This AJAX container also has a property called ShouldRefresh. When set to true, it will update the contents of all the ASP.NET controls inside of the container.
Another tutorial that I also posted at http://www.KYNOU.com shows you how to use this AJAX container control to add three dropdownlists onto a web form and make sure that their contents get populated depending on the picked value in the previous dropdownlist. Something like an auto dealer website where you can choose the make and then the model dropdownlist gets populated according to the picked make. This tutorial shows you how to do that with three dropdownlists but you could have unlimited number of dropdownlists.
I uploaded this control and posted some walkthrough tutorials at http://www.KYNOU.com
Check it out!
http://www.KYNOU.com
|
|
|
|
 |
|
 |
I see that your first Ajax example uses the excellent http://www.ajaxpro.info/ Ajax.NET Pro. I think this is the way to go. Looking at your ajax control, your container method is the same approch microsoft is taking in Atlas, which I think is the wrong approach. Why is a container better than an attribute?
|
|
|
|
 |
|
 |
http://www.ajaxpro.info/ Ajax.NET is the best ajax library for .net 1.1 or 2.0. It is better than Atlas. MS really messed up by not doing Atlas the way Michael did Ajax.NET.
To anyone reading this article, dismiss all of the troll advertisement entries and use Michael's Ajax.NET.
|
|
|
|
 |
|
 |
I think you wanted to introduce the audience abt AJAX basics. But It seems(from your article) that AJAX is all about JavaScripts. IS it so? The Heart of AJAX is the xmlHTTPRequest object.
anyway This a a cool article.
http://www.codeproject.com/Ajax/AjaxExplained.asp
-Syed Moshiur Murshed
|
|
|
|
 |
|
 |
Hi, I implemented the same code, it is workign fine on the machine where the project is installed (means localhost), but if i accees is from other machines on same network or i uploaded it on website see here : http://www.braintechnosys.com/ajax/result.aspx, It gives javascript error "request isnull ornot an object". I made sure i changes the var url to the correct path http://www.braintechnosys.com/ajax/ instead of localhost
It is working only on my machine that i used to build the project, it even do not work on the server where i uploaded it.
Can anybody help ?
Thanks in advance
|
|
|
|
 |
|
 |
Sorry Guys, I got the solution, actually i forgot to change the path for inc/requets.
Thanks,
Shri
|
|
|
|
 |
|
 |
<script language=jscript >// Create the Request object (the AJAX wrapper)
// Create the Request object (the AJAX wrapper)
var request = new request();
// Change this to fit your environment
var url = "";
function getOptions()
{
// Call the AJAX
// Notice the second parameter is actually a function to handle the
// response
request.GetNoCache(url + "default2.aspx");
function(result)
{
if (result.readyState!=ReadyState.Complete)
return;
if (result.status==HttpStatus.OK && result.responseText != "")
{
// If the request was successfull and returned data
var vals = result.responseText.split("~");
for (i=0; i
help!request is null.I don't understand,can't run!
|
|
|
|
 |
|
 |
success. Because I only use page code.When download all file,then convert to framework 2.0.
Thanks.
I from china. www.zhongguosou.com
|
|
|
|
 |
|
 |
Your problem NOT Server.
That error, you must read again your code.
maybe your code is wrong because that error I meet more and when i repair my code, it' s not error ! okie !
11
|
|
|
|
 |
|
 |
you have good explanation for using Ajax .....but please help me more detail with diagram or struct of this Library .
me
|
|
|
|
 |
|
 |
Atlas and Ajax-based APIs are really hard to maintain, and its client side architecture breaks server-side API.
zumiPage is a better solution.
http://www.zumipage.com
|
|
|
|
 |
|
 |
Very nice article. Maybe you are looking for a complete framework providing AJAX features like in this article while keeping ASP.NET server-side programming model, please visit:
www.comfortasp.de
Daniel.
|
|
|
|
 |
|
 |
AJAX.NET provides support for any Serializable .NET data type. All your need is to mark it with [Serializable] attribute.
AJAX.NET also supports arrays and System.Collections.ArrayList data type for serializable collection members. In fact the author of article was responsible to write much professional code:
A. To store select option create class Option
[Serializable]
public class Option
{
private string _text;
private string _value;
private bool _selected;
...
// Constructors...
...
public string Text
{
get { return _text; }
}
// so on ...
...
}
B. Server-side AJAX method to load options
public class ServerSideCode
{
[AjaxMethod]
public static Option[] GetOptions()
{
//
// TODO: Place code to fill HTML Select here
//
}
}
C. Client-side code to load options
<script language="JavaScript" type="text/JavaScript">
function setOptions(response)
{
var options = response.value;
for(var i=0; i<options.length; i++)
{
var text = options[i].text;
var value = options[i].value;
//
// TODO: Fill select option with text and value provided
//
}
}
...
<!-- And HTML code with controls -->
<input type=button value="Fill Select" önclick="ServerSideCode.GetOptions(setOptions);" />
<select id="mySelect"></select>
|
|
|
|
 |
|
 |
I am new to ASP.Net. I cannot seem to open a project. I kept on getting error message "The project you are trying to open is a web project. You need to open it by specifying its URL path". But the project is in the wwwroot/Ajax folder and already is bind with IIS. Maybe you could upload the .sln file, too. THanks in advance. Note, wonderful article.
|
|
|
|
 |
|
 |
Ops! never mind, I got it working. rename->AJAX folder to AJAXBAK -> create a project call AJAX which it automatically create AJAX web virtual folder for me -> recompile via MSVS to make Ajax.sln file -> Copy all the project -> AJAXBAK to AJAX -> open project via ajax.sln.
|
|
|
|
 |
|
 |
http://ajax.schwarz-interactive.de/csharpsample/default.aspx
|
|
|
|
 |
|
|
 |