I have recently moved from XP Pro VS2008 to Win7 Ultimate VS2010 and all the sudden I am unable to debug code and I can't write log files (ex: c:\mylog.txt) anymore. What am I missing here? I am using the same code that used to work.
My biggest issue is my inablility to debug. I was writting a...
Ok got it
1) create a server side click event for a button
2) create a process object
3) run process
4) wait for process to complete
5) query database for process results
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
You may want to look up information on session variables but here is how I would try to do it.
On some event, either a click event or a page load, declare a session level variable:
Session("variableName") = txtTextBox.text
Then on other pages you can call that session variable by name...
I need some ideas on how to accomplish this task that I have taken on. I need a way to run a vb.net application on a local pc from an internal webpage and then return the results of that locally ran application to the very same webpage it was launched from. If that is unclear maybe this...
I have a DataGridView on a form that I would like to change size when I resize the form. Hope this is something simple - just a property of this control I am missing? :o
Using Visual Studio 2005
Thanks in advance
I am new to making console applications so please forgive me if this is an easy one. I have a need for an application that runs off a bootable USB flash drive. All the application has to do is present some menu options and then start another application based on those options. I was able to...
Have you ever looked into a sysinternals application called psexec. I have authored a few vb.net apps that execute remotely. All I have done in the past is create a sort of admin console for myself then have that console leverage psexec to send the necessary files and execute them.
Thanks again hauprta. Now I am really confused. I finally have the data elements that I want, now why is my search only returning 1000 rows? A different 1000 rows each time I run my app. Is there a size limit I have to set?
Unfortunately I do not have the ability to run any utility on the domain controller. This is what I am running to list my user accounts.
Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://domainController1/OU=User_Accounts,OU=Group3,OU=Group2,OU=Group1,DC=Mydomain")...
I am looking for a way to do something in .Net 2003 that I was able to do in vbscript. I need to be able to list AD groups and users. This was fairly simple in vbscript but I am having difficulty doing this in .Net.
In vbscript for groups:
colgroups = GetObject(WinNT://mydomain,domain")...
Nevermind, I tried it a bit of a different way.
Dim nf As New frmNotFound
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
I have a windows project with two forms in it. On form1 one I have a linkbutton to be able to open form2. When form2 is opened I want to hide form1 and then show form2. On form2 there are some text boxes asking for information and a submit button. When the submit button is clicked I do some...
How do I execute a batch file in ASP.NET 2.0? When I debug this code in the compiler (VWD 2005) all is well.
system.diagnostics.process.start("\\server\share\file.bat") When I move the page up to my webserver nothing happens. Its like that line of code does not exist. What gives?
I have a webform with three GridViews on it. The first GridView populates a summary of information at the Form_Load event. I have set this gridview to be selectable. When an item is selected off this gridview I need it to pass two different values - one to each of the subsequent...
I am struggling to figure out how to create an event handler for RowUpdating. I am using Visual Web Developer Express 2005 .NET 2.0.
I can't use the wizard because my GridView displays a custom query that joins several database tables. From what I am finding online I need to build a sub routine...
Thanks John, I will try that out!
This is what I started playing around with...
Dim gogo As Boolean = False
Dim op As String
If Directory.Exists("\\" & compname & "\c$\windows\system32") Then
op = "xp"
op = "2k"
John, using what you had suggested, this is what I tried.
dim s as string
dim pass as boolean
dim arr as array = System.ServiceProcess.ServiceController.GetServices()
Dim i as integer = 0
do until i = arr.length
if s = "Service Name" then
pass = true