homepage Welcome to WebmasterWorld Guest from 54.211.201.65
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
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




msg:4279494
 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




msg:4279569
 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




msg:4279581
 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




msg:4279635
 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