visual-studio-2010

Change doctype in ASP.NET

本小妞迷上赌 提交于 2020-01-03 17:29:08
问题 I have tried to change the doctype from XHTML 1.0 to HTML5 doctype, by changing the doctype line in Site.Master.cs . However after the change HTML5 tags is still not recognized in Visual Studio 2010. Is there something more that I have to do to make it work? 回答1: Right click on the tool bar at the top and enable the 'HTML Source Editing' tool bar. You should then be able to select the target schema for validation from the drop down. NOTE : Ensure you are viewing the aspx page, the drop down

Register DLL in GAC without Assembly Manifest

青春壹個敷衍的年華 提交于 2020-01-03 17:20:06
问题 I have a DLL I wish to register with my GAC. I enter the command: gacutil /i c:\temp\msvcr100.dll and I get the error: Failure adding assembly to the cache: The module was expected to contain an as sembly manifest. All I have is the DLL. Is there a way to create / fake / bypass it? For those interested, I am attempting to extract the Visual Studio 2010 & .NET 4.0 CTP from the VHD and run it on my physical box. As a side note, has this been attempted? 回答1: Is this actually a GAC-able DLL? It

AWS Toolkit for .NET won't open in Visual Studio

半腔热情 提交于 2020-01-03 17:12:44
问题 I downloaded the AWS Tookkit for .NET a couple weeks ago and it was working fine. http://aws.amazon.com/visualstudio/ For the last couple of days, I have not been able to open it in either Visual Studio 2010 or Visual Studio 2012. I have already uninstalled it, rebooted, and re-installed (multiple times) I can choose it from the View menu, but when I select it, nothing happens. I'm just looking for some direction to see what I can do to resolve this. 回答1: I figured it out. I had to uninstall

Deleting a row completely from a dataset

笑着哭i 提交于 2020-01-03 16:52:22
问题 I have a remove button on my gridview. On Clicking the remove button , the row should be completely removed from the session. I am currently doing the following : protected void gvMainLog_RowCommand(Object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Remove") { GridViewRow rowSelect = (GridViewRow)(((Button)e.CommandSource).NamingContainer); int rowindex = rowSelect.RowIndex; DataSet ds = ((DataSet)Session["old"]); ds.Tables[0].Rows[rowindex].Delete(); Session["old"] = ds;

Deleting a row completely from a dataset

吃可爱长大的小学妹 提交于 2020-01-03 16:52:07
问题 I have a remove button on my gridview. On Clicking the remove button , the row should be completely removed from the session. I am currently doing the following : protected void gvMainLog_RowCommand(Object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Remove") { GridViewRow rowSelect = (GridViewRow)(((Button)e.CommandSource).NamingContainer); int rowindex = rowSelect.RowIndex; DataSet ds = ((DataSet)Session["old"]); ds.Tables[0].Rows[rowindex].Delete(); Session["old"] = ds;

Extension method must be defined in a non-generic static class

一世执手 提交于 2020-01-03 16:15:08
问题 I have written the following code to find out the missing sequence but i am getting the error as i mentioned this is my code public partial class Missing : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { List<int> daysOfMonth = new List<int>() { 6, 2, 4, 1, 9, 7, 3, 10, 15, 19, 11, 18, 13, 22, 24, 20, 27, 31, 25, 28 }; Response.Write("List of days:"); foreach (var num in daysOfMonth) { Response.Write(num); } Response.Write("\n\nMissing days are: "); // Calling the

Extension method must be defined in a non-generic static class

爷,独闯天下 提交于 2020-01-03 16:14:29
问题 I have written the following code to find out the missing sequence but i am getting the error as i mentioned this is my code public partial class Missing : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { List<int> daysOfMonth = new List<int>() { 6, 2, 4, 1, 9, 7, 3, 10, 15, 19, 11, 18, 13, 22, 24, 20, 27, 31, 25, 28 }; Response.Write("List of days:"); foreach (var num in daysOfMonth) { Response.Write(num); } Response.Write("\n\nMissing days are: "); // Calling the

How to connect to a remote Oracle database

邮差的信 提交于 2020-01-03 15:56:14
问题 I have to connect to a remote Oracle DBMS into my .NET C# web service Is request the client Oracle installation? Why? When you have to use ODP.NET Thanks 回答1: I recommend using ODP.NET, as it's free and is the "official" ADO.NET compatible provider for connecting to Oracle. 1 To spare your users from having to separately install the Oracle Client, download the Oracle Instant Client, take the following files from there... oci.dll Oracle.DataAccess.dll (the managed ODP.NET assembly itself)

Setup boost and use with Visual Studio 2010 Express

↘锁芯ラ 提交于 2020-01-03 15:38:20
问题 I know that similar questions you can find in web and, particularly in stackoverflow but I still need to write this question because i could no find any page where there is a step by step tutorial how to setup boost library and integrate it with visual studio 2010 express. Even here: How to use Boost in Visual Studio 2010 there are steps (e.g. 3, 4) that I can't find the menus or so... So please help me to be able to use boost with visual studio 2010 express on Win7. 回答1: I meet some linking

MSBuild doesn't find async required references

冷暖自知 提交于 2020-01-03 12:21:28
问题 We have Visual Studio 2010 SP1 and Async CTP (SP1 refresh) installed. A solution with projects that use async/await keywords builds OK when build from VS IDE. Also when built with devenv /build "Debug" solution.sln everything is OK. However msbuild @commands.rsp solution.sln reports: File.xaml.cs(123): error CS1993: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly? commands.rsp looks like this: /nologo