Showing posts with label pages. Show all posts
Showing posts with label pages. Show all posts

Wednesday, March 28, 2012

AJAX Beta 1 has forced my pages to US Date format !

Since adding AJAX Beta 1 to my PC all my IIS sites are now showing and requiring dates in MM/dd format instead of dd/MM as they were before.

I have tried:

<globalization culture="en-NZ" uiCulture="en-NZ"/> in by config file and set each page to the same.

Anyone else know why this is and how I can get around this issue ?

Thanks

Matthew Hill

hello.

hum...strange...atals used to have some globalization support but in only influenced client side locale methods. how are you putting the dates on the pages?


I have FormView & GridView controls that display various data from a database. The queries to the database returns the dates as Date fields as per normal but since adding AJAX Beta 1 and the corresponding AJAX Toolkit the dates are showing as MM/dd/yyyy. I set the locale to en-NZ in every page and in the global settings but still they are showing wrong. I also checked my locale settings.

Is it possible that something may be corrupt in the website?

Mat


hello.

though i'm no globalization expert, i think that the problems you're facing are related with ASP.NET and not AJAX extensions. It's really strange that it only has affected your app after adding the extensions...does removing the extensions solve the issue?


Thanks for your reply.

I have tested copying it to another server with AJAX and the dates are around the right way. I still can't figure out why none of the settings are changing the dates back to en-NZ. If I view the site from another PC it is around the wrong way. Argggghhh.

Mat


hello.

quick question: are you pages configured to use localization? if so, are they configured so that they get the values from the browser? if that is tru, then what might be happening is that the browser may be using US culture by default and sending that info back to the site...


I have checked and can't find a US date setting anywhere in IIS, IE7, Regional Settings, Visual Studio, Ajax, Ajax Toolkit. I'm hoping it's not gettings it's settings from the system's Regional properties (the ones created during Windows install) as I don't know how to change them. Also I don't know why they have only just started to effect IIS.

If you visit my website from another PC it shows in US format too, so it is definately an IIS issue.'

Mat


I have checked and can't find a US date setting anywhere in IIS, IE7, Regional Settings, Visual Studio, Ajax, Ajax Toolkit. I'm hoping it's not gettings it's settings from the system's Regional properties (the ones created during Windows install) as I don't know how to change them. Also I don't know why they have only just started to effect IIS.

If you visit my website from another PC it shows in US format too, so it is definately an IIS issue.'

Mat


In ScriptManager's element try to add attribute EnableScriptGlobalizationwith value false:

<atlas:ScriptManagerrunat="server"ID="scriptManager"EnableScriptGlobalization="false"EnablePartialRendering="true"/>

Probaly it's because of your preffered languages in IE7 (as rule there is "English [en-us]").

Monday, March 26, 2012

ajax animation extender pls help

Hello all I had designed my website with help of ajax extensions in that project i had designed master page and this page inherits some another pages but whenever user goes inside the link i want to disable some of the links which presents on the master page .

i am using animation extender ,when animation flyout on button clik then i want only animated div tag and disable all background page.

I want to use same functionality as asp.net forum uses when user click's on select tags button .

whenever uses select that topic only animation is enabled on the page and background is disable

you can see this functionality by posting a query on asp.net fourm

thank you

ravi amber

Hi Ravi amber,

I'm failed to get clear enough with your question. So would you please explain what you want more clearly? Thanks.

ravi.ambar:

but whenever user goes inside the link i want to disable some of the links which presents on the master page .

i am using animation extender ,when animation flyout on button clik then i want only animated div tag and disable all background page.

I want to use same functionality as asp.net forum uses when user click's on select tags button .

What are these really mean??

Best regards,

Jonathan

Saturday, March 24, 2012

Ajax and user controls

hi all,

i have a master page whith some aspx pages that inherit from him , each page has some user controls each control has Ajax functionality

