I considered using forms authentication. However, I decided against. First, it uses cookies to store the token. I didn't like that idea. Plus, I wanted the login page to redirect back to the...
You are correct dynamic controls have to be rebuilt on every page load in order to handle event or to get user input from them. PreLoad() is the recommended location to do this. However, I...
I'm trying to write some code to create a user in active directory and expire the default password so that they have to change their password the first time they log in. I tried nearly everything. ...
Creating a folder under /ProgramData that has the same name as the executable and creating the output files there does work. However, we want to keep everything in the same location. So this isn't...
It would be nice if impersonating was as easy as it is in ASP.NET. However, I'd rather not require that the program be run as administrator or even have to program automatically impersonate...
I changed it to write to C:\Custom Programs\Logs. It worked when I ran it. However, when someone else tries to use it it doesn't work. I suspect that it has something to my being an owner of the...
It writes to the same folder it was executed from. In this case, c:\Custom Programs. I've never used /ProgramData before. Am I supposed to create a subfolder in it that has the same name as the...
We recently upgraded our job server to Windows Server 2008. We have jobs we run manually in a folder (c:\Custom Programs\). Some programs are console programs others are have a gui. This one...
I have a page with two GridViews using an object data source. Basically, it's a drill-down report. You select something in the first grid and it shows related data in the second grid.
I tried handling the VisibleChanged event and calling Close() is Visible = false. However, it never got called when the splash screen went away. It must be doing something other than calling Hide()...
A loop creates a level of scope. I'm guessing internally VB.NET moves all the declarations before the loop. They would of course go out of scope when the loop is done. They'll be destroyed...
I agree. Your post is a little confusing. The code you are showing is loading data. Unless when you say save you are talking about putting the value from the database into the text box.
I also created a new project with absolutely no code in it and it doesn't close as I previously described. Did you set the shutdown mode to 'When Last Form Closes' like mine?
I added an splash screen to my app. Then in the project settings I selected it to be used for the splash screen. Now my app won't close when I try to exit my app.
Wow, that's wierd. In the last custom control I did I had to have a dummy control because ASP.NET would add an ID attribute to the first control I rendered even if I already set the id of the...
Oh, this is custom control. Is it a user control or a server control? If it's a user control then the design is the same as a web page. Make sure the attribute for the event is set correctly and...