Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to Add a User Control to a SharePoint 2013 Visual Web Part ?

$
0
0

Hi,

1.I have created SharePoint 2013 Farm Solution through VS 2012.

2.Added visual Web part

3.Created a User control (Farm Solution ) and added some Control From tool Box.

4.Drag and drop user control from solution explorer to visual web part.

so its  Register tag and with prefix tag user controls automatically added on visual web part source. when i try to build solution it throws Exception:

Exception :The name 'InitializeControl' does not exist in the current context.

Please Provide solution after try/or proper workaround.

Thanks,

Siddheshwar


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>