opening GridView in contentplaceholder of masterpage
-
hi, i am having a page with gridview and i want to open the page in master page...so to do this i removed the runat server attribute from the page and on the link button of the master page i referred the page with gridview ...but showed me an error " form with gridview must have runat=server attribute". when i put this attribute...and try to open in master page, the page with gridview loads leaving the masterpage....i figured out that when my masterpage form and gridview page form tag both have runat= server attribute then the gridview page will be loaded leaving the masterpage.
Afiz Momin
-
hi, i am having a page with gridview and i want to open the page in master page...so to do this i removed the runat server attribute from the page and on the link button of the master page i referred the page with gridview ...but showed me an error " form with gridview must have runat=server attribute". when i put this attribute...and try to open in master page, the page with gridview loads leaving the masterpage....i figured out that when my masterpage form and gridview page form tag both have runat= server attribute then the gridview page will be loaded leaving the masterpage.
Afiz Momin
-
hi, i am having a page with gridview and i want to open the page in master page...so to do this i removed the runat server attribute from the page and on the link button of the master page i referred the page with gridview ...but showed me an error " form with gridview must have runat=server attribute". when i put this attribute...and try to open in master page, the page with gridview loads leaving the masterpage....i figured out that when my masterpage form and gridview page form tag both have runat= server attribute then the gridview page will be loaded leaving the masterpage.
Afiz Momin
-
What is this? Why are you posting to your question. In case you want to add anything to whatever you have asked, you can always go and edit it!
-
hi, i am having a page with gridview and i want to open the page in master page...so to do this i removed the runat server attribute from the page and on the link button of the master page i referred the page with gridview ...but showed me an error " form with gridview must have runat=server attribute". when i put this attribute...and try to open in master page, the page with gridview loads leaving the masterpage....i figured out that when my masterpage form and gridview page form tag both have runat= server attribute then the gridview page will be loaded leaving the masterpage.
Afiz Momin
Ok! Here are few things you need to read on first... 1. What does
runat=server
means. So, basically, what will happen if you remove it or add it to the control. 2. Can a page that has a Master page have multiple form tags that has 'runat=server
' in it? How many form tags withrunat=server
is allowed? -
Ok! Here are few things you need to read on first... 1. What does
runat=server
means. So, basically, what will happen if you remove it or add it to the control. 2. Can a page that has a Master page have multiple form tags that has 'runat=server
' in it? How many form tags withrunat=server
is allowed?runat=server attribute indicates that the element should be treated as a server control And page can have one or more forms in page. How many form tags with runat=server is allowed? --> this thing i dont know. but form requires a runat attributes when using GridView Plz give briefing on this and solution to the problem.. thank u..
-
runat=server attribute indicates that the element should be treated as a server control And page can have one or more forms in page. How many form tags with runat=server is allowed? --> this thing i dont know. but form requires a runat attributes when using GridView Plz give briefing on this and solution to the problem.. thank u..
Put a form tag with runat="server" in master page. Put your Gridview in ContentPane of child page. That will do. Have a look of how Master pages are implemented: http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx[^] http://www.devx.com/dotnet/Article/18042/0/page/1[^] P.S.: No multiple form tags with runat="server"