Try this: http://www.kamalpatel.net/ConvertCSharp2VB.aspx[^] It was the first result in a Google[^] search :) --- Dave
Dave Wengier
Posts
-
VB to C# -
Inter-application communicationBill Dean wrote: If these pieces of functionality are really this closely linked, are you sure they belong in two seperate applications? Having two applications simply saves code updates. If I change the login form logic, I only need to do it in my login application. The applications that use it, get passed the User ID as normal, they need not care how that person was authenticated. Bill Dean wrote: web.config is for application level config settings. It's not an appropriate place for user specific items They arent user specific items, all users see the same thing, I just want to be able to easily change what that "thing" is. --- Dave
-
Inter-application communicationYes, that could work too... It just seems a bit wierd expecting the browser to carry my configuration info across the request. Actually Session would be okay I suppose, since the use gets a Session cookie anyway, but I think that a session is probably not valid across applications. --- Dave
-
Can't LogoutWhenever I click "Sign out", i'm still signed in. Its not that I want to leave, I just worked out the password on my other account so I want to use that one instead... --- Dave
-
ASP.NET Forms Authentication on subdirsAssuming your subdirectories are seperate applications, the following should work: * Remove the
authentication
tag from the sub-directories' web.config. * Make sure theLoginUrl
attribute of theauthentication
tag in the main web.config references a full path, not relative ("/signon.aspx" for example) * Add the following tag to the main web.config:<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
--- Dave
-
Inter-application communicationI'm using single-sign on across multiple web apps, with Forms Authentication, and its all working very nicely. It has allowed me to make some little web apps that do not-much (update address details and such) and link to them from my bigger web apps, and not worry about anything else. It really is all roses.... BUT.... I would like to customize the look of the little web app slightly, depending on who is calling it. I can do this through the QueryString, but its kinda ugly. Is there any other way to do it? Obviously Application is out, since they are seperate apps. Session is a possibility, but i'd like to avoid it if necessary. What i'd love is if I could programmatically write and read to the master "web.config" in the wwwroot, but this is not possible. any ideas would be much appreciated --- Dave
-
For cat loversLove it!! Maybe we can start the Infinite Programmer Project --- Dave
-
Apple's 15 security patchs...Paul Watson wrote: Never Did While Growing Up So It's Hard To Change things Exactly why these passengers were screaming, they were way too young to remember when you didnt have to wear seatbelts in Australia. I dont even know when that was! --- Dave
-
Ok, that was wierdWorked for me earlier today in the ASP.NET forum too.... Trying it here: http://www.google.com/[^] Yep, works here too :confused: --- Dave
-
Apple's 15 security patchs...It probably does.. 6.4lt V8 or something... they were screaming at any speed though. Not wearing a seatbelt is very disconcerting --- Dave
-
Apple's 15 security patchs...The one time I ever drove a Rolls Royce, all you could hear was the sound of the back seat passengers screaming because they didnt have any seatbelts! Though this was a '64, and not exactly mint condition :) --- Dave
-
Inter-application communication? Or something??I have an application running that uses Forms Authentication, and its login page is in another application (standard log in page used for single-sign-on amongst a few different web apps). What i'd love to do is to have some way to specify what should be in this login page, depending on which application redirected to it. Obviously Session or Cookie variables would work, but with Forms Authentication, the redirection happens before any of my code gets executed (there isnt even a Referrer I can read and do something cool with). Any advice would be appreciated.
-
Math's holy grail could bring disaster for internetjdunlap wrote: Will it really bring e-commerce to its knees if they discover the answer? From my (limited) understanding, it would make prime numbers easy to calculate. Most encryption at the moment seems to rely on the fact that at the moment, it takes many many many many (many) years to calculate the correct prime numbers, thereby making the attempt futile. (Arguably encryption based on futility was a bad idea to begin with, but I couldn't have come up with anything better so i'll shutup :)) Hopefully quantum encryption[^] will be a reality before long too, so perhaps the discoveries will coincide and we will all be safe. --- Dave
-
Can't close modal dialogIf I remember correctly (and its been a while) modal dialogs are not allowed to post anywhere. You need to put an IFRAME in your dialog, that then loads the form you wish to use. Check out your code in a debugger, I have a feeling your btnCancel_Click event wont even be firing. --- Dave