Solved

Can client side .NET version effect website

Posted on 2013-02-04
5
241 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 75

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 75

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 83

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
API Soap Calls 4 112
spamming  on Hosted svrs? 6 88
Domino Website - Redirection 12 74
Having trouble setting Apache to recognise 2 vitual sites (on different drive). 3 109
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

776 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