Questions tagged as 'asp.net'

1
answer

Save Image based on 64 [closed]

I want that in my application I can select an image and it is saved in my sql server database, I was told that for this I had to convert it to base 64, I am using a web service that creates ASP.Net in c #, How do I store my image in my database?...
asked by 18.08.2017 / 17:26
1
answer

Sort columns of a GridView in ASP.NET C #

I want to sort the columns of a GridView in ASP.NET, I am consuming an external service that throws me and the results and that result I have put it in a grid, that is to say in a GridView but what I want is to order by columns. This...
asked by 14.06.2017 / 17:24
1
answer

Path not found in my @ Html.Action

I have an action child, which I use to invoke a view in a layout, but when using the @ HTML.Action , it tells me that the controller that happened to it has not been found. <li class="dropdown"> <a href="#"...
asked by 26.06.2017 / 20:04
2
answers

Pass values in razor to javaScript

I'm doing an application in asp.net, what happens is that I need to access a value that the razor brings me, to later use it in a script but I do not know how to combine razor in javascript, I know that from javascript to razor not it is possibl...
asked by 16.06.2017 / 18:51
3
answers

Alert Box in ASP.NET C #

I would like to ask if in ASP.NET C# you can do a alert similar to the one that can be done in Windows Form with the statement MessageBox . That if I press Si does something and if I press No it is canc...
asked by 22.06.2017 / 06:17
1
answer

Button creation per cycle

How about, I'm doing a cycle to create a certain number of buttons and indeed they are created but I can not make every 5 buttons make a line break, I tried with an if condition but it does not work // Declaramos el Button y un literal que nos...
asked by 21.06.2017 / 22:36
1
answer

Convert DIV Html5 to Image or PDF C # / Jquery ASP.Net

Hello friends, how can I convert a div to an img in C # / ASP.Net? I want to capture Google maps from an APP in C # ASP.Net I tried with Windows Forms CopyScreen worse already published in IIS tells me Not Valid Controller Do you have a...
asked by 27.06.2017 / 22:53
3
answers

How would this vb code be in c #

I need to show data that is in a database. I have something similar done in vb.net but now I have to do it in c # For i = 0 To dt.Rows.Count - 1 Dim codigo As Integer = dt.Rows(i).Item("CodDepartamento") html.Append("...
asked by 09.06.2017 / 08:08
2
answers

How to pass parameters to an event that you do not receive?

I am trying to pass the objeto sender to an event that does not receive parameters, I need the sender object in order to generate the information This is the event sent by the sender object: protected void DButton(object sender, Even...
asked by 06.07.2017 / 17:41
1
answer

Error converting from String to Int in TextBox

I have a GridView and inside this I have the function RowUpdating and when I want to change the data, I throw a conversion error.    Input string was not in a correct format. In the way I want to convert the TextBox i...
asked by 23.05.2017 / 16:03