How to get aspx page to work in Active Desktop
Posted on 2005-03-24
I created a web application in ASP.NET that reads from a text file and displays it in a text box, you are able to edit the content in the textbox and then save any changes back to the same file. This part works.
Now what I am attemping to do is set this webpage as the active desktop. This way I can just type into the desktop and save it. I won't have to open any windows since I can just type into the desktop.
The problem that I am having is that I click the button to read the text file and display it, and a browser window opens. I don't want to have a browser open since it is already on my active desktop. Any way to fix this?
Here is my code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim read As String
Dim sr As New StreamReader("C:\test\test.txt")
TextBox1.Text = sr.ReadToEnd
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim Write As String
Dim sw As New StreamWriter("C:\test\test.txt", False)
Write = Trim(TextBox1.Text)