homepage Welcome to WebmasterWorld Guest from 54.242.140.11
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Is ASP really this 'sensitive'?
ASP newbie edited files in text editor and weird error happens
tigertom

10+ Year Member



 
Msg#: 4279492 posted 10:06 am on Mar 10, 2011 (gmt 0)

Client has a site in .aspx and MSSQL. The coder is unhelpful. No admin interface, so if they want to change prices they have to enter SQL queries themselves. Not ideal.

They also wanted an on-site phone number changed. I tried editing the .aspx files in a text editor and a file called 'inner.master' and FTP'd them to the site.

One form field has a regex to check post-code. Previously, it displayed the user's sign-up _password_ on the second, sign-up screen: an error.

_After_ my text editing (find and replace telephone numbers), the script gave an 'invalid post-code' error.

So it was doing one odd error first and then a _different_ one later.

Then, when I re-uploaded the _backup_ files, the script exited immediately with a error message.

Q: I've edited PHP and Perl files for years, safely. Is there something different about .aspx files?

Q: Can .aspx files be edited and FTP'd safely in a text editor?

 

topr8

WebmasterWorld Senior Member topr8 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4279492 posted 1:28 pm on Mar 10, 2011 (gmt 0)

>>No admin interface, so if they want to change prices they have to enter SQL queries themselves. Not ideal.

well building an admin interface is expensive.
however you should at least write a stored procedure on the sqlserver which you can call to change prices, it's always a risk writing out new queries to run against the database each time you want to update it (incase there is an error in the query that causes an irreversible change.

PCInk

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4279492 posted 1:55 pm on Mar 10, 2011 (gmt 0)

Then, when I re-uploaded the _backup_ files, the script exited immediately with a error message.


Check that it is being uploaded in the correct format (binary/ASCII) in your FTP client. It might be that the FTP program you use either doesn't recognise .aspx, perhaps only recognising .asp extensions.

Could be as simple as that?

tigertom

10+ Year Member



 
Msg#: 4279492 posted 3:08 pm on Mar 10, 2011 (gmt 0)

I used WinSCP. An older version, but it would surely recognise a .aspx file(?). Thanks for the tip.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved