I'm working on a piece of a web application in ASP.Net MVC where the user registers for membership using an sql membership provider. When they register they are put in the system but not approved. The code then sends an approval email to the user with the email given.
BfEncrypt refid = new BfEncrypt();
refid.Encrypt(user.ReferenceID);...
Does anyone know how to bind extra mouse buttons to commands in visual studio 2008? There used to be a "powertoy" that let you do it for visual studio 2003, but I can't find an equivalent for 2008.
...
I have a SQL file added to my VS.NET 2008 project as an embedded resource. Whenever I use the following code to read the file's content, the string returned always starts with three junk characters and then the text I expect. I assume this has something to do with the Encoding.Default I am using, but that is just a guess. Why does this t...
Hello,
Let's get the duplication allegation out of the way.
I saw couple of variations of this question, notably, link. However, it doesn't address issue specific to C# developers. I want to collect a list most used/powerful/cool tricks--tips in VS from people who are using C# under visual studio 2005 (it's ok to mention for 2008 as w...
I'm busy with a small, simple add-in, but the process seems massively complicated and badly documented. Right now, the only event that fires in the add-in is OnConnection. The other two I'm trying to handle just don't seem to exist.
private DTE2 applicationObject;
private SolutionEvents solutionEvents;
public void OnConnecti...
Hello,
I want to check that all my memory was freed ok in Visual Studio 2008 in C++. I heard that I can add few includes and maybe write some code line and that should do it.
Does anyone know how I can do it?
Thanks in advance,
Greg
...
When I create a test using MS Visual Studio's builtin unit test wizard it creates code with lines like the below:
double number = 0F;
In C# "F" stands for float, case-independent, and "D" for double. Using "F" suffix instead of "D" leads to precision lost.
If it's a bug, where can I report it to Microsoft?
...
This seems like a common case, but for whatever reason, I am stymied by EF's weak editor.
I have two tables, like so:
Table1
(
Column1 int, PK
Column2 int, PK
)
Table2
(
Column1 int, PK, FK
Column2 int, PK, FK
Column3 int, PK
)
Now, the database (out of our control) does not have foreign key constraints. In this example, Table2 is s...
I used previously StyleCop + FxCop on my Visual Studio's projects. But now I am testing Visual Studio Code Analysis tool, which is easier to integrate into MSBuild, and I have found that this tools analyses some of the rules of both FxCop and StyleCop.
Is this tool a full replacement for both FxCop and StyleCop or it just implements som...
I'm using Visual Studio C++ 2008 Express to learn a native API for a new project. What I'm wondering is: what productivity features present in the full version that you take for granted are missing from Visual Studio Express? I'm not referring to large "paid" features like MFC support - I'm thinking of small features (sometimes provided...
Hi,
I have written a CLR proc in VS2008 and deployed to SQL 2005 DB.
I have set mode to debug and made sure my .sql script is set to run my proc.
Have deployed with permission level to External and set db to be trustworthy on.
But when I run the breakpoint is not hit and nothing seems to be happening.
What am I missing please???
Ma...
[TestMethod]
[ExpectedException(typeof(FormatException))]
public void PassGodammit()
{
throw new FormatException();
}
?? driving me mad.
...
Without:
MFC
ATL
Question:
What are the steps involved, to use IGlobalInterfaceTable, when passing a particular interface pointer to several threads using CreateThread?
...
Hi
When I'm adding an image to a .resx resources file in Visual Studio 2008 (C# project), VS always decides to add the file itself to the solution (in a Resources folder) and set its Persistence property to "Linked at compile time".
The behaviour I want is for the source image file contents to be added to the .resx file, the Persistenc...
I am trying to find the set difference of two vectors, so i do something like this:
std::vector<sha1_hash> first_vec, second_vec, difference_vec;
// populate first_vec and second_vec ...
std::sort(first_vec.begin(),first_vec.end());
std::sort(second_vec.begin(),second_vec.end());
std::set_difference(first_vec.begin(),first_vec.end(),...
Hi,
I get a transactionabortedexception when I run a CLR proc in debug mode
and no line number information or anything to help with
where the exception is.
I am running VS2008 and SQL 2005.
how do you debug it?
Malcolm
...
I am creating a sample C# project to demonstrate some patterns. Along with the project, I'd like to include a "Readme.mht" which contains an overview of the sample, some diagrams, and instructions for how to test it.
When the project is opened in Visual Studio, I would like this file to appear.
By default, MHT files currently appear ...
When I open *.ashx files in Visual Studio, I don't have the helpful "Go to Declaration" context menu when right-clicking on a function.
How can I restore this functionality (this is a new install)?
Thanks very much.
...
Hi there.
I have a DGV in VB.Net 2008 connected to an Access DB table. The DGV is not Read Only, but is full of read-only columns except for one, which contains a combo box. The combo box allows the user to select an outcome for that particular row, and then the program copies in a pre calculated value into the "Profit" column depending...
This seems like it should be a simple thing to do, but I can't figure it out.
I have a localized resource that I'm using in two places - one as a col. header in a datagrid, and then as a descriptor beside a field when the user edits a row.
The text of the label looks like:
Text="<%$Resources:Global,keyName%>"
However, I'd like to ad...