- WebApplicationVS2013.zip
- WebApplicationVS2013
- WebApplication
- WebApplicationVS2010.zip
- WebApplication
- packages
- Microsoft.AspNet.Mvc.4.0.20710.0
- lib
- net40
- Microsoft.AspNet.Mvc.4.0.20710.0.nupkg
- Microsoft.AspNet.Razor.2.0.20710.0
- lib
- net40
- Microsoft.AspNet.Razor.2.0.20710.0.nupkg
- Microsoft.AspNet.WebApi.4.0.20710.0
- Microsoft.AspNet.WebApi.4.0.20710.0.nupkg
- Microsoft.AspNet.WebApi.Client.4.0.20710.0
- lib
- net40
- Microsoft.AspNet.WebApi.Client.4.0.20710.0.nupkg
- Microsoft.AspNet.WebApi.Core.4.0.20710.0
- content
- web.config.transform
- lib
- net40
- Microsoft.AspNet.WebApi.Core.4.0.20710.0.nupkg
- Microsoft.AspNet.WebApi.WebHost.4.0.20710.0
- lib
- net40
- Microsoft.AspNet.WebApi.WebHost.4.0.20710.0.nupkg
- Microsoft.AspNet.WebPages.2.0.20710.0
- lib
- net40
- Microsoft.AspNet.WebPages.2.0.20710.0.nupkg
- Microsoft.Net.Http.2.0.20710.0
- lib
- Microsoft.Net.Http.2.0.20710.0.nupkg
- Microsoft.Web.Infrastructure.1.0.0.0
- lib
- net40
- Microsoft.Web.Infrastructure.dll
- Microsoft.Web.Infrastructure.1.0.0.0.nupkg
- Newtonsoft.Json.4.5.6
- lib
- net40
- Newtonsoft.Json.4.5.6.nupkg
- repositories.config
- WebApplication.sln
- WebApplication.suo
- WebApplication
- mvc_application.zip
- MVC_Application
- mvc_application-noexe.zip
- WebApplicationVS2013-noexe.zip
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
string portlet_ID = Convert.ToInt32(ViewData["portlet_ID"]).ToString().Trim();
string portletName = "portlet" + portlet_ID;
string portletFunc = "func" + portletName;
string portletContent = "portlet" + portlet_ID + "Content";
%>
<script type="text/javascript">
function <%= portletFunc + "_" %>() {
<%= portletFunc %>("1");
}
function <%= portletFunc %>(page) {
if( page == 0 )
{
$('#<%= portletContent %>').html('');
}
else
{
$('#<%= "PortletContentLoading" + portletName %>').html('<image src= "../../ajax-loader.gif" alt="Loading, please wait"/>');
}
jQuery.ajax({
type:"POST",
url: "<%= WebApplication.Models.Utility.Get_Path() %>/Portlet/Content/<%= portlet_ID %>/" + page +"/<%= portletName %>",
success: function(result) {
if(result.isOk == false)
{
$("#<%= portletContent %>").html(result.message);
$("#<%= "Header" + portletName %>").html("");
}
else
{
$("#<%= portletContent %>").html(result);
$("#<%= "Header" + portletName %>").html("<%= ViewData["Title"] %>");
$(function() {
$("button, input:button, a", ".demo").button();
});
}
},
async: true
});
}
</script>
<%-- portlets/webpart generation --%>
<div class="portlet ui-state-default" id='<%= portletName %>'>
<div class="portlet-header" style=" vertical-align:top; padding:0 0 0 0;" >
<div id='<%= "Header" + portletName %>' style="color:White" >Loading..... </div>
</div>
<table width="100%">
<tr>
<%-- portlets/webpart content holder--%>
<td style="padding: 0em 0em;">
<div id='<%= portletContent %>' style="height: auto" class="portlet-content" >
<img src= "../../ajax-loader.gif" alt="Loading, please wait" onload=<%= portletFunc + "_" %>() />
</div>
</td>
</tr>
</table>
</div>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.