the question is where to put the script manager

    one on the master page.one on each aspx page.one on each user control,

thanks Daniel

I have found it seems to work best on the masterpage when you have controls using ajax on many content pages.

AjaxButter


YOu can't put more than one on the page, so if you have them both in the master and in a page, you should expect to see an error. Instead, put it on the Master, and then have proxies on the pages and controls

AJAX and Master Pages

I seem to be having some trouble using AJAX and the ControlToolkit with Master Pages.

Just to make sure, I created a new website based on the AJAXControlToolkit template.

and a simple default.aspx - it only has a scriptmanager, panel ( with some text in it), linkbutton and AnimationExtender.

it is set to show/hide the panel when the linkbutton is hovered on - this works as expected.

Then, I create a masterpage.master file and a new WebForm based on this master file.

using the same markup fro the default.aspx page, I get a page that looks the same as default.aspx

but does not show/hide the panel and has a Javascript error as follows:

Sys.ArgumentException:

AjaxControlToolkit.Animation.Animation.set_animationTarget requires the ID of a Sys.UI.DomElement or Sys.UI.Control.

No element or control could be found corresponding to 'Panel1'

Parameter name: id

It seems as though the controls are being renamed and I might need to change the TargetControlID on PageLoad or something.

Any ideas would be appreciated.

Mike

This is the difference between server ID and client ID. The .ClientID property of a control can be used to get its client ID and should help here.

AJAX and Master pages

hi all,

I try AJAX with master pages and I've stucked in some probelm. Accroding to my requirement, my master page has two contentplacehoder.One on left side, and one in the middle. I have an update panel in the middle content place holder. Now I want to update the control in the middle contentplace holder on trigger click event of some Image button which is in the left contetplace holder. I've put my scriptmanager in the master page also.

But when I click the Image button,entire master page is doin a postback,which Is not AJAX. Can some tell me how to achive this.

I've seen the standard example of updatpanel with master pages in documentation, but there the button is actually on the master page. But in my situation, I've a button in some other contentplace holder, on whose click event I want to update my panel, without postback.

I really don't understand why the post back is hapening. HOw can I approach to solve this problem. can some please help me. Its kind of urgent.

Thanks a lot.

Hello,

First of all a little advise, never use (learn) a new thing, when something is urgent... :-)

Its a bit difficult to answer without a code example from your side, but i try.
The problem i think what is giving the postback, is that you use different aspx pages in your content holders, and only the middle one has a UpdatePanel, but the left one doesn't.
So the click on the button in the left content holder, act normal inside his own aspx page, and causes the masterpage to do a postback..

The problem like you have can maybe solved (just in theory), by putting the buttons also in a update panel, en doing a codebehind refresh of the update panel in the middle.

Like i said, i didn't tried this myself, but maybe gives you some direction where to go.

Marchu


Wrap everything (starting with masterpage before the contentplacholders) with a updatepanel.

add a updatepanel to both of the contentplaceholders...

This way when you have a change that happens in one that updates the other the encapulating updatepanel will update what is required...(it should work in theory at least and a technique I use for handling modalspopups within a gridview but in seperate panels


Hi Marchu,

First of all thanks for your immediate reply. And sorry for one small thing, I forgot to mention in my (long) post above, that my button and updatepanel are in same content page(aspx page). Just that I've put the button in another content place holder then my update panel. When that page is called in the master page, the button comes in the lesft contentplace holder, and update panel in the middle. Thats why I assumed that it will work and will not give post back.

I hope u got my point. I was not able to put the code as I'm not at my work place, and its lying there. I'll try to put it in my next post if possible. ( sorry for that). What do you suggest about this. Shhould still try with putting the button also in the update panel?

Thanks again.


Hey thakns a lot Jody.

I'll try Marchu and yours both way and get back to you if any issues or problems.

Thanks a lot again.....


Let us know what works for you - we are here for ya...

Hello,

yes i think you can better try that, or the solution from jodywbcb.

On the other hand, i know for sure when you post some code.
(To be honest, its not 100% clear what you mean :-))

