tag:blogger.com,1999:blog-2204537164122581172024-03-14T08:34:59.920-07:00vrebotonVB.Net.DOTNETNUKE.EntitySpaces.jQueryAnonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.comBlogger43125tag:blogger.com,1999:blog-220453716412258117.post-74853095009463602262015-11-03T06:44:00.000-08:002015-11-03T06:44:14.261-08:00A javascript library for formatting and manipulating numbers.<b>Numeral.js</b><span style="background-color: white; color: #333333; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px; line-height: 20px;">, while less complex, was inspired by and heavily borrowed from </span><a href="http://momentjs.com/" style="background-color: white; color: #0092bf; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px; line-height: 20px; text-decoration: none; transition: color 0.3s ease;">Moment.js</a> so if you have use momentjs before you should be familiar with this library. <br /><br />Numbers can be formatted to look like currency, percentages and more. <br /><br />
How to use:<br />
numeral(1000).format('0,0') returns 1,000<br />
numeral(1230974).format('0.0a') returns 1.2m<br />
<br />
numeral(1000.234).format('$0,0.00') returns $1,000.23<br />
numeral(1230974).format('($ 0.00 a)') returns $ 1.23 m<br />
<br />
numeral(1).format('0%') returns 100%<br />
numeral(0.974878234).format('0.000%') returns 97.488%<br />
<br />
For more sample and options go to<a href="http://numeraljs.com/"> http://numeraljs.com/</a>.Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-59811337627624168742015-10-05T20:01:00.001-07:002015-10-05T20:01:35.491-07:00Button click always fires when you press enter keyI've spent hours trying to figure this out, but the solution is just adding the type="button" attribute to the button element.<br /><br />Issue.<br /><span style="background-color: #f7f7f7; color: #333333; font-family: 'Open Sans', sans-serif; font-size: 13px; line-height: 18.5714px;"><button id="generateButton" class="btn btn-info btn-sm">Generate</button></span><br /><br />Solution<br /><span style="background-color: #f7f7f7; color: #333333; font-family: 'Open Sans', sans-serif; font-size: 13px; line-height: 18.5714px;"><button id="generateButton" type="button" class="btn btn-info btn-sm">Generate</button></span><br />
<br />
I got the solution from this post on SOF.<br />
<a href="http://stackoverflow.com/questions/12325066/button-click-event-fires-when-pressing-enter-key-in-different-input-no-forms">http://stackoverflow.com/questions/12325066/button-click-event-fires-when-pressing-enter-key-in-different-input-no-forms</a>Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-81729185812891605002015-10-02T07:47:00.001-07:002015-10-02T07:51:57.039-07:00Introducing the YouTube Kids app<iframe allowfullscreen="" frameborder="0" height="270" src="https://www.youtube.com/embed/OUmMAAPX6E8" width="480"></iframe><br />
Countries outside of the US have kids too, Please Google I need this in Philippines App Store like last February 2015. :)Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-55605542831757810302015-04-24T23:34:00.000-07:002015-04-24T23:34:00.756-07:00Turn checkboxes and radio buttons in toggle switches <br />
<div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;">
<a href="http://www.bootstrap-switch.org/"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiNxV6yEvxKdMdxHFav840d9wqNZqWM47Sh9-zBN_hUQ-Q1ySzCEerxFmuwZm6AZZDLCNjoKtRjG318_Q8fhqMYFdmrYqqaiIhRHftTVx-eHrEivCQxA-5jsh_xhqLt9y2crLcMiXpYhw/s1600/sample.png" height="517" width="640" /></a></div>
<br />
<br />
<div>
<br /></div>
<div>
<a href="http://www.bootstrap-switch.org/">http://www.bootstrap-switch.org/</a></div>
Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-41183857654146328772015-04-23T23:30:00.003-07:002015-04-23T23:30:34.666-07:00jQuery BBQ: Back Button & Query LibraryjQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, and fragment / query string parse and merge utility methods.<br />
<br /><a href="http://benalman.com/projects/jquery-bbq-plugin/">http://benalman.com/projects/jquery-bbq-plugin/</a>Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-54765841801790913182014-12-08T02:19:00.000-08:002014-12-08T02:19:09.984-08:00Format date and time using Moment.jsThe javascript function below will format a given datetime object like facebook ish using <a href="http://momentjs.com/">momentjs</a>.<br /><br />
<span style="font-family: Courier New, Courier, monospace;">function formatDateTime(dte, format) {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> var diff = moment().diff(moment(dte), 'days');</span><br />
<span style="font-family: Courier New, Courier, monospace;"> if (diff == 0) {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> return moment(dte).fromNow();</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> else if (diff == 1) {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> return moment(dte).calendar();</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> else {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> if (format) {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> return moment(dte).format(format);</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> else {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> return moment(dte).format("MMM DD, YYYY hA");</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;">}</span><br />
<br />
The return value will depend on the datetime pass to the function:<br />
<br />
<b>If today</b><br />
"a few seconds ago" or "13 minutes" ago or "an hour ago"<br />
<br />
<b>If yesterday</b><br />
"Yesterday at 5:15 PM"<br />
<br />
<b>If the second parameter is pass it will use it base on <a href="http://momentjs.com/docs/#/displaying/format/">momentjs formating</a></b><br />
<br />
<b>Everything else</b><br />
Oct 16, 2014 1PMAnonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-38081776070656917222014-07-15T01:18:00.001-07:002014-07-15T01:18:37.470-07:00HowTo: Convert a given number into its ordinal value in VB.NETFound this code from <a href="http://stackoverflow.com/questions/265097/is-there-a-vb-net-function-to-format-a-number-as-an-ordinal">stackoverflow</a> and made some small change to it, this will convert any given number to its ordinal value.<br /><br />Example:<br /><span style="font-family: inherit;">Convert(1) will return 1st</span><br />
Convert(11) will return 11th<br />
Convert(12) will return 12th<br />
Convert(23) will return 23rd<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">Public Function Convert(ByVal number As Integer) As String</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Dim ones As Integer = number Mod 10</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Dim tens As Integer = Math.Floor(number / 10) / 10</span><br />
<span style="font-family: Courier New, Courier, monospace;"> If (number > 10 And number < 14) Then</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Return number.ToString() & "th"</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Else</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Select Case ones</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Case 1</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Return number.ToString() & "st"</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Case 2</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Return number.ToString() & "nd"</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Case 3</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Return number.ToString() & "rd"</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Case Else</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Return number.ToString() & "th"</span><br />
<span style="font-family: Courier New, Courier, monospace;"> End Select</span><br />
<span style="font-family: Courier New, Courier, monospace;"> End If</span><br />
<span style="font-family: Courier New, Courier, monospace;"> End Function</span>Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-88015993556338461782014-06-27T05:44:00.002-07:002014-06-27T05:44:50.998-07:00Dotnetnuke Messages and Notifications links not working properlyIt take me a week to figure this out, had to look into the source code, In our case the issue occur because we have a custom User Profile page and the Message Center page in not a child of that page. <br />
<br />
We just move the messages page under profile page and everything works properly. Also make sure you clear cache under host settings.<br />
<br />
<a href="http://www.dnnsoftware.com/answers/cid/435505">I ask a question about this on DNN Q&A</a>Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-35945964182368726282014-06-10T08:01:00.000-07:002014-06-10T08:01:07.494-07:00Free Convert VB.NET to C#, developerfusion and teletik Code ConverterI've been using <a href="http://www.developerfusion.com/tools/convert/vb-to-csharp/">developerfusion.com</a> for a long time to convert the C# code I need to VB.NET and it always work like a charm, but its been crappy lately so I tried the <a href="http://converter.telerik.com/">Code Converter provided by telerik</a> and It works perfectly.Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-72094265832355940932014-06-10T07:34:00.001-07:002014-06-10T07:34:33.988-07:00Whatever: the objects moment.js makes are not JavaScript dat...<a href="http://tom-jaeschke.blogspot.com/2013/10/the-objects-momentjs-makes-are-not.html?spref=bl">Whatever: the objects moment.js makes are not JavaScript dat...</a>: Cast them back to plain Jane dates like so: var lastHalloween = moment().subtract('year', 1).toDate();Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-61208474321624502372014-05-31T06:22:00.003-07:002014-05-31T06:22:53.992-07:00DotNetNuke and Apache Solr in action<a href="http://www.zeekbeek.com/">
<img border="0" src="http://www.zeekbeek.com/Portals/0/zeekbeek.png" />
</a>
<br />
<br />
All search functionality of <a href="http://zeekbeek.com/">zeekbeek.com</a> is powered by SOLR.<br />
<br />
Also we are using <a href="http://imakewebthings.com/jquery-waypoints/shortcuts/infinite-scroll/">jQuery Waypoints</a> for infinite scroll of search results and <a href="http://benalman.com/projects/jquery-bbq-plugin/">jQuery BBQ</a> for handing #hash.Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-80123253371375100292014-05-27T19:03:00.001-07:002014-05-27T19:05:41.588-07:00A problem occurred while trying to set the "References" parameter for the IDE's in-process compiler. Error HRESULT E_FAIL has been returned from a call to a COM component.I resolve my issue with the help from the <a href="https://connect.microsoft.com/VisualStudio/feedback/details/561664/a-problem-occurred-while-trying-to-set-the-references-parameter-for-the-ides-in-process-compiler">workaround here</a>.<br />
<br />
<blockquote class="tr_bq">
In my case it was about adding a reference to itself. Removed it and it is working fine now.</blockquote>
Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-40837627675173740902014-05-22T12:13:00.000-07:002014-05-22T12:13:36.538-07:00iCalendar ValidatorThis iCalendar Format Validator is a big help when it comes validating the content of you iCalendar file (ics)<br />
<br />
http://severinghaus.org/projects/icv/Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-7224760199982546082013-10-30T07:14:00.000-07:002013-10-30T07:16:25.886-07:00Allow Indexing Page Settings and ROBOTS Meta in DotNetNuke<div>
This is a single page settings that every DotNetNuke Admin should never forget.<br />
<br />
This setting controls whether a page should be indexed by search crawlers. It uses the INDEX/NOINDEX values for ROBOTS meta tag.</div>
<div>
<br /></div>
<div>
It is located in:<br />
<b>Page Settings > Advance Settings > Other Settings</b></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7gURUWHfd67dh1FS_PFjyg1Pl3pXne1eL6taienBdd4c7RMBorrMaxmMQF6oGEsy-0sOfxlTVGDcqnrH3Ft1hQowVgbuHKPWXzof0oMtxosDjS-F08ul5uFabiwvj0fLymU8O9B95c6Y/s1600/DNN-AllowIndexing.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7gURUWHfd67dh1FS_PFjyg1Pl3pXne1eL6taienBdd4c7RMBorrMaxmMQF6oGEsy-0sOfxlTVGDcqnrH3Ft1hQowVgbuHKPWXzof0oMtxosDjS-F08ul5uFabiwvj0fLymU8O9B95c6Y/s640/DNN-AllowIndexing.png" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br />
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-28922078016821561372013-07-15T08:47:00.001-07:002013-07-15T08:47:44.500-07:00Example on how to use dnnConfirm jQuery PluginThe JS code below will show a dnn confirm dialog upon click on any button with my-Button class. Pay attention to <b>isButton</b> option on initialization and the <b>isTrigger</b> parameter on button click.<br />
<br />
//initialization<br />
$(".my-Button").dnnConfirm({<br />
text: "Confirm Message",<br />
title: "Confirm",<br />
isButton: true<br />
});<br />
//button click handler<br />
$(".my-Button").click(function (e, isTrigger) {<br />
<br />
if (isTrigger) {<br />
// Your code here<br />
}<br />
<br />
return false;<br />
<br />
});Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com2tag:blogger.com,1999:blog-220453716412258117.post-48335736888845767062013-07-05T22:17:00.000-07:002013-07-05T22:17:43.584-07:00DotNetNuke+Apache Solr=High Speed Enterprise Search<b>We have successfully implemented <a href="http://lucene.apache.org/solr/">Apache Solr</a> as a Search Solution for <a href="http://www.dotnetnuke.com/">DotNetNuke</a>.<br /><br />Here's the summary on how we did it.</b><div>
<br /></div>
<div>
First we installed <a href="http://bitnami.com/stack/solr">BitNami Apache Solr Stack</a> to our test machine(Windows 7).<br /><br />We change the Solr Schema to fit our needs. </div>
<div>
<br /></div>
<div>
We build a DNN Scheduler to add/edit/delete documents to Solr using <a href="https://code.google.com/p/solrnet/">Solrnet</a>.<br /><br />After we are done indexing, we created a search class to query Solr Webservice using Solrnet.</div>
<div>
<br /></div>
<div>
Now we have an Intelligent and Fast Search. :)</div>
<div>
<br /></div>
<div>
FYI: Solr has a cool Dashboard that will let you check if your documents are being index properly or do some test query.<br /><br />I will find time to share actual source code in the near future.<br /><br />Regards</div>
Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-48203987218630252862013-07-05T11:57:00.000-07:002013-07-05T12:00:01.932-07:00Sorting DotNetNuke List Using Linq<b>The code below will return a list of ListEntryInfo objects sorted by value in ascending order.
:)</b><br />
<b><br /></b>
Dim lc As New DotNetNuke.Common.Lists.ListController()<br />
Dim entries = From e In lc.GetListEntryInfoItems("ListName") Order By e.Value Ascending Select eAnonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-80542752296567557892013-06-12T19:03:00.002-07:002013-06-12T19:03:23.364-07:00Check if Table Exist :TSQLIF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'TABLENAME]') AND OBJECTPROPERTY(id, N'IsTable') = 1)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>BEGIN<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> -- Your code here<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>ENDAnonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-5790185351798563572013-05-24T01:03:00.003-07:002013-05-24T01:06:29.199-07:00Another way implementing dnnConfirm<br />
// Delete review button<br />
$(".Delete-Button").dnnConfirm({<br />
text: "Confirm Message",<br />
title: "Confirm Title",<br />
isButton: true<br />
});<br />
$(document).delegate(".Delete-Button", "click", function (e) {<br />
if (e.isTrigger) {<br />
//Your code here<br />
}<br />
return false;<br />
});<br />
Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-71485715265705692422013-03-25T02:37:00.000-07:002013-03-25T02:39:14.823-07:00Disable tokeninput inside of Compose Message Dialog<p>
I implemented DotNetNuke's <b>dnnComposeMessage</b> method/plugin in one of my module and I notice that other than the contact being pre-populated, users are also allowed to add/edit contact, this is great if you want it that way, however if you don't want users to change contacts other than what you already pre-populated, then we should disable it. I can't find a method inside of <a href="http://loopj.com/jquery-tokeninput/">tokeninput</a> plugin so I use CSS to hide the close icon and input control which in turn disable add or delete of contact during compose message dialog. Below is my CSS, using facebook theme.
</p>
<p>
.composeMessageDialog fieldset .dnnFormItem .token-input-input-token-facebook input { display: none; }
.composeMessageDialog fieldset .dnnFormItem .token-input-delete-token-facebook { display: none; }
</p>Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-76560945641021697032012-09-18T21:16:00.000-07:002012-09-18T21:16:52.431-07:00dnnAlert and dnnConfirm jQuery Plugin<p>
I like the idea of using jQuery Plugins in DNN for interactive and consistent user interface which is why I digg into using dnnAlert and dnnConfirm plugins, however after a quick look on the documentation I notice the following.
</p>
<p>
<b>For dnnAlert you can't set the title.</b>
We are allowed to set the OK button text using <b>okText</b> option but not the dialog title?
</p>
<p>
<b>For dnnConfirm.</b>
This is very usefull when you just want a confirmation dialog upon click on your button or link however you can't use it like javascript confirm function or at least I don't know how to use it like below:
</p>
<p>
<b>if(confirm('Question?')){//some code}</b>
</p>Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com1tag:blogger.com,1999:blog-220453716412258117.post-63691969594970509652012-09-11T07:45:00.001-07:002012-09-11T07:48:47.075-07:00jQuery AJAX Cache Issue with IEIf you are having issue with jquery ajax api in IE where it keeps returning the same set of results over and over again. set cache option to false.
So for example instead of using
<br />
<br />
<b>$.ajax({ url: surl, dataType: 'json' }).done(function (data) { });</b>
<br />
<br />
use
<br />
<br />
<b>$.ajax({ url: surl, dataType: 'json', cache: false }).done(function (data) { });</b>
<br />
<br />
HTHAnonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-35215136660476081472012-09-10T10:02:00.002-07:002012-09-11T07:49:55.998-07:00Hide New Message Count in DotNetNuke Profile LinkIf you use a custom messaging module in dotnetnuke and don't want to see the new message count from DNN built in Messaging Module set dnnUSER skin object <b>ShowUnreadMessages</b> property to false.
<br />
<br />
Example:
<br />
<dnn:USER runat="server" id="dnnUSER" CssClass="register" ShowUnreadMessages="false" />
<br />
<br />
HTHAnonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-36091291800092158762012-08-27T03:58:00.003-07:002012-09-11T07:49:28.378-07:00Export Crystal Report to PDF using VB.Net for Download in your DotNetNuke siteThe code below will force download of PDF version of you crystal report in DotNetNuke.
This code is base on <a href="http://vb.net-informations.com/crystal-report/vb.net_crystal_report_export_pdf.htm">this article</a>.
<pre class="brush: vb.net; bloggerMode: true">
' Create a temporary filename
Dim strPDF As String = MapPath("Reports/TO" & Session.SessionID & ".pdf")
' Create report
Dim rpt As New TravelOrderList
' Set report params
'rpt.SetParameterValue("ReportTitle", "Report Title")
'rpt.SetParameterValue("ReportSubTitle", "Sub Title")
' Set report datasource
rpt.SetDataSource(ds)
</pre>
Dim CrExportOptions As ExportOptions
Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions()
Dim CrFormatTypeOptions As New PdfRtfWordFormatOptions()
CrDiskFileDestinationOptions.DiskFileName = strPDF
CrExportOptions = rpt.ExportOptions
With CrExportOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
.DestinationOptions = CrDiskFileDestinationOptions
.FormatOptions = CrFormatTypeOptions
End With
rpt.Export()
' Force download(in DNN)
FileSystemUtils.DownloadFile(strPDF)
' Delete temp file
IO.File.Delete(strPDF)
<br />
<br />
HTH
<br />
<!-- SYNTAX HIGHLIGHTER -->
<br />
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shCore.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushBash.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushCss.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushDiff.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushJScript.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushSql.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushVb.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushXml.js"></script><script type="text/javascript">SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf';SyntaxHighlighter.config.bloggerMode = true;SyntaxHighlighter.all();</script> <br />
<link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shCore.css"/><link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shThemeDefault.css" id="shTheme"/>
<br />
<!-- END SYNTAX HIGHLIGHTER -->Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0tag:blogger.com,1999:blog-220453716412258117.post-82413346010163487792012-08-14T09:56:00.002-07:002012-08-14T09:58:28.581-07:00Bind all DotNetNuke portal alias to a dropdownlist<pre class="brush: vb.net; bloggerMode: true">
ddlPortalAlias.Items.Clear()
Dim objAlias As PortalAliasCollection = PortalAliasController.GetPortalAliasLookup()
For Each obj As System.Collections.DictionaryEntry In objAlias
ddlPortalAlias.Items.Add(CType(obj.Value, PortalAliasInfo).HTTPAlias)
Next
ddlPortalAlias.SelectedValue = PortalSettings.DefaultPortalAlias
</br>
</pre>
HTH
<br />
<!-- SYNTAX HIGHLIGHTER -->
<br />
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shCore.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushBash.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushCss.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushDiff.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushJScript.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushSql.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushVb.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushXml.js"></script><script type="text/javascript">SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf';SyntaxHighlighter.config.bloggerMode = true;SyntaxHighlighter.all();</script> <br />
<link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shCore.css"/><link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shThemeDefault.css" id="shTheme"/>
<br />
<!-- END SYNTAX HIGHLIGHTER -->Anonymoushttp://www.blogger.com/profile/09875264748122163991noreply@blogger.com0