skip to Main Content

How do i prepopulate textarea with data from database (or any text for that matter) in ASP.Net?

Ok, so basically i have an form which edits data in my database. I have the following inputs: <input value="@title" type="text" asp-for="@Model.ProjName" class="form-control" placeholder="Ticket1" /> <textarea value="@description" type="text" asp-for="@Model.ProjDescription" class="form-control" rows="3"></textarea> I can pre-populate the input just fine, however value…

VIEW QUESTION

ASP.NET download csv file as zip?

I've been reading through: https://www.aspsnippets.com/Articles/Export-data-from-SQL-Server-to-CSV-file-in-ASPNet-using-C-and-VBNet.aspx Rather than only have the option to download as csv as described there in: //Download the CSV file. Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=SqlExport.csv"); Response.Charset = ""; Response.ContentType = "application/text"; Response.Output.Write(csv); Response.Flush(); Response.End(); is there…

VIEW QUESTION
Back To Top
Search