Showing posts with label upgrade. Show all posts
Showing posts with label upgrade. Show all posts

Monday, March 26, 2012

Proper way to deploy ajax to Production server

Our server currently has .net 2.0 and we would like to upgrade it to allow AJAX. What is the proper way to deploy ajax to a Production server? Will old .net applications on the server be affected?

Eric

You need to run the same installers on your server that you ran on your development machine to install AJAX. It installs strongly named DLLs into the Global Assembly Cache, so you can't just put the DLL in your web app's /bin folder.

Old .net apps should not be affected, since AJAX is an extension, which must be referenced by a project in order to be used.


Just run the installer. The System.Web.Extensions dll is separate from the rest of the framework so it won't change .NET 2.0 behavior.

-Rich


I take it we need to update the .Net framework on the server to 3.0 first?

Eric


Nope.

Saturday, March 24, 2012

put an AutoPostBack=true control inside a updatepanel?

Hi, All:

Just upgrade to AJAX. Everything works greate. Maybe this is a simple question.

I have a gridview which is inside in a updatepanel. then I have an dropdownlist inside a ItemTemplate of my GridView and this the autopostback attribute of this ddl is set to true. I have a onselectedindexchanged event to do something and refresh the gridview (old fashion way). Does this autopostback= true will refresh the whole page ( I have other controls on this page except theis gridview). I tried and It looks like it just refresh the gridview only. Am I right? If I set the autopostback=false, then nothing happened. I can not put this ddl into Triggers since it is an control in the itemtemplate of the gridview

Another question, with this ddl index changed event, I want to change partial of the gridview only, say show or hide a label in another itemtemplate, what should I do? put the updatepanel inside the itemtemplate??

Thanks

-rockdale

Hello rockdale,

Question: *** I tried and It looks like it just refresh the gridview only. Am I right? ***
YES, since it's inside the UpdatePanel. Leave your AutoPostBack=True.

Question: *** I want to change partial of the gridview only, say show or hide a label in another itemtemplate ***
Step1: *** onselectedindexchanged event to do something and refresh the gridview (old fashion way). ***

Sample:
<asp:gridview id="gridview1"... >
<columns>
<asp:templatefield>
<itemtemplate>
<asp:Label id="lblName" Text="John Smith" runat="server" />
</itemtemplate>
...

At Step1, you can hide or show part of your gridview.

dim ctrl as control
ctrl = controlfinder.fincontrol(me.gridview1, "lblName")
if not ctrl is nothing then
ctype(ctrl, label).visible = true or false
end if

WS


Wednesday, March 21, 2012

Question: Is Upgrading Atlas Versions Easy?

Hi there,

I'm just wondering how difficult it will be to upgrade an app using the October release to the January release of Atlas. Are there any issues I should be looking at? Has anyone else tried it?I've never done it, but I have upgraded one of Nikhil Kothari's samples from the PDC2005: thePhotoBrowser to the December release and there were several API changes. These files are dated in September 2005, so I'm assuming they're using an earlier release than the October release. I believe upgrading from the December to the January release should be a smoother process.