Click here to Skip to main content
15,888,269 members
Home / Discussions / Web Development
   

Web Development

 
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 
AnswerRe: hide documents Pin
Aman Bhullar31-Dec-08 6:30
Aman Bhullar31-Dec-08 6:30 
GeneralRe: hide documents Pin
Not Active31-Dec-08 9:22
mentorNot Active31-Dec-08 9:22 
GeneralRe: hide documents Pin
Aman Bhullar31-Dec-08 19:43
Aman Bhullar31-Dec-08 19:43 
GeneralRe: hide documents Pin
Not Active31-Dec-08 20:10
mentorNot Active31-Dec-08 20:10 
GeneralRe: hide documents Pin
Aman Bhullar31-Dec-08 20:46
Aman Bhullar31-Dec-08 20:46 
AnswerRe: hide documents Pin
Girish Nambiar1-Jan-09 22:47
Girish Nambiar1-Jan-09 22:47 
AnswerRe: hide documents Pin
SABhatti6-Jan-09 6:56
SABhatti6-Jan-09 6:56 
QuestionPopulate the dropdown list with states and cities Pin
Member 400664830-Dec-08 20:42
Member 400664830-Dec-08 20:42 
AnswerRe: Populate the dropdown list with states and cities Pin
Abhijit Jana30-Dec-08 21:09
professionalAbhijit Jana30-Dec-08 21:09 
Questiongrid.rendercontrol causes exception Pin
meg2230-Dec-08 17:50
meg2230-Dec-08 17:50 
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: grid.rendercontrol causes exception Pin
Aman Bhullar30-Dec-08 19:06
Aman Bhullar30-Dec-08 19:06 
GeneralRe: grid.rendercontrol causes exception Pin
meg2230-Dec-08 19:32
meg2230-Dec-08 19:32 

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.