web-site-project

How do I include thead in a runat=“server” table element?

蓝咒 提交于 2019-12-03 04:52:38
I'm upgrading a big web site project from Visual Studio 2010 to 2012. Throughout my project, I have table elements with the runat="server" attribute. Many of these have thead elements inside of them. When I open it in 2012 and and try to build, I get the following error: Value of type 'System.Web.UI.HtmlControls.HtmlGenericControl' cannot be converted to 'System.Web.UI.HtmlControls.HtmlTableRow' Removing the runat="server" attribute or commenting out thead fixes it. Commenting out only the tr element inside of thead does not fix it. Here is a simplified example that reproduces the problem: <%@

Migrating Wordpress site to new domain

别等时光非礼了梦想. 提交于 2019-12-02 12:46:12
I have a Wordpress site with hostagator web hosting , I am buying new domain and want to use new domain for site but same existing developed site. How to backup existing site and then restore to new domain ? There are a lot of ways of doing that. You can search a lot of materials on Internet but I would advise you to use this tool because I used in the past and it's reliable and very straightforward. It is called Duplicator and is a wordpress plugin solution: https://wordpress.org/plugins/duplicator / Consider to maintain your site active until your new site is working properly. I hope I could

Why do I need a recompiled page when a method used by it changes?

空扰寡人 提交于 2019-12-02 11:38:37
I have an aspx page that used a method in a class in the App Code folder, doSomething(int[] x) . I changed the function definition to use an IEnumerable instead of an array: doSomething(IEnumerable<int> x) . Next, I precompiled the web site, using "allow web site to be updatable", and published the new App_Code.dll. Now, the precompiled version of the page gives a Server error at runtime: "Method not found". If I also publish the DLL generated for the page, "App_Web_[page].aspx.[random].dll", it works. So it appears the signature of the function is embedded in the compiled page somehow…? Why

ASP.NET Website's BIN directory and references

不羁岁月 提交于 2019-12-01 22:02:09
Imagine the following solution: Website ABC.com (not Web Application) BLL (business logic layer in a seperate assembly) DTO (dto objects in their own assembly) DAL (data access layer in it's own assembly as well). The BLL has a reference to the DAL. The BLL has a reference to the DTO layer. The Website project references the BLL. When one compiles the website project, the following DLLs will appear in the BIN directory: BLL.dll DTO.dll DAL.dll When one goes to preview the site, an error occurs about not having the necessary assembly references... Now if one right clicks on the website project,

How to use NuGet packages with an ASP.NET Website on CI Server

荒凉一梦 提交于 2019-12-01 04:42:42
I have a number of ASP.NET Web Form Websites (the one with no .csproj file), and I am trying to figure out how to best use NuGet packages with them. When using Visual Studio 2015, adding NuGet packages via the UI works correctly (there is a packages.config in the site root), and the build drops the binaries in the bin folder. The problem is trying to build the project on TeamCity via MSBuild. For other projects, I can use NuGet.exe with the restore command (either against the csproj or the sln file), and the packages are correctly downloaded and included in the output. However, this doesn't

How to use NuGet packages with an ASP.NET Website on CI Server

て烟熏妆下的殇ゞ 提交于 2019-12-01 02:17:56
问题 I have a number of ASP.NET Web Form Websites (the one with no .csproj file), and I am trying to figure out how to best use NuGet packages with them. When using Visual Studio 2015, adding NuGet packages via the UI works correctly (there is a packages.config in the site root), and the build drops the binaries in the bin folder. The problem is trying to build the project on TeamCity via MSBuild. For other projects, I can use NuGet.exe with the restore command (either against the csproj or the

Setting app a separate Web API project and ASP.NET app

佐手、 提交于 2019-11-30 10:21:48
I am trying to consume a Web API service from another ASP.NET classic project (actually it is a native JS and Html Web application). How can I configure these these two separated projects to talk with each other, on VS2012? The final result would be: http://localhost:8080/api/products will return a list of products (JSON) by routing to ProductsController located on the WebAPI project, And http://localhost:8080/index.html will be routed to this page on the Second project - The native HTML/JS project. How can I configure the logical to physical Directories in these two project? Thanks! As it

Visual Studio regularly freezes running Microsoft.VisualStudio.Web.Host.exe

无人久伴 提交于 2019-11-30 04:52:53
Background I maintain several web sites that are Visual Studio "Web Site Projects". Problem I've found that with a couple of these projects, Visual Studio regularly freezes while I'm working on the code. This doesn't happen for some of the web site projects, and I haven't seen it happen on any Web Application projects. Symptoms Each time it freezes, it takes about half a minute before I can use it again. During a freeze, Windows Task Manager reports that Microsoft.VisualStudio.Web.Host.exe is maxing out one of the CPU cores. Steps to Reproduce Open a .cs file under the App_Code directory. Make

send data on button click from javascript to database

喜夏-厌秋 提交于 2019-11-29 16:55:50
So I have a php page that gets data from database and displays a table. Each td symbolises a seat in a movie theater. What i want to do is when a user clicks on one or more tds, and clicks send, the status column for each td in the database changes to 1 from 0(default). When the database is accessed next time, the td's with status=1 have a different color. My code upto now is: <div id="screen">SCREEN</div> <div id="Seatings"> <?php echo "<table border='1'> <tr> <th>Seating</th> </tr>"; $count=0; echo "<tr>"; echo"<td id='Seat_rn'>A</td>"; while($row = mysql_fetch_array($sql)) { if($count<10){

Setting app a separate Web API project and ASP.NET app

泄露秘密 提交于 2019-11-29 15:38:29
问题 I am trying to consume a Web API service from another ASP.NET classic project (actually it is a native JS and Html Web application). How can I configure these these two separated projects to talk with each other, on VS2012? The final result would be: http://localhost:8080/api/products will return a list of products (JSON) by routing to ProductsController located on the WebAPI project, And http://localhost:8080/index.html will be routed to this page on the Second project - The native HTML/JS