Click here to Skip to main content
15,397,224 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: display the name of current system user Pin
Joshua Omundson13-Mar-15 8:32
MemberJoshua Omundson13-Mar-15 8:32 
QuestionWhat is the advantage of using Tag Helpers in ASP.Net MVC 5 Pin
Tridip Bhattacharjee12-Mar-15 0:55
professionalTridip Bhattacharjee12-Mar-15 0:55 
AnswerRe: What is the advantage of using Tag Helpers in ASP.Net MVC 5 Pin
Anurag Gandhi12-Mar-15 7:16
professionalAnurag Gandhi12-Mar-15 7:16 
GeneralRe: What is the advantage of using Tag Helpers in ASP.Net MVC 5 Pin
Tridip Bhattacharjee12-Mar-15 7:51
professionalTridip Bhattacharjee12-Mar-15 7:51 
AnswerRe: What is the advantage of using Tag Helpers in ASP.Net MVC 5 Pin
Anurag Gandhi13-Mar-15 4:39
professionalAnurag Gandhi13-Mar-15 4:39 
GeneralRe: What is the advantage of using Tag Helpers in ASP.Net MVC 5 Pin
Joshua Omundson13-Mar-15 8:40
MemberJoshua Omundson13-Mar-15 8:40 
AnswerRe: What is the advantage of using Tag Helpers in ASP.Net MVC 5 Pin
Anurag Gandhi16-Mar-15 9:35
professionalAnurag Gandhi16-Mar-15 9:35 
Questionexport gridview data to CSV file Pin
Praveen Kandari11-Mar-15 21:54
MemberPraveen Kandari11-Mar-15 21:54 
Not able to download gridview content. Downloaded CSV file is empty.
my code on button click is:-

C#
public override void VerifyRenderingInServerForm(Control control)
{
}
protected void btnCSV_Click(object sender, ImageClickEventArgs e)
{
Response.Content="";
Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "attachment.csv"));
Response.ContentType = "application/text";(also tried vnd.csv)
gv1.AllowPaging = false;
gv1.DataBind();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < gv1.Columns.Count; i++)
{

sb.Append(gv1.Columns[i].HeaderText + ',');
}

sb.Append("\n");
for (int j = 0; j < gv1.Rows.Count; j++)
{
for (int k = 0; k < gv1.Columns.Count; k++)
{

sb.Append(gv1.Rows[j].Cells[k].Text + ',');
}

sb.Append("\n");
}
Response.Write(sb.ToString());
Response.End();
}

SuggestionRe: export gridview data to CSV file Pin
ZurdoDev19-Mar-15 3:48
professionalZurdoDev19-Mar-15 3:48 
QuestionHow to convert Asp.Net Gridview to OMR sheet Pin
Member 1151271911-Mar-15 21:53
MemberMember 1151271911-Mar-15 21:53 
QuestionRetain value in HttpModule Pin
arisaravanan11-Mar-15 16:28
Memberarisaravanan11-Mar-15 16:28 
AnswerRe: Retain value in HttpModule Pin
F-ES Sitecore11-Mar-15 22:54
professionalF-ES Sitecore11-Mar-15 22:54 
AnswerRe: Retain value in HttpModule Pin
Venkatesh Mookkan18-Mar-15 18:00
MemberVenkatesh Mookkan18-Mar-15 18:00 
QuestionASP.NET Image Viewer? Pin
Member 1151440011-Mar-15 5:49
MemberMember 1151440011-Mar-15 5:49 
AnswerRe: ASP.NET Image Viewer? Pin
Afzaal Ahmad Zeeshan11-Mar-15 7:27
mveAfzaal Ahmad Zeeshan11-Mar-15 7:27 
AnswerRe: ASP.NET Image Viewer? Pin
Richard Deeming11-Mar-15 8:25
mveRichard Deeming11-Mar-15 8:25 
AnswerRe: ASP.NET Image Viewer? Pin
jkirkerx11-Mar-15 9:28
professionaljkirkerx11-Mar-15 9:28 
QuestionRegarding web site animation when page scroll Pin
Tridip Bhattacharjee10-Mar-15 23:33
professionalTridip Bhattacharjee10-Mar-15 23:33 
AnswerRe: Regarding web site animation when page scroll Pin
Richard MacCutchan10-Mar-15 23:49
mveRichard MacCutchan10-Mar-15 23:49 
QuestionRelation between controller,view and model in asp.net mvc Pin
Tridip Bhattacharjee10-Mar-15 21:43
professionalTridip Bhattacharjee10-Mar-15 21:43 
AnswerRe: Relation between controller,view and model in asp.net mvc Pin
deepankarbhatnagar10-Mar-15 22:51
professionaldeepankarbhatnagar10-Mar-15 22:51 
GeneralRe: Relation between controller,view and model in asp.net mvc Pin
Tridip Bhattacharjee10-Mar-15 23:30
professionalTridip Bhattacharjee10-Mar-15 23:30 
GeneralRe: Relation between controller,view and model in asp.net mvc Pin
Richard MacCutchan10-Mar-15 23:47
mveRichard MacCutchan10-Mar-15 23:47 
AnswerRe: Relation between controller,view and model in asp.net mvc Pin
Joshua Omundson13-Mar-15 9:01
MemberJoshua Omundson13-Mar-15 9:01 
AnswerRe: Relation between controller,view and model in asp.net mvc Pin
Anurag Gandhi16-Mar-15 9:22
professionalAnurag Gandhi16-Mar-15 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.