Questions tagged as 'asp.net'

2
answers

Export flat file with special characters in C #

I have a query from SQL , I show it in a GridView in a web page ( ASP.NET ) and from there I export it to a flat file delimited with C # and I have problems with accents and special characters. For example, the word MUÑOZ , that th...
asked by 07.07.2017 / 00:49
2
answers

Open asp: visible panel = true from a link in a different file

Greetings. I have 3 panels with visible=false and in .cs the method that shows one or the other according to the button that is pressed, but all this is within the same file products.aspx/.cs . What happens if I want to execu...
asked by 06.07.2017 / 19:30
1
answer

Absolute URL from _Layout.cshtml

I am developing a page in which I upload images and PDFs, the problem is that I want to put for example when I select a PDF to see it, the url comes up with the full path to say it www.ejemplo.com/home/pdf/ejemplo.pdf , until now the image...
asked by 26.06.2017 / 16:49
1
answer

Assign a counter as Id to an HTML tag

My question is the following, in my project of ASP.NET , I have in a view, the foreach of razor with which I print my values of the model, and a div is created for each iteration, what I need is that this div have an id au...
asked by 20.06.2017 / 20:41
1
answer

Export GridView to Excel

I try to export my GridView to a file in Excel but it marks me error when clicking on the button to export, although it says that it must be in Form with runat="server" , the GridView is in form This error ma...
asked by 05.06.2017 / 22:46
1
answer

Show image from a route

I have a web form with an asp: img control in which I want to show an image, of which I only have the complete path of the file (including the file name) that is stored on the server (the path is saved in a table in the database). But I do not k...
asked by 07.06.2017 / 21:49
1
answer

Send an SMTP email [duplicated]

Hello, how am I trying to send emails through a form in asp but it does not work for me and this is what I have behind the code (.cs) protected void btnform_Click(object sender, EventArgs e) { MailMessage msg = new MailMessage();...
asked by 21.04.2017 / 00:08
1
answer

Create new excel document with asp.net from a template

I have to fill out a report in excel in which they ask for my name and ask some questions in which I must qualify from 1 to 5 my experience as a user, but I can not modify the original file so I have to create a new document excel from the docum...
asked by 12.04.2017 / 12:18
1
answer

Exit button does not autodirect to the back page asp c #

Good afternoon I would like you to help me. I have made a page in asp c # for this I am working with boostrap what happens before me in my fields put required for it to require and do not register when the white texbox I put the required but now...
asked by 10.03.2017 / 19:07
2
answers

Open an Excel file from a server

I have the following problem: I have a button in which I open an excel file, with Process.Start("ruta"); I put the path of the server \server\etc\etc , and it works in my localhost, but when uploading the web app to the server (t...
asked by 04.03.2017 / 03:04