5
Answers

Help! Can't get Web Services to display in browser - tries to open in Visual Studio

piferc

piferc

20y
2.3k
1
Everywhere I've read and tried examples... the samples have me test the web services by typing the web service URL in the browser. Example: http://localhost/ProductService.asmx However, my browser always tries to open the .asmx in Visual Studio. What do I need to modify in order to make this work. I am currently running Windows 2000 with IIS 5.0. Thanks Carrie
Answers (5)
0
Nilanka Dharmadasa

Nilanka Dharmadasa

NA 5.2k 0 15y

Hi Friend,
 
As I feel, what you have done is correct. If you change the size of the matrix then definetely you will have to reassign the values of each and every pixel. I dont think you can stop that by using another way.
 
You can use a class like this. So you can set the values from outside according to OOP concepts.
 

public class MyImage
{
 private int _ImageSize = 16;
 private double[,] _Matrix;
public MyImage(int imgsize)
{
      _ImageSize = imgsize;
      _Matrix = new double[_ImageSize, _ImageSize];
}

 
 
 

 public double this[int x, int y]
 {
  get { return _Matrix[x, y]; }
  set { _Matrix[x, y] = value; }
 }
}

 
Mark Do you like this answer checkbox if this helps you.