Solved

Can client side .NET version effect website

Posted on 2013-02-04
5
222 Views
Last Modified: 2013-02-04
I have vb code on a ASP.NET 3.5 website using REPLACE to change a string storing a location.

myrptdir = Replace(myrptdir, "\dir1", "\dir2\SubFolder\")

This code worked until after the client side recieved .NET patches. This only stopped working if string contained a slash.

Had to replace above code with:

myrptdir = myrptdir.replace("dir1", "\dir2\SubFolder\")

Question is: Can loading a patch on the client side only effect this when I'm sure I'm running the code on the server side? And if so why is this possable?
0
Comment
Question by:Robert_Clark_53
  • 2
  • 2
5 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 38851416
If the code was being run via Javascript or maybe VBScript, then perhaps there could be a chance that your code would break. Nothing on the client should affect what the server does internally.

This only stopped working if string contained a slash.
Perhaps you can explain what you mean by "stopped working." Did you receive some sort of error, or did the replacement just not occur?
0
 

Author Comment

by:Robert_Clark_53
ID: 38851485
The replace did not occur.
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 38852080
You do notice that in your Replace call, your "to find" (i.e. "dir1") string starts with a slash, whereas in your myrptdir.replace it does not, yes?
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 100 total points
ID: 38852118
I guess this is for a web page.  Did you look at the "View Source" in both circumstances to see if there were any differences?  Remember that the server sends HTML, not .NET code to the browser.
0
 

Author Closing Comment

by:Robert_Clark_53
ID: 38852163
Thanks. This is what I was looking for. HTML is sent to the browser. I needed conformation from experience.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now