Questions tagged as 'asp.net'

2
answers

How to change the class of depending on its value in C # MVC

I have this form that gives me two data "active and deactivated, how to make them change depending on, with the class class"label label-success y label-danger' <tbody> @foreach (var item in Model) { <tr>...
asked by 27.09.2018 / 18:28
1
answer

Cast error int ActionResult

I'm using VS 2017 for a tutorial but I get the error: You can not implicitly convert the long type to System.Web.MVC.ActionResult How do you fix that? The controller public class DefaultController : Controller { private TablaDato ta...
asked by 08.09.2018 / 05:31
1
answer

I want to display a modal window after the user logs in ASP.NET

When the credentials are correct I have no problem and show the modal window. but if the credentials are incorrect, it also appears. I am handling it with an Onclick event of the login button, and to know if there is an authentication I use Requ...
asked by 11.09.2018 / 02:51
1
answer

error 500.19 IIS 7.5

I have a development developed in .net mvc 5 with framework 4.6.1, I'm doing a local server IIS 7.5 windows 7 to work in a local network, and configure it and when I add my files to deploy my application in .net I get error 500.19, but when I ad...
asked by 23.08.2018 / 00:53
4
answers

Save a txt in my solution

Hello, I hope you can help me. I have this code using(StreamWriter escritor = new StreamWriter(@"C:\Prueba.txt")) { escritor.WriteLine("Hola"); } The problem is that when I upload it to my host it does not save the file by the route...
asked by 03.08.2018 / 17:56
0
answers

Report SSRS takes time to generate

I am generating SSRS reports in a ReportViewer in ASP.NET with VB.NET, I have not been able to solve that the first time the report is generated takes too much time. How is that delay solved? I add Code as a charge to the ReportViewer Report:...
asked by 17.08.2018 / 22:14
0
answers

Schema for my website (it's not wordpress)

I want to implement Schema org Games on my website, to improve my position in google (SEO) and add those famous "little yellow stars". But I can not quite understand where I should place the Schema TAGs. For example, a Schema that I found cou...
asked by 07.07.2018 / 17:16
0
answers

Fit text in PDF format with iTextSharp: ASP.NET and C #

I have the following pdf that I generate with iTextSharp    What I want is to pass the totals under the GridView something like: var para = new Paragraph("Total de piezas" + TxtPiezas.Text); para.Alignment = 2; // se que...
asked by 17.07.2018 / 20:40
0
answers

Error in Linq query

I have a DropDownList with which I want to bring the records according to the item selected, when I click on the search button I get the following error:    The entity or complex type 'DB_ALMACENModel.Product' can not be   const...
asked by 18.07.2018 / 06:10
1
answer

InvalidOperationException when publishing the Web Service made in WCF,

Show me this error [InvalidOperationException: Another version has already been associated with the listening URI ' link '. If two endpoints want to share the same ListenUri, they must also share the same instance of the link object. The tw...
asked by 17.08.2018 / 20:02