We've encountered problems before where we had number of user controls, in different folders, where one control referenced another in a different folder (not really ideal...).
As the website compiles, it seems to work down through the directories, creating a dll for each, so, in some cases, we found that we got compilation errors when one control goes looking for another, but it has not been compiled yet.
u can use javascrpit function for this like:
document.getElementById('div1').style.display='block'; // to display
document.getElementById('div2').style.display='none'; // to hide
and make similar function for div2 and call them on selection of radiobutton.
try the ajax accordian pane thats the real fast way to do it in asp and also you can find it on google or codeplex for this third party dll and the functions working can be seen on asp.net/samples.If you want more then these are deeply described in wrox asp.net prof. buy the book.
If you gonna use asp.net server controls, instead of <input type="radio"> and <div> use <asp:RadioButtonList> and <asp:Panel>... Handle the OnSelectedIndexChanged event of the radio button list to manipulate the visibility of the asp:panel's (div's).
I used p/invoke but i need to add the reference of the dll in the project which is not possible the normal way i.e through Add reference in the solution explorer.
But wen i manually copy-paste it into the website cache(run->%windir%\Microsoft.Net\Framework or C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\Temporary ASP.NET Files), it works.
I want to avoid this manual copy-paste and want to map this dll into the project.
How do i do it?
If its used to give a tool reference to your project,why shouldnt you try browsing of dll by this:
1.go to toolbox,
2.right click on any of them,as suited to you,
3.click the choose items button which is used to inherits the com object,
4.browse the dll,
5.ok its done u can use it directly from toolbox now.