asp.net


Loading user-control on click event


I have a single asp page on that i have different navigation button. i want to register the user control on link button click and display that user-control in div,which is i mention in my code.here is my code.i am stuck over here.user-control contain some code and user-control are in update-panel any help will be appreciated.
`
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script>
function ShowInfo() {
$('#common').show();
}
</script>
</head>
<body>
<div>
<ul class="acc-menu" id="sidebar">
<li><i class="fa fa-cog"></i><span>Settings</span> <span class="badge badge-indigo">5</span>
<ul class='acc-menu'>
<li>Account Info</li>
<li>Vehicle Info</li>
<li>Driver Info</li>
<li>Sub User Info</li>
<li>Admin Tools</li>
</ul>
</li>
</ul>
</div>
<div id="common" style="height: 100%; display: none;">
</div>
</body>
</html>
`
Take a look at this ASP.NET project. It is a complete sample project on how to add user controls to a page dynamically.
http://snippets.surfthru.com/post/Dynamically-Adding-User-Controls-to-an-ASPX-page

Related Links

route.GetRouteData(httpContext).Values[“action”] is null for Attribute Routing
Error: Failed To Connect to Host Uri Using PayFlow Pro and ASP.NET 1.1
Upgrade MVC5 project to MVC6
Crystal report does not render in browser
Updating related entities in an ASP.NET MVC application using Entity Framework
Getting the value of a Gridview column width in ASP when set dynamically
Invalid cast exception was unhandled by user code
Serialization of custom objects in ASP.NET WEB API [duplicate]
Set background color on listviewrow
ServerClick event fires Page.Load
How do you allow parent paths in Visual Studio 2013?
Change connection string to use external MSSQL database
Why does ErrorMessage not render correctly
ASP.NET App_code Error handling
Access winform variable from browsercontrol
Visual studio express 2013 web

Categories

HOME
gcc
intellij-idea
jenkins-pipeline
formatting
readdir
skypedeveloper
stdout
nltk
where
download
powerquery
flowtype
pdf-generation
osx-yosemite
google-app-maker
spring-data-solr
aggregate
exchange-transport-agents
multibinding
views
turn.js
libxml2
hierarchical-data
jms-topic
recreate
blockly
slim-lang
directions
machine-code
android-geofence
device-driver
stochastic-process
idea-plugin
compiled-query
datagridviewcombobox
smooth-streaming
spring-ide
line-endings
serverless-architecture
confluent
history
wink
r-commander
webmatrix
kendo-scheduler
business-catalyst
node.js-client
gdi
chomsky-normal-form
instabug
wonderware
android-facebook
recode
musicbrainz
android-networking
wingdb
pymol
xcode5
frisby.js
cocos2d-x-2.x
agent-based-modeling
dotcmis
kuka-krl
android-jack-and-jill
php-amqplib
xcode6.1-gm-seed
typography
leap-year
backbone-views
proj4
symbian3
generator-expression
phone-state-listener
system.transactions
dnsbl
motordriver
doxia
certificate-revocation
winrt-async
project-files
jexcelapi
nyromodal
mysql-logic
appointment
hotfix

Resources

Encrypt Message