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...
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 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...
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 =...
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...
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 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
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...
I need to be able (in a simple way) to read the entire contents of a table from one database into a dataset.table then take that dataset.table and stick it into a completely different database. Without knowing the fieldnames and such, so using CREATE and ALTER are out.
I have tried building a...
I need some help to get moving in the right direction. I have a form with a combobox and and datagrid on it. The user selects a vendor type out of the combo box and then the datagrid is filled with vendors of that type from a filter dataview. The datagrid has tablestyles in use to hide the...
The error I get is this --
Logon failure: unknown user name or bad password.
What I am attempting to do is build a list of files from the server into a listbox on a webform. I can do this all day long if I point to my computer, however when I try it on a server path I get that error above.
I...
I have done a lot of searching on this site and Microsoft...is there no way to use the app.config with dynamic properties and be able to set them in the application runtime rather than having to manually change the .config file outside of the application? I have seen many many examples of how to...
1) Is it possible to work with the report without using the viewer? I would like to use a CR with one of my applications but I don't want to have the user interface with the CRviewer, just press a button on a form and report prints.
2) I have been stumped as to what I need to include in the...
I am looking for the .NET version of the VB6 App.Path. Used the upgrade wizard on a VB6 project with this code in there and it returned VB6.GetPath as the new code.
There has to be a .NET version of this code.
Charles
Quality Assurance/Developer
I am building a program that provides an interface for editing CNC program files here at the shop. I thought it might be nice to point out certain machine codes in different colors for ease of coding. I wrote some test code to do this and though it works, I find myself wondering if there is a...
I was curious as to whether there is any difference between:
Me.dsMaster.Tables(0)
Me.dsMaster.Tables("myTable")
Me.dsMaster.myTable
In most examples I see the second two types.
If there is truly 3 ways to refer to a single table in a dataset, what is 'good coding'?
Charles
Quality...
I can find all types of awesome examples for databinding. But I just want to take a single distinct value from my dataset and put it into a textbox with no databinding.
Something like this:
me.textbox.text = myreturned_value_from_a_dataset
I have 3 books on .NET and even one that is only for...
First: Is there any fancy .NET version of Environ("username")? That works, but I was just wondering if there is a special .NET version.
Second: Is there any way I can get the username in ASP.NET? I can put Environ("username") in code but all it returns ASPNET. For our Intranet logging...
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.