Showing posts with label developing. Show all posts
Showing posts with label developing. Show all posts

Monday, March 26, 2012

published AJAX site running, but calendar control not showing up?!

I'm developing this site locally, and it works great during debug on my local machine.

However, when i publish the site up to the remote server, the calendar control that came in the ajax toolkit doesnt work. I click on the textboxes on the published site (which pops up a calendar extender control on my local version) and nothing happens, no errors even, just nothing.

here are the DLLs I have in my Bin folder :

AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.dll
System.Web.Extensions.Design.dll
--all the language folders that come in the toolkit

As long as I have all the dlls, I thought I should be good to go? Any ideas?

Is the Web.Config updated to handle ASP.NET AJAX Extensions & Control Toolkit?

You can find a sample ASP.NET AJAX 1.0 Web.config here - http://blogs.msdn.com/webdevtools/pages/asp-net-ajax-1-0-web-config.aspx


that worked! you da man, mvark!

Saturday, March 24, 2012

push data to client/ keep checking the server side for any update to load

hi..

Im developing a web application to be used over the internet (not entranet) that means I have unknown of users accessing my web site.

I need to keep checking the server side every 30sec by creating hidden iframe to keep submiting to the server and check for specific updates( such database table). I think this way will reduce the performance of the server and not accepted!

is it true as I think? there is any other technique to this? is there some AJAX control to use instead?

note: Im fetching a small amount of text from the server

It really depends on your system and the expected number of users. Of course, every time you poll the server it takes some performance but in many cases the rewards outweight the performance hit.There are a lot of sites that do this and its not a huge performance hit if you are just retrieving a small amount of text. I would say go for it if you have the capacity.


Take a look at this: http://encosia.com/index.php/2007/07/25/display-data-updates-in-real-time-with-ajax/

The page method call for polling keeps the traffic level very low, compared to other techniques.

Question about AutoCompleteExtender and DelimiterCharacters

Hello, I'm developing and application that uses the autocompleteextender.

This autocomplete should work more or less as the "add adress" bar in an email program. You introduce text, the app suggests something, you choose any suggestion then write a ";" and start de process again until you got al your adresses neatly separated by ";" in a multiline textbox;

Via the DelimiterCharacters i'm getting this effect using ";" as the delimiter character. What I don′'t like is the way it renders after you have chosen one field:

Example

See what I mean? I don't want the "El inquilino comunista" in front of every suggestion, I've already choosen it. The more suggestions you choose the more confusing it becomes:

Example

I would like the suggestions to be (after i've already chosen "El Inquilino Comunista" and "The White Stripes")

Alan Sparhawk
Alanis Morisette
Alasdair Roberts ...

Any ideas how to acomplish it?

Thank you.

Hi,

I think you may accomplish this in the server side method that fills the DropDownlist.

1. Get the last word separated by the delimiter

2. Fill results according to the word.

For instance:

[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
string[] result = new string[16];
int index = prefixText.LastIndexOf(";");
if(index >= 0)
prefixText = prefixText.Substring(index);

for (int i = 0; i < 16; i++)
{
result[i] = prefixText + i.ToString();
}
return result;
}

Hope this helps.

Wednesday, March 21, 2012

Question on Ajax development in Dreamweaver

Hi All,

Because our vendor has all along been using Dreamweaver for developing our website, we've got a set of Dreamweaver 8.

But I've trouble understanding how should I integrate ASP.NET Ajax and develop in Dreamweaver? Is it possible?

Or is Visual Studio (full version of express version) the only right choice for web development in ASP.NET Ajax?


Your guidance is appreciated.

thanks,

jackling

For developing websites using ASP.NET 2.0 (inc Ajax) Dreamweaver 8 is virtually useless. It doesn't even understand what to do with a .master file, and will attempt to open it as plain text. Dreamweaver 8 was developed before ASP.NET 2.0. Without any doubt, VWD or VS is the way to go.

As above but also I used to use DW8 ($$$) but gradually moved over to VWD Express (FREE) as I found it offered more to the programmer, especially if you are doing any amount of Javascript (integrated Javascript debugger in VWD)!

Put it this way, it's not going to COST you anything to use VWD Express :-)