Improving urls
Currently I have links in the form (displaying product information):
http://localhost:XXXX/Products/?page=1
I want to clean this up into the form:
http://localhost:XXXX/Products/Page1
I think I need to do this with routes.MapRoute, something like so:
routes.MapRoute(null, "/Products/Page{page}", new {controller = "P...
I tried to set up glew and then devIL/openIL in visual studio but still have runtime and link error .
I want to know it can be from openGL version of my visual studio or what?
what should i do for upgrading my openGL?
Thanks.
...
Hi,
I have a page, which contains a table, with a couple of rows, and in that row there are checkboxes.
Now the thing I want, is to loop trough all checkboxes to see if they are checked or not.
This is my current approach:
foreach (Control c in Page.Controls)
{
if(c is Checkbox){
}
}
Now the problem is that I receive only 2...
So i've been searching this for quite a while now, to no avail! Has anyone figured out how to change the $(WindowsSdkDir) macro in visual studio 2010, to make it point to whatever version of the windows sdk they would like?
Hopefully this can be a reference to all those who will search for this after me. :)
...
Is it possible in Visual Studio 2010 to break on anything (a method for example) that changes an object's property?
Or is it possible to find out if object properties changed in an ASP.NET Webforms application?
...
Hi,
I have a ReorderList from the Ajax Control Toolkit on an aspx page. What I want to do is to enable a button after the order of the items have been changed.
I already have the javascript function in my page in a script block, but how can I tell the ReorderList to call the javascript after order has been changed?
Thanks in advance!
...
I want to display trace info into Text Output tab in NUnit GUI (ver. 2.5.7, target runtime 4.0):
Trace.Listeners.Add(new ConsoleTraceListener());
Trace.WriteLine("Hello NUnit");
This works fine when I launch NUnit GUI from Visual Studio (2010) via Debug -> Start external application.
But when from .nunit project file and console runn...
I am linking my application to a 3rd party library. Now I have found a bug within this module and I can even reproduce it in the application. To make an example for the developers of this module I am now doing a unit test but the error does not show up.
Then I discovered Tracepoints in Visual Studio. Is there a way to trace all calls go...
I can add the statement using System.Configuration; to my code using intellisense, but I can't get any intellisense when I access the type ConfigurationManager.
Why does intellisense work when entering the using directive, but doesn't work when specifying a type from that namespace?
using System.Configuration;
namespace TestDBMSConnec...
Hey...
I wanted to build my client program in release mode and everything seemed to work fine.
The client was able to send data, which have been received by the server.
But the client never receives the answer sent by the server.
The server is working correctly
The data size is only up to 200 bytes
sending works...
I am using Visual S...
Hi,
I am using Visual Web Developer 2010 express. I have created a WCF service in the website. The application is running fine in IDE. But I want to publish the code to IIS.
I tried the Publish option, but in VWD express edition Publish option is not there. So I want to manually copy the compiled code to IIS. But I couldn't find the c...
Greetings!
I have classes like these:
class TestClass1 { ... }
class TestClass1Array: IEnumerable<TestClass1>
{
//some properties plus full IEnumerable support
}
class TestClass2
{
public TestClass1Array Test {get ... set ...}
...
}
class TestClass2Array: IEnumerable<TestClass2> { ... }
is it possible to bind them to 2 listboxe...
This is, probably, a very simple answer for someone. I have a method with an Optional Parameter like so;
public static Email From(string emailAddress, string name = "")
{
var email = new Email();
email.Message.From = new MailAddress(emailAddress, name);
return email;
}
Now, I must target .Net 3.5 and i...
Hello!
I have question: How to switch off highlight keyword "event" in Visual C++ 2010? I don't use .net , so for me it isn't keyword, and I would call it one variable "event".
...
This is for a coded UI test in Visual Studio 2010. The MSDN documentation for the HtmlEdit.Password property says the following:
"Gets the encoded content of this edit control."
It unfortunately doesn't say HOW the password is encoded. I'd like to run some data driven UI tests, but it appears that all of the passwords would need to be...
This has to be simple, at least it was in good old .Net where it took maybe four lines of code. I'm working in VS2010, C#, WPF4.
I have a user control with a textbox. When I click a button in the main window, I want my user control textbox to reflect some text. Is this possible in WPF4 with less than 500 lines of esoteric code?
The ...
Hi!
I want to have an ObjectQuery that returns tracked entities (not static data), but I don't want it to load all the columns, I want some columns to load as null, I don't want to use select, since this will return an IEnumerable of the values, not tracked objects.
Is there a way to do it?
If yes, how do I then complete reloading tho...
Recently upgraded to Windows 7 Enterprise 64 bit and Visual Studio 2010. In previous versions, we set up an alias to SQL Express 2008 to use localhost instead of .\SQLEXPRESS, so that our config files don't need to change when checking into TFS before being deployed to staging or wherever. After the upgrade, I can connect to SQL Expres...
During my trial of ReSharper 5, I noticed its version of IntelliSense falls behind Visual Studio 2010's in three ways that were key to me:
ReSharper doesn't support IntelliSense in the "QuickWatch..." debugger utility.
ReSharper's IntelliSense seems to break down for me in .aspx files between the <%= %> tags.
I couldn't find a way to g...
In c# default behaviour of embedded resorce name is like this
<default namespace.><extended namespace.><filename>
Without changing the defaultname space of project can i control the name of embedded resource?
...