I am using SharePoint online(Office 365). for office 365 it is necessary to create sandbox solution but in sandbox solution it is not possible to create visual web part. is there any way to create visual web part in sandbox solution ?
In sandbox solution you can not create visual webpart directly. for that you have download and install the Visual Studio 2010 SharePoint Power Tools from given link and then you can create Visual WebPart in sandbox solution. [Visual Web Part(Sandboxed)]