Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionJavascript Image Flickering issue Pin
ATM@CodeProject12-May-10 3:39
ATM@CodeProject12-May-10 3:39 
QuestionAuto scrolling for listbox Pin
AnandDesai1912-May-10 1:02
AnandDesai1912-May-10 1:02 
AnswerRe: Auto scrolling for listbox Pin
Sandeep Mewara12-May-10 4:38
mveSandeep Mewara12-May-10 4:38 
QuestionAjax Error Pin
salmonraju12-May-10 0:52
salmonraju12-May-10 0:52 
AnswerRe: Ajax Error Pin
Not Active12-May-10 2:32
mentorNot Active12-May-10 2:32 
AnswerRe: Ajax Error Pin
puviyarasan.j12-May-10 21:01
puviyarasan.j12-May-10 21:01 
Questionconverting gridview to excel in asp.net Pin
jadhavShubhangi12-May-10 0:32
jadhavShubhangi12-May-10 0:32 
AnswerRe: converting gridview to excel in asp.net Pin
Khaja A. Imtiaz12-May-10 0:49
Khaja A. Imtiaz12-May-10 0:49 
use the below code in you ExporttoExcel function
using conn as new SqlConnection(Constring)
   conn.open()
   da=new sqlDataAdapter(query,conn)
   da.fill(ds)
End Using

Dim Gridview1 as New Gridview
Gridview1.datasource=ds
Gridview1.databind()
Response.clear()
Response.Buffer=true
Response.AddHeader("content-disposition","attachment;filename=testfile.xls")
Response.charset=""
Response.ContentType="application/vdn.ms-excel"
Dim sw as new StringWriter()

Dim hw as new HtmlTextWriter(sw)

For i as integer=0 To Gridview1.Rows.Count-1

  Gridview1.Row(i).Attribute.Add("class","textmode")
Next
Gridview1.RenderControl(hw)

dim style as String="<style> .textmode(mso-number-format:\@;}</style>"

Response.write(style)
Response.output.write(sw.ToString())
Response.Flush()
Response.End()

Imtiaz A.K

GeneralRe: converting gridview to excel in asp.net Pin
jadhavShubhangi12-May-10 1:03
jadhavShubhangi12-May-10 1:03 
GeneralRe: converting gridview to excel in asp.net Pin
Khaja A. Imtiaz12-May-10 1:09
Khaja A. Imtiaz12-May-10 1:09 
GeneralRe: converting gridview to excel in asp.net Pin
jadhavShubhangi12-May-10 1:19
jadhavShubhangi12-May-10 1:19 
AnswerRepost : converting gridview to excel in asp.net (Repost) Pin
nagendrathecoder12-May-10 3:09
nagendrathecoder12-May-10 3:09 
GeneralRe: Repost : converting gridview to excel in asp.net (Repost) Pin
jadhavShubhangi12-May-10 3:22
jadhavShubhangi12-May-10 3:22 
Questionhtml Pin
AndyInUK12-May-10 0:16
AndyInUK12-May-10 0:16 
AnswerRe: html Pin
Khaja A. Imtiaz12-May-10 0:26
Khaja A. Imtiaz12-May-10 0:26 
GeneralRe: html Pin
AndyInUK12-May-10 0:37
AndyInUK12-May-10 0:37 
AnswerRe: html Pin
Venkatesh Mookkan12-May-10 0:38
Venkatesh Mookkan12-May-10 0:38 
AnswerRe: html Pin
Not Active12-May-10 2:36
mentorNot Active12-May-10 2:36 
QuestionASP.NET with sliver light Pin
Satish_S11-May-10 23:58
Satish_S11-May-10 23:58 
AnswerRe: ASP.NET with sliver light Pin
Jamil Hallal12-May-10 0:09
professionalJamil Hallal12-May-10 0:09 
AnswerRe: ASP.NET with sliver light Pin
#realJSOP12-May-10 2:11
mve#realJSOP12-May-10 2:11 
GeneralRe: ASP.NET with sliver light Pin
The Man from U.N.C.L.E.12-May-10 2:37
The Man from U.N.C.L.E.12-May-10 2:37 
GeneralRe: ASP.NET with sliver light Pin
Satish_S14-May-10 2:06
Satish_S14-May-10 2:06 
AnswerRe: ASP.NET with sliver light Pin
The Man from U.N.C.L.E.14-May-10 3:16
The Man from U.N.C.L.E.14-May-10 3:16 
AnswerRe: ASP.NET with sliver light Pin
The Man from U.N.C.L.E.12-May-10 2:48
The Man from U.N.C.L.E.12-May-10 2:48 

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.