Need Solution for Render Control Issue in ASP.NET

Posted by Sivakumar.S under ASP.NET on 8/25/2012 | Points: 10 | Views : 776 | Status : [Member] | Replies : 3
Hi all,

Need solution for the below mentioned exception while rendering the grid view which is inside the usercontrol in ASP.NET.

**************************************************************************************
HttpException was handled by user code

Control 'gvEmployee ' of type 'GridView' must be placed
inside a form tag with runat=server.
**************************************************************************************


Thanks in Advance,

siva


Responses

Posted by: Ranjeet_8 on: 8/25/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
try this,
Just copy or paste the below code on ur page.

public override void VerifyRenderingInServerForm(Control control)
{

}



Sivakumar.S, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sivakumar.S on: 8/25/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

Thanks for your reply. Still it is showing the same exception.




siva

Sivakumar.S, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 8/25/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
@Sivakumar.S

plz share ur Aspx Design page..

Sivakumar.S, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response