Questions tagged as 'asp.net'

1
answer

Error getting the name of the client PC from the server

That, it turns out that I have a problem in my production site, that when I publish my code, I get the following error:    System.Net.Sockets.SocketException: Unknown host The reason is because I am trying to get the name of the PC on a c...
asked by 20.12.2017 / 15:54
4
answers

Implement css in html to send an email to Outlook

I'm creating an HTML with CSS styles to send an email from asp.net, the problem is that when the email arrives in Outlook it does not respect the styles, I have already tried to put them embedded in the html, in line with the tags and with...
asked by 08.12.2017 / 00:21
1
answer

I get an error when saving image: A generic error occurred in GDI +. C #

It turns out that I'm trying to save an image on my computer, but I get the following error:    A generic error occurred in GDI +. The code I have is the following: private static void StartBrowser(string source) { var t...
asked by 03.12.2017 / 20:09
1
answer

Get access to iframe content?

What kind of friends I hope you can support me with some doubts I have. I am uploading a page in an iframe , and when I try to access the contentDocument it returns the following error DOMException: Blocked a frame with origin " link "fr...
asked by 16.11.2017 / 01:48
2
answers

Help showing catalog products html css

I have the following code in HTML where I want to show a catalog of products with 4 columns and n rows- Everything is fine and it works but when the name of the product is too long the table starts to go down and stretch and unravels the others....
asked by 19.12.2017 / 19:34
1
answer

Session variable: Error: Object reference not set as (...)

Good! In a previous question I wanted to know how to keep a variable for the whole site and be able to use it when needed: Previous question But now I'm getting this error very often ... I tried this and it does not work, among many o...
asked by 02.11.2017 / 14:35
1
answer

How to fill a table in asp.net mvc4 with ajax?

I'm doing a query to an api with asp.net, the query is well done and everything but I have a problem filling a table with ajax, I could not see the data you send me here the code c # public async Task<List<Sto_TraerCaracterizacionResp...
asked by 02.10.2017 / 17:49
1
answer

How to keep the selected value in a select after the post back

Hi how can I pantener the selected value of a select after the postback?  this is the code that I have in sight: <select id="LocalidadId" name="LocalidadId" class="btn btn-secondary btn-block" asp-items="ViewBag.LocalidadId"> <opt...
asked by 23.09.2017 / 23:03
1
answer

Show bootstrap message

I'm trying to show a bootstrap message when inserting data in my database but when clicking, a postback is made and the modal disappears ... <div class="container"> <div class="modal fade" id="user_Modal" role="dialog">...
asked by 18.07.2017 / 22:32
1
answer

Extract value in datalist

As I can extract the value of the query in my DataList , I have the following fragment in my page aspx <div class="form-group"> <label for="" class="col-md-2">País</label> <div class="col-md-4"><input class...
asked by 28.06.2017 / 17:34