Marchu


Hi Marchu and Jodywbcb,

Thanks a lot for reply first. Well, as you both told, I tried the same thing by keeping the butttons and everything in the update panel and everything works.I did it as follows...

My mater page is same with two content place holder,one at left and one in middle. and my Scriptmanager is in master page.

In my content page, I've kep my repeater control, which should change on click of an Image button, inside an update panel, and this goes in the middle contenplacehoder of the master page.

Also I've kept my Image button too inside the update panel, and this goes for the left contenpalceholder of the master page. I've not used any triggers.

I tried to use only one updatepanel by encapsulating both the <asp:content></asp:content> but it gives an error.

Anyway thanks again and sorry for replying late as I was traveling and not at my office.

-Regards,

MehulMistry

Wednesday, March 21, 2012

AJAX and Gzip

I would like to compress my .aspx pages.

When I tried using Gzip, the page size was greatly reduced, but the Ajax on the page stopped working.

Thank you for help.

Could you please be more specific on how you are currently using GZip? Are you using this in a HttpModule? Are you using it specific on pages only?

Did you ever find a solution to this? I am having the same problem while using an IHTTPMODULE. Very, Very, frustrating...


In the BeginRequest of your HttpModule you should check wheter there are ajax headers in the page:

for example:

check first if there are headers otherwise you could use compression:

string ajaxHeaders = app.Request.Headers.Get("X-MicrosoftAjax");if (String.IsNullOrEmpty(ajaxHeaders))

{

///compression...

}

Ajax should be working than and you can use compression on pages that dont use ajax.

AJAX and Content Pages require MasterPage open stil an Issue in RC1?

Hi,

I have just updated my project to RC1 from BETA2 and it appears that the problem with content pages still exists. When I have a content page open without having the master page open I get a build compilation error on items such as ScriptManager and UpdatePanel. Is everyone else still experiencing this? Or is there something I've missed in my setup and migration? If this issue does exist for everyone, is this issue going to be fixed for the Full Release Version of Microsoft Ajax Extensions?

Thanks

Andrew

Sorry all,

I think I can answer my own post. If found a Post on Scott Guthries Blog which has resolved the problem for me. At the base of the post, Scott instructs users to delete the cached schema files for VS2005 in order to enable Intellisense correctly. The post link ishttp://weblogs.asp.net/scottgu/archive/2006/12/15/asp-net-ajax-1-0-release-candidate-now-available.aspx

Cheers

Andrew


Hi Andrew,

I have same problem as yours, and I did what Scott suggests. But I still get build compliation error. Can you give me some hints.

Thanks a lot,

Sean


Hi Sean,

I found that I needed to close down VS05, delete the schemas from the following directory (Windows XP)

C:\Documents and Settings\[Insert User Name Here]\Application Data\Microsoft\VisualStudio\8.0\ReflectedSchemas

and then go back into VS05 and rebuild the project/site.

Give this a go and let me know how you get on.

Cheers

Andrew


Thanks Andrew,

I did exactly what you instructed and I even re-installed RC, but I still get error. Actually, I should say I get build error from page source view, but no error building from design view. I am wondering if this is bug in RC. Did you have same problem?

Best,

Sean


Hi Sean,

sorry I didn't have the same problem I found once I had followed the steps in the readme and cleared out my schemes I was fine.

ASP.net AJAX v1.0 has now been officially released so why not download the full build and update your project and see if your issue is fixed? I can't upgrade mine at the mo, 'cos I 'm at home and the apps I'm working on are work ones. Will do them in the morning. Let me know how you get on.

Cheers

Andrew


Thanks Andrew,

