Is there a way to get the same result as the WebForms HttpContext.User.Identity.Name.ToString() to get the username in MVC?
I tried this in my controller and it just comes back blank. The purpose is common across our intranet, when a record is created or update the user name and date is...
Bluejay07,
You could build custom "disabled" images and replace the enabled images with the disabled ones when you run your routine to disable your buttons. That would get around this annoying issue and add flair to your application since you would get to use the image resolutions of your...
ErnstJan,
Didn't work, this is a console application. What I tried is this
Imports System.Windows
Windows.Forms.SendKeys.SendWait(Windows.Forms.Keys.MediaPlayPause)
No luck. However, since the program is specifically for me (and maybe some of the other IT department), I exclusively use iTunes...
How can I Play/Pause the same way my Logitech keyboard media button "play/pause" does? I need this for an application. And not the my.computer.audio or the mci junk, that is for .wav. I need to pause whatever device might be actively playing music or movies just like the keyboard button does...
I dreaded writing that question because I figured that if I did the answer would be simple or I would find the answer myself within a few minutes of submitting it.
I did...one can simply insert a class file and then delete all the code and declare it a module. Wonder why they didn't just leave...
I am finally moving from VS2003 to VS2008. One of the things that I have noticed in this version is that there are no module files. Modules were my primary way of declaring global variables and shared functions that pages within my applications would be using.
Is there another way to do this? I...
I am being plagued by some old Excel Applications here recently. The Active X buttons that I have placed on various sheets are moving when users print. My favorite is when all the buttons decide to stack up on top of each other and then the application is unusable until I go back and manually...
Thank you Jim, I spent hours looking for an example in VB of how to get that output and never found anything concrete. That worked perfectly.
Thank you again!!
Charles
Quality Assurance/Developer
I am trying to get output of my Stored Procedure. When I check the stored procedure in SQL it returns 8, but I get 0 in my VB.NET function. Confused...
my stored procedure
CREATE PROCEDURE spCofC_GetRecordCount
(
@JobNum int,
@TotalCount int OUTPUT
)
AS
DECLARE @Count1 int
SELECT @Count1 =...
How would you impersonate a user, not just for a page, but across our entire intranet which contains many many applications...I can't go back and manipulate web.config files in all those applications.
Charles
Quality Assurance/Developer
Our intranet uses Windows Authentication so there is no logging in because they are already authenticated...however there are instances where users (or IT) are on other users computers to show or do something on the intranet temporarly. So my question...is there a way to force a new...
1) As if they browsed to it on the server (or mapped drive) and double clicked it. Should open with whatever application is associated with that extension.
Charles
Quality Assurance/Developer
Is it possible to open any file (as long as application is installed of course) outside of the browser with ASP code?
This code opens files inside the browser.
Me.Response.Redirect("file:///" & "TestFile.doc")
I am not looking for Word only code, but windows file association file opening...
I understand that...I should have clarified that I have seen "Return" used as an "Exit Sub", specifically by Wei-Meng Lee in some articles on www.ondotnet.com
Charles
Quality Assurance/Developer
I was wondering if there was any difference at all in the following statements:
If <something> = True Then Return
or
If <something> = True Then Exit Sub
Charles
Quality Assurance/Developer
Hi Amber,
I had this happen to me last week with an application I developed back in January but hadn't distributed. I opened it up after months of just sitting there and suddenly had what you described happen. I simply renamed (in the solution explorer) my report from crOneSheet.rpt to...
TRUNCATE doesn't work in Access. So the only way to delete all records from a table other than one by one is the SQL command "DELETE FROM [TableName] WHERE 1=1". Thanks to ThatRickGuy for pointing me in the right direction on this one a month or so back.
Charles
Quality Assurance/Developer
How would I go about passing a dataset that is coded (so not available in the designer to the details section of my crystal report?
I have already set up some of the Report and Page Header information with the following code. (using parameter fields)
Dim cr1 As New crOneJob...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.