Solved

Can client side .NET version effect website

Posted on 2013-02-04
5
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

752 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