Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

como guardar archivo en un botón asp.net

private void ButtonDescargar_click(object sender, System.EventArgs e)
{
    Response.ContentType = "text/xml";
    Response.ContentEncoding = System.Text.Encoding.UTF8;
    Response.AppendHeader("NombreCabecera", "MensajeCabecera");
    Response.TransmitFile(Server.MapPath("~/tuRuta/TuArchivo.xml"));
    Response.End();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: project programing languages in codecademy 
Csharp :: RadioButton IsChecked mapped to ENum xmal 
Csharp :: random number between 1 and 100 c# 
Csharp :: css text no word wrap 
Html :: fevicon 
Html :: qs cdn 
Html :: turn off autocomplete input html 
Html :: ml5 cdn 
Html :: how to open link in new tab 
Html :: html hello world 
Html :: font awesome linkedin 
Html :: link css html 
Html :: how to run vscode as root 
Html :: html open link in new tab 
Html :: lorum picsum 
Html :: centre text bootstrap 
Html :: vscode user code snippet not working markdown 
Html :: html a tag underline none 
Html :: non breaking space html 
Html :: bootstrap 4 center div 
Html :: how to add a description to a table html 
Html :: auto update copyright year javascript 
Html :: free ebooks 
Html :: less than symbol html 
Html :: markdown comment 
Html :: how to show other website inside my website 
Html :: html input only letters 
Html :: handlebars js cdn 
Html :: angular innerhtml 
Html :: html first line indent 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =