Showing posts with label client. Show all posts
Showing posts with label client. Show all posts

Wednesday, March 28, 2012

Difficult to disable ClientState in User Control

Not sure there's a solution for this, but I find it overly difficult to disable the client state field. I'm using HTTP Get for my post, and I have a textbox watermark extender on a field. I don't want the ClientState because it makes my URLs look bad. So I have to set EnableClientState to false BEFORE the client state hidden control is actually set. In a user control, I don't think I get any chance to do this. (The debugger says I don't see OnInit before the contained TextBoxExtender does, and there's no PreInit for the control).

So my only choice would be to derive from TextBoxWatermarkExtender. Not the end of the world, but I don't think it's what was intended. Thoughts?

Your idea about deriving from TBW seems pretty reasonable to me. Any objections?
Yeah, it's an awfully heavy price to pay for simply setting a property. I would much prefer to see this in the core classes.

Saturday, March 24, 2012

Deploying ASPAJAXCTP.msi in Client Place

hi,we have developed our web page with AJAX and now we are in a stage to deploy our portal to the client. since we have used the ASPAJAXCTP.msi, we need to install in the clients place. is there any method to check whether AJAX tool kit has been installed already if not then install. like this can we check?hope some one can help me on this.thanks in advance

sbadriprasad:

we need to install in the clients place.

Well you do not need to install the MSI if you manually reference the ajax assemblies rather than using the GAC copy.

sbadriprasad:

is there any method to check whether AJAX tool kit has been installed already if not then install. like this can we check?

You can check the computer's add/remove programs for the AJAX extensions called MS ASP.NET 2.0 Ajax Extensions 1.0

Deploying AJAX.NET

Hi,

I just wondering how can we deploy AJAX.net in our setup. Did our client will need to install AJAX.NET and our application, or can we embed the dll in our bin folder... The installation guide as this note...

In the installation Guide its wrote:

note

The installation process installs the ASP.NET AJAX assembly (System.Web.Extensions.dll) in the global assembly cache (GAC). Do not include the assembly in the Bin folder of your AJAX-enabled Web site.

Please help!!

Best Regards

Marc-Antoine Latour
Strategia Communications
http://www.strategia-ed.com

Hey,

You need to install ASP.NET AJAX on the server where you are running your site. When that is done you need to configure the webconfig file. There is a guide on asp.net that helps you with this configuration.

It is not possible to include the dll in the bin folder and your client does NOT need to install anything.

/Sebastian


Ok what I understand, its that there is no way to include AJAX.NET setup into our application setup. Can we add the AJAX.NET setup files in our application cd-rom? If so we could add a prerequisite into our setup to ensure that our clients install the proper version of AJAX.NET.

Best regards,

Marc-Antoine Latour

Deploying ajax apllication on the server where ajax extension are not installed in GAC [gl

I am copying ajax extension in the bin directory of my website and giving to the client.
For instance if the Ajax extension is not installed on the server then my bin directory dlls will work other wise the GAC version of ajax extension work.
Any Comment on this idea

This is a perfectly acceptable way of deploying an asp.net ajax application. This should work so long as you include the Microsoft.Web.Extensions.Design and Microsoft.Web.Extensions dll's in your project.

I may be missing one, but those are the main two, excluding the ajaxtoolkit dll if you want to use any of the toolkit controls.


Thanks tfsmag.

Please also clear me about two points

1, For letting the refrence from the Bin directory what changes i need in the web.config [if any]

2, For instance if i have copied ajax 1.o version in my bin directory.for instance now there is a new release of the Ajax Extensions let say 1.1 and on the server this new version become installed

Now which version of my ajax dll will be called GAC or from Bin directory ?


if you already reference the proper dll's in your web.config you shouldn't need to change it. If I recall correctly the application will use the version in the bin if there is one. I'm pretty certain that the app only looks in the GAC if you don't have a reference to the dll's in your bin folder. I may be incorrect (it's been a few months since I had to deal with this issue and I don't have access to the old source code from the app that I worked with handy at the moment). Give it a try and let me know how it goes!

As far as the ajax extensions go, I believe you'll need to have the proper version of the extensions that matches the version of AJAX you're using. For instance I don't think the current version of the extensions will work with the previous version of AJAX.

Hope this helps!

- Jeff


~hello.

well, if you want my opinion, you shouldn't do that unless you know that your asp.net apps will run in full trust. there are some operations performed by the asp.net ajax that requires more priviliges that are available on medium trust apps (which is how most web apps are configured)


I don't think I've ever created a web app that didn't run in medium trust, I guess I'm confused as to why having your dll's in the bin rather than the GAC will affect anything as far as trust levels go. Could you explain it to me, I'd like to know for future reference.


hello again.

if i recall correclty, since .net 2.0 gac components have full control. if it's there, it can do anything. period. there are some cases where the asp.net ajax platform would need full trust to perform its operation. if the dll wasn't on the gac, this would mean that your web app wouldn't be able to continue to run in medium trust.since the dll is on the gac, everything will work without being necessary to change the trust level of the site. I think that Scott Gu has spoken about this in the past in his blog, so you might want to run a search over it...

Delete Local Client File?

I have this upload utility that we created here at the office and I wanted to know if there is a way I can add a delete function to delete the uploaded file from the clients workstation (client side) from AJAX. We are trying to eliminate duplicate files on workstations and our web server. I created a WinForms control but it needs to have .net 2.0 configuration made to the security of every worksation so it ended up being a nightmare. Is there any other methods or tools I can use to accomplish this?

-rich

From ASP.NET or client side you cannot access the files in the client machine, sorry, you'll need to create an Active X for that
yea, kind of figured that - What's the best method in Visual Stuido 05? I've used vb 6 last time I had to create one but that was so long ago I have no idea where to begin...
You can use C++ in VS2005. A good start point is herehttp://msdn2.microsoft.com/fr-fr/library/zbwca5s6(VS.80).aspxHope this helps

Wednesday, March 21, 2012

decimal data type

Hi all,

I am having trouble working with the decimal data type in the client side js. I am returning this custom object that has decimal properties. When I try to ready the value of these properties in javascript I get an object type.

How can I get the values?

Decimal should be working well. e.g. I just tested with a simple EchoDecimal method, and it correctly round trips the number I pass in:

[WebMethod]

publicDecimal EchoDecimal(Decimal de) {

return de;

}

What do you mean by "I get an object type"? Have you tried using fiddler to make sure the data over the wire looks proper?

David