freelanceprogrammers.org Forum Index » ASP

Export to EXCEL from datagrid


View user's profile Post To page top
binod_shankar Posted: Tue Jan 04, 2005 3:02 pm


Joined: 04 Jan 2005

Posts: 2
Export to EXCEL from datagrid
Hi List,

I want to include a html file "FOOTER.HTML" in the main html file
"MAIN.HTML".

Both these files are lying in the same directory.

Can any body suggest me how to do that ?

Thanks

Binod


[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
anoopvjay Posted: Tue Jan 04, 2005 3:44 pm


Joined: 04 Jan 2005

Posts: 1
Export to EXCEL from datagrid
Are you loading the controls dynamically? If yes may be you r placing the
controls outside <form> </form> tag

Regards
Anoop

"Veeraraghavan, Ravi TCX12" <ravi.veeraraghavan@...> wrote:
Hi,

Export to Excel from datagrid gives me the error mentioned below.


Control `MyDataGrid__ctl2__ctl0` of type `DataGridLinkButton` 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
`MyDataGrid__ctl2__ctl0` of type `DataGridLinkButton` must be placed inside
a form tag with runat=server.

Source Error:
Line 116: Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Line 117: ` Get the HTML for the control.
Line 118: MyDataGrid.RenderControl(hw)
Line 119: ` Write the HTML back to the browser.
Line 120: Response.Write(tw.ToString())





Best Regards,
Veeraraghavan Ravi-TCX12
Petroleum Development Oman LLC
* PO Box 81, Postal Code 113
Muscat, Sultanate of Oman
*+968-24670298(Office)
+968-9514325 (Mobile)





[Non-text portions of this message have been removed]



---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Yahoo! India Matrimony: Find your life partneronline.

[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
pauer100 Posted: Wed Jan 05, 2005 2:21 am


Joined: 05 Jan 2005

Posts: 2
Export to EXCEL from datagrid
Hi

One question what is the tw is in this small section of code

You have assigned a new web controls of tw but qwhere have you specified
this and does in state that is on he server side so there fore where you use
this tw it must have runat="server" must be placed within the form tag

HTH

Rich


-----Original Message-----
From: Veeraraghavan, Ravi TCX12 [mailto:ravi.veeraraghavan@...]
Sent: 04 January 2005 06:12
To: AspNetAnyQuestionIsOk (AspNetAnyQuestionIsOk@yahoogroups.com)
Subject: [AspNetAnyQuestionIsOk] Export to EXCEL from datagrid


Hi,

Export to Excel from datagrid gives me the error mentioned below.


Control `MyDataGrid__ctl2__ctl0` of type `DataGridLinkButton` 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
`MyDataGrid__ctl2__ctl0` of type `DataGridLinkButton` must be placed inside
a form tag with runat=server.

Source Error:
Line 116: Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Line 117: ` Get the HTML for the control.
Line 118: MyDataGrid.RenderControl(hw)
Line 119: ` Write the HTML back to the browser.
Line 120: Response.Write(tw.ToString())





Best Regards,
Veeraraghavan Ravi-TCX12
Petroleum Development Oman LLC
* PO Box 81, Postal Code 113
Muscat, Sultanate of Oman
*+968-24670298(Office)
+968-9514325 (Mobile)





[Non-text portions of this message have been removed]




Yahoo! Groups Links
Reply with quote
Send private message
View user's profile Post To page top
pauer100 Posted: Wed Jan 05, 2005 2:21 am


Joined: 05 Jan 2005

Posts: 2
Export to EXCEL from datagrid
Hi

One question what is the tw is in this small section of code

You have assigned a new web controls of tw but qwhere have you specified
this and does in state that is on he server side so there fore where you use
this tw it must have runat="server" must be placed within the form tag

HTH

Rich


-----Original Message-----
From: Veeraraghavan, Ravi TCX12 [mailto:ravi.veeraraghavan@...]
Sent: 04 January 2005 06:12
To: AspNetAnyQuestionIsOk (AspNetAnyQuestionIsOk@yahoogroups.com)
Subject: [AspNetAnyQuestionIsOk] Export to EXCEL from datagrid


Hi,

Export to Excel from datagrid gives me the error mentioned below.


Control `MyDataGrid__ctl2__ctl0` of type `DataGridLinkButton` 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
`MyDataGrid__ctl2__ctl0` of type `DataGridLinkButton` must be placed inside
a form tag with runat=server.

Source Error:
Line 116: Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Line 117: ` Get the HTML for the control.
Line 118: MyDataGrid.RenderControl(hw)
Line 119: ` Write the HTML back to the browser.
Line 120: Response.Write(tw.ToString())





Best Regards,
Veeraraghavan Ravi-TCX12
Petroleum Development Oman LLC
* PO Box 81, Postal Code 113
Muscat, Sultanate of Oman
*+968-24670298(Office)
+968-9514325 (Mobile)





[Non-text portions of this message have been removed]




Yahoo! Groups Links
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help