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

ASP.NET

 
GeneralRe: memory Pin
sra2224-Mar-07 0:10
sra2224-Mar-07 0:10 
GeneralRe: memory Pin
Sandeep Akhare24-Mar-07 0:29
Sandeep Akhare24-Mar-07 0:29 
GeneralRe: memory Pin
siddisagar25-Mar-07 18:52
siddisagar25-Mar-07 18:52 
Questionsend email on specified time using .net framework Pin
gr8dhina23-Mar-07 18:37
gr8dhina23-Mar-07 18:37 
AnswerRe: send email on specified time using .net framework Pin
yehtera23-Mar-07 20:54
yehtera23-Mar-07 20:54 
AnswerRe: send email on specified time using .net framework Pin
RichardGrimmer26-Mar-07 5:37
RichardGrimmer26-Mar-07 5:37 
QuestionBitmap Save dialog Pin
oskardiazdeleon23-Mar-07 7:31
oskardiazdeleon23-Mar-07 7:31 
QuestionDataGrid to Excel Pin
Sarfaraj Ahmed23-Mar-07 5:54
Sarfaraj Ahmed23-Mar-07 5:54 
Hi all please help me

Im getting the errors

Control 'ctl00_ContentPlaceHolder1_GridViewTopMembers' of type 'GridView' must be placed inside a form tag with runat=server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Control 'ctl00_ContentPlaceHolder1_GridViewTopMembers' of type 'GridView' must be placed inside a form tag with runat=server

I wrote the code below:

GridViewTopMembers.Visible = True
Dim CallTopMembers As TopMembersList = _TopMembers.TopMembersMonthFebruary(TopNumber, StartMonth, StartYear)
GridViewTopMembers.DataSource = CallTopMembers

Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "application/vnd.xls"

Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter()
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite)

GridViewTopMembers.DataBind()


GridViewTopMembers.RenderControl(htmlWrite)
Response.Write(stringWrite.ToString())
Response.End()

Sarfarj Ahmed

QuestionCDO Subject Encoding Pin
Paddy Boyd23-Mar-07 5:19
Paddy Boyd23-Mar-07 5:19 
QuestionASP.net authorisation at page level Pin
Suj_7823-Mar-07 5:08
Suj_7823-Mar-07 5:08 
AnswerRe: ASP.net authorisation at page level Pin
kubben24-Mar-07 2:50
kubben24-Mar-07 2:50 
QuestionHow to Generate PIN Number Pin
sjs4u23-Mar-07 5:06
sjs4u23-Mar-07 5:06 
AnswerRe: How to Generate PIN Number Pin
joon vh.23-Mar-07 5:59
joon vh.23-Mar-07 5:59 
QuestionIs it safe to move to IE7? Pin
-Dr_X-23-Mar-07 4:07
-Dr_X-23-Mar-07 4:07 
AnswerRe: Is it safe to move to IE7? Pin
ca8msm23-Mar-07 4:14
ca8msm23-Mar-07 4:14 
Questionhow to write regulr expression in url rewriting Pin
yogita charhate23-Mar-07 3:59
yogita charhate23-Mar-07 3:59 
AnswerRe: how to write regulr expression in url rewriting Pin
Sandeep Akhare24-Mar-07 0:35
Sandeep Akhare24-Mar-07 0:35 
QuestionSaving images to the server folder Pin
Icarus12323-Mar-07 3:42
Icarus12323-Mar-07 3:42 
AnswerRe: Saving images to the server folder Pin
ca8msm23-Mar-07 4:15
ca8msm23-Mar-07 4:15 
Questionhow to do URL Rewriting in asp.net c# Pin
yogita charhate23-Mar-07 3:41
yogita charhate23-Mar-07 3:41 
AnswerRe: how to do URL Rewriting in asp.net c# Pin
Jesse Squire23-Mar-07 4:00
Jesse Squire23-Mar-07 4:00 
QuestionReal time capturing video stream in webform Pin
senthil_becse23-Mar-07 2:28
senthil_becse23-Mar-07 2:28 
AnswerRe: Real time capturing video stream in webform Pin
senthil_becse27-Mar-07 19:04
senthil_becse27-Mar-07 19:04 
Questionwebsite access problem Pin
paranth23-Mar-07 2:28
paranth23-Mar-07 2:28 
AnswerRe: website access problem Pin
StianSandberg23-Mar-07 2:31
StianSandberg23-Mar-07 2:31 

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.