Click here to Skip to main content
15,902,276 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: open project Pin
sanaziuse14-Dec-06 5:34
sanaziuse14-Dec-06 5:34 
GeneralRe: open project Pin
Britney S. Morales14-Dec-06 8:23
Britney S. Morales14-Dec-06 8:23 
GeneralRe: open project Pin
sanaziuse14-Dec-06 9:22
sanaziuse14-Dec-06 9:22 
AnswerRe: open project Pin
ednrgc14-Dec-06 8:47
ednrgc14-Dec-06 8:47 
QuestionProblem with different session in a solution Pin
Nitin198114-Dec-06 0:29
Nitin198114-Dec-06 0:29 
AnswerRe: Problem with different session in a solution Pin
Guffa14-Dec-06 6:39
Guffa14-Dec-06 6:39 
GeneralRe: Problem with different session in a solution Pin
Nitin198114-Dec-06 18:37
Nitin198114-Dec-06 18:37 
Questionhow to export datagrid to excel sheet Pin
prakash_21014-Dec-06 0:24
prakash_21014-Dec-06 0:24 
Hi , i am exporting datagrid to excel sheet..
Here is no problem at all,as far as i dont allow paging for datagrid.
But if i allow paging to datagrig, it doesnt work properly.
The error comes while exporting data to excel sheet.

I am sending my code as follow :
-----------------------------------------------------------
Response.Clear()
Response.AddHeader("contentdisposition", "attachment;filename=FileName.xls")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "application/vnd.msexcel;charset=windows-1251"
Response.Charset = "UTF-8"
Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite)
DataGrid1.RenderControl(htmlWrite)
Response.Write(stringWrite.ToString())
Response.End()
-----------------------------------------------------------
when i use paging in my datagrid, and in debug mode , when i try to find the value of StringWrite object, it shows nothing in it... and fires an error..

prakash sawant
Questionproblem with calendar Pin
P Bhasker13-Dec-06 23:51
P Bhasker13-Dec-06 23:51 
QuestionString Pin
Khan.Bangash13-Dec-06 23:06
Khan.Bangash13-Dec-06 23:06 
AnswerRe: String Pin
Colin Angus Mackay13-Dec-06 23:28
Colin Angus Mackay13-Dec-06 23:28 
AnswerRe: String Pin
prakash_21014-Dec-06 0:30
prakash_21014-Dec-06 0:30 
AnswerRe: String Pin
Pradipta Basu14-Dec-06 9:53
Pradipta Basu14-Dec-06 9:53 
Questionurl rewriting Pin
shah zad13-Dec-06 23:03
shah zad13-Dec-06 23:03 
AnswerRe: url rewriting Pin
Nitin198114-Dec-06 0:35
Nitin198114-Dec-06 0:35 
QuestionGridView Pin
aaraaayen13-Dec-06 22:54
aaraaayen13-Dec-06 22:54 
AnswerRe: GridView Pin
Imran Khan Pathan14-Dec-06 0:25
Imran Khan Pathan14-Dec-06 0:25 
QuestionSharing Web.Config Pin
sujith3113-Dec-06 22:25
sujith3113-Dec-06 22:25 
QuestionCalling function on page from a UserControl Pin
cullyk13-Dec-06 22:10
cullyk13-Dec-06 22:10 
AnswerRe: Calling function on page from a UserControl Pin
DavidNohejl14-Dec-06 2:14
DavidNohejl14-Dec-06 2:14 
GeneralRe: Calling function on page from a UserControl Pin
cullyk14-Dec-06 3:36
cullyk14-Dec-06 3:36 
GeneralRe: Calling function on page from a UserControl Pin
DavidNohejl14-Dec-06 5:25
DavidNohejl14-Dec-06 5:25 
GeneralRe: Calling function on page from a UserControl Pin
cullyk14-Dec-06 5:32
cullyk14-Dec-06 5:32 
AnswerRe: Calling function on page from a UserControl Pin
DavidNohejl14-Dec-06 6:51
DavidNohejl14-Dec-06 6:51 
AnswerRe: Calling function on page from a UserControl Pin
GaryWoodfine 14-Dec-06 7:09
professionalGaryWoodfine 14-Dec-06 7:09 

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.