I have created a XsltListViewWebPart using the designer and copied the same page to a site page. This has been deployed from the visual studio. Now, I have added a code behind file. But, I'm not able to get the XsltListViewWebPart inside the code behind. I need to set some properties using the code behind. Getting null for the below mentioned code. How can I get that ?
var cntl = this.FindControl("g_e4c4ddc3_e234_43d2_9a4b_a1c391d69f17") as XsltListViewWebPart;