Click here to Skip to main content
15,881,715 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: SIP phone and Flash Pin
Aman Bhullar2-Jan-09 1:08
Aman Bhullar2-Jan-09 1:08 
AnswerRe: SIP phone and Flash Pin
sudhir.marni4-Jan-09 18:13
sudhir.marni4-Jan-09 18:13 
AnswerRe: SIP phone and Flash Pin
bigphish12-Feb-09 18:35
bigphish12-Feb-09 18:35 
GeneralRe: SIP phone and Flash Pin
sudhir.marni20-Feb-09 1:08
sudhir.marni20-Feb-09 1:08 
GeneralRe: SIP phone and Flash Pin
sudhir.marni6-May-09 20:39
sudhir.marni6-May-09 20:39 
AnswerRe: SIP phone and Flash Pin
flashphoner30-Jun-10 0:46
flashphoner30-Jun-10 0:46 
AnswerRe: SIP phone and Flash Pin
pavel_ismailov19-Oct-11 3:08
pavel_ismailov19-Oct-11 3:08 
Questionneed to export inherited grid to excel Pin
meg221-Jan-09 19:27
meg221-Jan-09 19:27 
following Exception occurs on using grid.rendercontrol(hw)

Control of type 'DataGridLinkButton' must be placed inside a form tag with runat=server.

i am working on a web application built in asp.net and vb.net framework 1.1
i need to export a grid to excel using a button click.code for button click is given below

the code snippet works fine for one web page but causes exception on the other.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Response.Clear()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim tw As New System.IO.StringWriter
Dim hw As New System.Web.UI.HtmlTextWriter(tw)

HtmlTextWriter(stringWrite)
Grid.RenderControl(hw)-- exception caused here
Response.Write(tw.ToString())
Response.End()
End Sub

Not able to find where is the problem....Please help
AnswerRe: need to export inherited grid to excel Pin
Abhijit Jana2-Jan-09 3:26
professionalAbhijit Jana2-Jan-09 3:26 
GeneralRe: need to export inherited grid to excel Pin
meg224-Jan-09 17:14
meg224-Jan-09 17:14 
Questionweb development Pin
vkvimal1-Jan-09 19:24
vkvimal1-Jan-09 19:24 
AnswerRe: web development Pin
Girish Nambiar1-Jan-09 22:52
Girish Nambiar1-Jan-09 22:52 
GeneralRe: web development Pin
vkvimal2-Jan-09 18:41
vkvimal2-Jan-09 18:41 
GeneralRe: web development Pin
Girish Nambiar8-Jan-09 21:59
Girish Nambiar8-Jan-09 21:59 
AnswerRe: web development Pin
Abhijit Jana1-Jan-09 23:57
professionalAbhijit Jana1-Jan-09 23:57 
GeneralRe: web development Pin
vkvimal2-Jan-09 18:45
vkvimal2-Jan-09 18:45 
QuestionInstallation of DotNetNuke Pin
shabi uz zaman1-Jan-09 18:52
shabi uz zaman1-Jan-09 18:52 
AnswerRe: Installation of DotNetNuke Pin
Abhijit Jana2-Jan-09 2:59
professionalAbhijit Jana2-Jan-09 2:59 
QuestionCaptcha Help - Need an experienced web developer Pin
Lorie Navarra31-Dec-08 17:05
Lorie Navarra31-Dec-08 17:05 
AnswerRe: Captcha Help - Need an experienced web developer Pin
Girish Nambiar1-Jan-09 22:38
Girish Nambiar1-Jan-09 22:38 
QuestionRequest.ServerVariables("LOGON_USER") is empty Pin
dreamaway82031-Dec-08 3:22
dreamaway82031-Dec-08 3:22 
QuestionNeed IIS for running ASP pages...? Pin
codingrocks30-Dec-08 23:09
codingrocks30-Dec-08 23:09 
AnswerRe: Need IIS for running ASP pages...? Pin
Abhijit Jana31-Dec-08 2:58
professionalAbhijit Jana31-Dec-08 2:58 
Questionhide documents Pin
William Engberts30-Dec-08 22:05
William Engberts30-Dec-08 22:05 
AnswerRe: hide documents Pin
Not Active31-Dec-08 6:00
mentorNot Active31-Dec-08 6:00 

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.