Questions tagged as 'asp.net'

1
answer

use foreach in a mvc view

   In the ViewBag.Deducciones : bring me the deductions you selected previously.       In the ViewBag.DeducesEmployees : it brings me the deductions that the employee has selected (). The problem is that for every deduction I go through a...
asked by 17.10.2018 / 22:19
1
answer

Insert values from C # text boxes in (ASP.NET) to SQL Server

Good I am new in the subject for development, work in a project, the code was provided to me, my case is that I have to capture values of 3 text boxes and store them in a database in SQL Server, mainly they are 3 values to store as E-Mail type a...
asked by 04.10.2018 / 19:26
1
answer

Run javascript function before executing a server function

I have a web page in C # ASP that when I press a button, it passes me to another page by calling a server method with onServerClick. I need to run a javascript on the page before executing the server method or that the screen does not refresh wh...
asked by 04.10.2018 / 09:55
1
answer

As a hidden textbox when pressing a radio button?

Hi, I want to hide the textbox when I select the radio button called administrative. And when you select a driver, show the textboxs ..     
asked by 06.11.2018 / 16:50
1
answer

How to unify jscript?

I have these two javascript , which I must place in several pages. How can I unify them in the same js ? if it is possible such a thing. The reason for wanting to unify it is only due to the fact that both js execute within themselves the...
asked by 12.09.2018 / 20:50
1
answer

How to do with IIS + Visual Studio what pages with the "html" extension read it as if it were "aspx"?

When it is programmed with php and Apache web server, it is possible that the pages with the extension .html and .php treat them equally, being able to have a php code within a page with an extension .HTML Is it possible to configure the IIS + v...
asked by 03.09.2018 / 10:04
1
answer

Does DataSet take index of rows of a table that matches name = value?

Given a DataSet with table name = table1 I have several rows. Of all the rows I want to select the index or indices of the one that contains the element with the name of element = element and value = valueA With: DataSet ds = new Dat...
asked by 31.08.2018 / 15:47
1
answer

How to fill an Html.DropdownListFor ()?

I need to fill Html.DropdownListFor() in my view through razor, so far I have the following, two classes where I get the data that I need to recover from my db plus the controller by GET to recover the data and send it to the seen...
asked by 03.09.2018 / 16:23
1
answer

upload a flat file (excel) and using asp.net c # a web form load it and save the data in SQL

I would like to know how I could upload a flat file (excel) and using asp.net c # a web form to load it and save the data in sql, here I upload the file, I keep it in a local folder and now what I need is to save the content of the excel file in...
asked by 03.09.2018 / 18:54
2
answers

Error Converting a JSON-type string to Class in C #

I am building a Web Api in c # Where in one of the operations I return a string that serialized like this: public string GetCliente() { string resultado = string.Empty; DataTable dt = new DataTable();...
asked by 07.08.2018 / 02:18