Actually, I am using AJAX 1.0 officially release. For time being, I just let it go since I can build from design view. And I got one more question, after migrating to AJAX 1.0, the TAB not working properly, for example, click checkbox to display and panel, but the cursor will go to top of page. when I use 'Atlas', I can use Focus( ) to force cursor stay on the check box. But now the Focus not working anymore, Do you have any idea?

Thanks,

Sean


Hi Sean,

how are you getting on with this? One thing that might be worth looking at to clear your issue with building in code view is to create a blank ajax site and then copy the web.config to your site you're having a problem with and put in your appSettings and connection strings etc from your original web.config into the new web.config file.

As for the tab issue can elaborate or provide a sample and I'll see if I can replicate the issue? I haven't had any issues with my current project, the installation of version 1.0 went fine. I have a page which has some calculations updating through AJAX and would expect to see a similar issue with tab but don't.

Cheers

Andrew

AJAX And Content Pages

Hi to all..

I have the binaries of ajax control toolkit i do not have installed ajax extensions. then how to use these features of ajax in my project - how to add reference of it?

I have designed a master page and all the other pages - that are content pages, so how to use AJAX control toolkit in content pages.

Hi there,

first of all you have to install the Ajax Extension package (MSI), then from your project, you have to add a reference to AjaxControlToolkit assembly. Finally, select the toolbox window, right click on there, add a new tab, for instance "Ajax Toolkit", and then right click on this new tab and select the "Choose Items" option, at this point a new window will be opened so then select the "Browse" button and click on the AjaxControlToolkit assembly and that's all. You will see the whole AjaxControlToolkit on your toolbox window.

I hope it helps.

Regards,

Fernando.



hi,,

thank you for give me suggession.

i have already done that thing but the problem is when i put <asp:ScriptManager>.. inside the content page the following build error comes there "unknown type <asp:scriptmanager>"

and second thing is

if it runs successfully then there is an error in web browser like in status bar of browser "done, But with errors..."

sys. - undefined.

these errors i've faces so far so please guild for that also..

Thank you

Bhavin

AJAX and ASYNC Pages

All,

I'm looking to implement the following scenario:

1. User clicks on a link.

2. A panel is raised indicating that a long running operation is about to begin.

3. A request to open a new window which will host an async page that will stream a pdf is made.

4. When the callback from the async page returns, I want it to trigger an action on the parent page to hide the progress panel.

Basically any examples of incorporating async page callbacks and ajax update panel callbacks.

Ariel

hello.

why do you need async pages to do this? is the server processing making a long web service call or perfomring an expensive db query?

The popup

http://ajax.alpascual.com/ModalPopup/ModalPopup.aspx

and then the PDF

http://alpascual.com/search/SearchResults.aspx?q=pdf

Hope that helps you finish the project

AJAX and ASP issues, Help!

I have been reading this forum and have found it very helpful, so I decided to join. I just started incorporating Ajax in asp pages and I am still learning it, but the current page I am working on has had me debug for days and it is not going anywhere.

First, I have a condition in the Page_load method:

if (!IsPostBack && !IsAsync){//Stuff LoadData(); DataBind();}

I have a control that extends a grid view and has Ajax functionality incorporated into it and allows edit and delete on a row, or click a new button. When Edit or new is clicked a panel pops up, which is in an update panel and the background (the grid view) grays out. After I save the changes by clicking the Save button in the edit panel, the grid shows the saved row. Next time I click edit or new, however, the edit panel cannot load fully, and the method that is getting called that loads the panel doesn't get called.

Further, if I click edit and cancel, and then edit again or some other action, one of the columns in the grid disappears, and that is one that is populated dynamically.

When I refresh the page, things go back to normal. I am in over my head, and not sure how to get this working.

Any help is appreciated

Thank you!!!

Controls that Are Not Compatible with UpdatePanel Controls

The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside anUpdatePanel control:

TreeView andMenu controls.


You can see the online documentaion here

http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx


Thanks for responding. I ended up implementing custom validation using Javascript and it looks great now. Thanks!