-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: mrp
Message 1 in Discussion
Hi i have a datagrid with a button column,button type is Linkbutton
and i'm exporting the datagrid to Excel by the following code Dim tw As New
System.IO.StringWriter
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Response.AppendHeader("ContentType", "application/octet-stream")
Response.AppendHeader("Content-Disposition", "attachment; filename=" & "abc.xls" & "")
dgOrderRate.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
but it is giving an error like this 'DataGridLinkButton' must be placed inside a form
tag with runat=server. please help me out i want export the grid as it is disaplaying
on the webform if i remove the linkbutton it is working fine
and the sme problem persists if i set the allowsorting=true please help
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]