Solved

Can client side .NET version effect website

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to file 3 92
JQuery tracking event. 3 84
Stream live video from Raspberry Pi camera 22 256
what is socket pooling? 8 16
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…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

749 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