Sign in to follow this  
ArchG

[web] Accessing the Client Side...

Recommended Posts

Hi, I have recently been fiddling with some ASP.net and want to build like a nice kindof validation program using it. I would like to be able to modify files on the client side though. Is this possible? I know ASP is a server side programming language, so what I would I use for client side? Something powerful though where I could actually delete, create, and modify files on the client's side. I think this is possible, but what technology would I use? I'm sorry if I explained what I need bad, if I don't get any reply's I'll try to explain what i'm trying to do a little more ;-) Thanks everyone at GameDev.net ArchG

Share this post


Link to post
Share on other sites
Just think about that for a few seconds. You visit a site, it sends back a result, and that result can freely create/delete/edit files on your computer. I mean just think about that, please.

Share this post


Link to post
Share on other sites
Yeah, I thought about that part. I don't know a whole lot about this or anything, but I thought through certificates or activeX controls or somewhat, you could get permission to do something of that sort?
Or maybe if the site was a trusted site?

This application would be for a company that many employees would be using, so I thought if it was on the web, that would be easiest.

Sorry if this was a stupid idea..

Share this post


Link to post
Share on other sites
You could design an ActiveX control, however not only would it only be IE compatible, you would be fighting an uphill battle to make it safe. Perhaps if I better understood what you are trying to do I could make a better suggestion.

Share this post


Link to post
Share on other sites
Alright, well basically, we have a web server, and we have our work server...and have about 70,000 .htm documents that get uploaded from our work server to our web server everynight.

What i'm creating is somewhat of a link validator, that runs everynight and gets all the bad links, and the redirects, and puts the redirects into a search and replace field, and simply puts the bad links into a table..then when people come in in the morning all they have to do is hit correct, and it automatically fixes the redirects (the other errors still have to be fixed manualy).

At first I just thought, well i'll just make this app in C# or something, but then remembered last time i made an app in C#, what a pain it was getting it to work on all the computers, because of a big security policy thing. (had to go into the .net config tool and add a code group and a whole bunch of muble jumble)

Then I thought, well since the files are on the web server anyway...this program could just replace the files already on the web server (also getting rid of the need to upload everynight), and use something like ASP.net (but i didn't know if you could do that).

And my last thought was that maybe a web application or service could change the files on the client's network, that could be used on virtually any computer connected to the interent (instead of having like a million different versions and programs running around) but after your response, I feel like a fool for even asking about that.

So I guess my question is, what would be the best way to make the application?

1. Make a regular C++ or C# program and put it on the server

2. Make a web application that uses the files already on the web server (if this is possible)

3. Any other suggestions...

Share this post


Link to post
Share on other sites
I don't understand how your solution really helps my problem..from what it looks like is rsync is a file transfer open source program, that only updates the files that need to be updated, which looks like that would be great for uploading every night, but as with the link validator i'm trying to make, that doesn't really reveal a solution
But thank you for your response, I will definatly look into rsync for the uploading and syncing part.

ArchG

Share this post


Link to post
Share on other sites
Hang on... the first post implied you wanted to edit files on a local machine... and the clarification post implies you want to update files on a remote machine. I guess I still don't see exactly what you're trying to do.

And... 70,000 .htm documents? Can't you replace that with some sort of CMS?

Share this post


Link to post
Share on other sites
Quote:
What i'm creating is somewhat of a link validator, that runs everynight and gets all the bad links, and the redirects, and puts the redirects into a search and replace field, and simply puts the bad links into a table..then when people come in in the morning all they have to do is hit correct, and it automatically fixes the redirects (the other errors still have to be fixed manualy).

Why are there bad links (what causes them?), and where do these redirects come from?

If all you need is a tool to report broken links, there are a number of them out there (such as the W3C's Link Checker).

Share this post


Link to post
Share on other sites
Hrmm..I'm not the best at explaining things (obviously)..but i'll try again

The company I work for builds community profiles for realitors.

For Example, pretend Century 21 in Madison, Wisconsin bought our product. What our researchers would do is build a whole bunch of pages with Madison information on them, including links to the parks, libraries, schools, restaurants, listings of housing for sale..and that sorta thing..and the same thing for each of Madison's suburbs. Then when the end user comes to Century 21 in Madison, Century 21 would give this end user a cd (made by us), with an authentication code on it, and it would let them into the Madison, WI information area, where the end user would be able to find everything they need in Madison.

Quote:
By igni ferroque
Why are there bad links (what causes them?), and where do these redirects come from?


The problem is that with all these community pages we have...things are constantly getting changed, people switching from page1.asp to page1.aspx and things like that, so we have a link checker right now that goes out and tells us the bad links.

And the redirects are the same way, pages just get redirected sometimes
for example.. http://www.cityofmadison.com to http://www.ci.madison.com
(my boss insists that these get changed)

Quote:
By Kylotan
Hang on... the first post implied you wanted to edit files on a local machine... and the clarification post implies you want to update files on a remote machine. I guess I still don't see exactly what you're trying to do.


We keep a copy of all these files on our local server, and our web server, so in my first post I was talking about editing the files on the local server, and in the clarification post I was talking about the editing the files on the web server..either way is acceptable. Sorry for the confusion

Quote:
By Kylotan
And... 70,000 .htm documents? Can't you replace that with some sort of CMS?


I'm sure you guys probably think i'm half retarded by now, but what is CMS?

Share this post


Link to post
Share on other sites
Thanks for the more complete description.

It sounds like a custom-made tool would be best. Basically, you would write a simple web crawler that would follow links and record any that produce bad status codes (such as redirets, see the HTTP spec), or connection errors. That part would be easy to write.

As for making the actual changes, you might find WebDAV useful so that you could update pages on the server easily.

Quote:
I'm sure you guys probably think i'm half retarded by now, but what is CMS?

Content management system. Basically a piece of software that automates some of the more tedious work in building web sites. For example, Apache Lenya

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this