<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6540754363020716044</id><updated>2024-09-24T18:19:00.488-07:00</updated><title type='text'>Microsoft Software Development You Can Use</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chriswarin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://chriswarin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ChrisWarin</name><uri>http://www.blogger.com/profile/12281368851508760588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6540754363020716044.post-6947075896661389257</id><published>2011-04-07T13:15:00.000-07:00</published><updated>2011-04-09T21:09:25.951-07:00</updated><title type='text'>Using Exchange Web Services API to create calendar email reminders (similar to google calendar e-mail notification reminders)</title><content type='html'>One of the coolest and simplest ideas for company calendar alerts is implemented in gmail e-mail calendar reminders. Before moving to Exchange 2010, our company briefly used a shared gmail calendar&amp;nbsp;for company&amp;nbsp;wide&amp;nbsp;events, employee appointments, employee vacation and employee work from home days.&amp;nbsp;Natively Exchange doesn&#39;t support alerts for&amp;nbsp;public calendars and also doesn&#39;t support e-mail calendar reminders. &lt;br /&gt;
&lt;br /&gt;
After digging around the web I created a script which utilizes the Exchange web service API, Powershell and a scheduled task. I borrowed heavily from this script &lt;a href=&quot;http://gsexdev.blogspot.com/2009/08/twitter-your-exchange-calendar.html&quot;&gt;http://gsexdev.blogspot.com/2009/08/twitter-your-exchange-calendar.html&lt;/a&gt;. After some exchange mailing list configurations,&amp;nbsp; a little tweaking of the twitter script, and adding a function for email,&amp;nbsp;I was able to&amp;nbsp;come up with something that seems to work pretty well. &lt;br /&gt;
&lt;br /&gt;
In addition to e-mailed reminders you can also&lt;b&gt; share the CompanyReminder&amp;nbsp; calendar to ALL of your employees and use it as a company calendar.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To enter a&amp;nbsp;CompanyReminder&amp;nbsp;event&amp;nbsp;the user only has to do the following:&lt;br /&gt;
&lt;br /&gt;
1.&amp;nbsp;Create the appointment&lt;br /&gt;
2.&amp;nbsp;Add &lt;b&gt;CompanyReminder&lt;/b&gt;&amp;nbsp; as the recipient &lt;br /&gt;
3.&amp;nbsp;And save &lt;br /&gt;
&lt;br /&gt;
Every morning around 8am&amp;nbsp;the script runs&amp;nbsp;and pulls all of&amp;nbsp;the upcoming appointments for that day and sends it to everyone in an email.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;b&gt;Things you will need to configure in Exchange:&lt;/b&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;Install the&amp;nbsp; Exchange web service API from here &lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1&quot;&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;You will need 1 exchange e-mail account, moving forward this account will be referred to as the &lt;b&gt;CompanyReminder&lt;/b&gt; account. &lt;/li&gt;
&lt;ul&gt;&lt;li&gt;The sole purpose of this account is for receiving company reminders&lt;/li&gt;
&lt;li&gt;The CompanyReminder account is setup to automatically send a copy of every email to all employees and also to automatically accept all&amp;nbsp; calendar invites. &lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;You will need a groupmailing list setup to email the intended employees (for our company it was a company wide email list), moving forward this group email list as&amp;nbsp;the &lt;b&gt;CompanyWide&lt;/b&gt; e-mail list.&lt;/li&gt;
&lt;/ol&gt;&lt;b&gt;The Script:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;$MailboxName = CompanyReminders@yourcompany.com&lt;br /&gt;
&lt;br /&gt;
function SendCompanyEmail($PostString){&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $smtp = New-Object System.Net.Mail.SMTPClient -ArgumentList&amp;nbsp;MAILSERVERIP&amp;nbsp;&amp;nbsp; $smtp.Send($MailboxName, &#39;CompanyWide@yourcompany.com&#39;,&#39;Upcoming&amp;nbsp;&amp;nbsp;Company Reminders&#39;, $PostString)&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$dllpath = &#39;C:\Program Files\Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll&#39;&lt;br /&gt;
[reflection.assembly]::loadfile($dllpath) &lt;br /&gt;
$service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2007_SP1)&lt;br /&gt;
&lt;br /&gt;
$uri=[system.URI] (&quot;https://dayman.cyber-balance.com/ews/exchange.asmx&quot;)&lt;br /&gt;
$service.Url = $uri&lt;br /&gt;
$service.Credentials = New-Object System.Net.NetworkCredential(CompanyReminder@yourcompany.com,&quot;CompanyReminderPASSWORD&quot;,&quot;COMPANYDOMAIN&quot;)&lt;br /&gt;
&lt;br /&gt;
$folderid = new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Calendar,$MailboxName)&lt;br /&gt;
$CalendarFolder = [Microsoft.Exchange.WebServices.Data.CalendarFolder]::Bind($service,$folderid)&lt;br /&gt;
&lt;br /&gt;
$cvCalendarview = new-object Microsoft.Exchange.WebServices.Data.CalendarView([System.DateTime]::Now, [System.DateTime]::Now.AddDays(14))&lt;br /&gt;
$cvCalendarview.MaxItemsReturned = 200;&lt;br /&gt;
$cvCalendarview.PropertySet = new-object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::FirstClassProperties)&lt;br /&gt;
&lt;br /&gt;
$frCalendarResult = $CalendarFolder.FindAppointments($cvCalendarview)&lt;br /&gt;
$appointmentString = &quot;&quot;&lt;br /&gt;
foreach ($apApointment in $frCalendarResult.Items){&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if ($apApointment.Sensitivity -ne [Microsoft.Exchange.WebServices.Data.Sensitivity]::Private -band $apApointment.IsReminderSet -eq $true){&lt;br /&gt;
#$ReminderSendTime = $apApointment.Start.AddMinutes(-$apApointment.ReminderMinutesBeforeStart)&lt;br /&gt;
$ReminderSendTime = $apApointment.Start &lt;br /&gt;
&lt;br /&gt;
if ($ReminderSendTime -ge [System.DateTime]::Now -band $ReminderSendTime -le [System.DateTime]::Now.AddMinutes(1500) -band !$apApointment.IsCancelled )&lt;br /&gt;
{&lt;br /&gt;
$appointmentString = $appointmentString + $apApointment.Organizer.Name + &quot; &quot; + $apApointment.Organizer.Address + &quot;`n`n&quot; + $apApointment.Subject.ToString() + &quot;`n`nStarts : &quot; + $apApointment.Start.ToString(&quot;ddd MM/dd/yyyy - HH:mm:ss&quot;) + &quot;`n`Ends : &quot; + $apApointment.End.ToString(&quot;ddd MM/dd/yyyy - HH:mm:ss&quot;) + &quot;`n`n&quot; + $apApointment.Location &lt;br /&gt;
&lt;br /&gt;
if(!$apApointment.Body.Text -eq &quot;&quot;)&lt;br /&gt;
{&lt;br /&gt;
$appointmentString = $appointmentString + &quot;`n`n&quot; + $apApointment.Body.Text&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$appointmentString = $appointmentString + &quot;`n`n---------------------------------------------------`n`n&quot; &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
if(!$appointmentString -eq &quot;&quot;)&lt;br /&gt;
{&lt;br /&gt;
SendCompanyEmail($appointmentString)&lt;br /&gt;
}&lt;/blockquote&gt;&lt;b&gt;Script Schedule Execution Steps:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Take the above script and save is as a c:\Scripts\CompanyReminder.ps1 file (powershell).&lt;br /&gt;
&lt;br /&gt;
Setup a windows scheduled task to run whenever you want the daily notification e-mail sent with the following command Powershell.exe c:\Scripts\CompanyReminder.ps1&lt;br /&gt;
&lt;br /&gt;
And that&#39;s it!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sample E-Mail:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;---------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Created By: CompanyReminders &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Testing 8am CompanyReminder&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Starts : Fri 04/08/2011 - 10:30:00&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Ends : Fri 04/08/2011 - 11:00:00&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Location: My Fun Location&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;---------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
References:&lt;br /&gt;
&lt;br /&gt;
Twitter Exchange Calendary Reminder with powershell &lt;br /&gt;
&lt;a href=&quot;http://gsexdev.blogspot.com/2009/08/twitter-your-exchange-calendar.html&quot;&gt;http://gsexdev.blogspot.com/2009/08/twitter-your-exchange-calendar.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dd633710%28v=exchg.80%29.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/dd633710%28v=exchg.80%29.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=micros04-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0596805489&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=micros04-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0735623929&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=micros04-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0596801505&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://chriswarin.blogspot.com/feeds/6947075896661389257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chriswarin.blogspot.com/2011/04/using-exchange-web-services-api-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/6947075896661389257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/6947075896661389257'/><link rel='alternate' type='text/html' href='http://chriswarin.blogspot.com/2011/04/using-exchange-web-services-api-to.html' title='Using Exchange Web Services API to create calendar email reminders (similar to google calendar e-mail notification reminders)'/><author><name>ChrisWarin</name><uri>http://www.blogger.com/profile/12281368851508760588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6540754363020716044.post-790578743701680101</id><published>2009-06-18T20:46:00.000-07:00</published><updated>2011-04-07T20:55:53.659-07:00</updated><title type='text'>ASP Server.Execute vs Include, passing variables and dynamically loading different pages</title><content type='html'>Sometimes you have to work with legacy applications that utilize asp (classic) vb from the 90’s (ahh the days of .com where the internet was supposed to make everyone a millionaire and retire at 30).&lt;br /&gt;
&lt;br /&gt;
Anyways…&lt;br /&gt;
So here is the issue I came across in ASP VB regarding dynamic layouts. The basic issue is that the client wants to make a template for the application so that it looks like their own website. Great idea, just swap out the include header and footer in your code right (hopefully you created include files for your header and footer in your application layout)? problem solved.&lt;br /&gt;
&lt;br /&gt;
But lets take this a step further. Now that we know this is something that can happen sales/marketing will probably jump on this idea and say that the application can be customized to look like your website. Thinking like a developer (aka try to automate, reduce redundant work and save your sanity) rather then having to modify and maintain a ton of different client’s applications with the same functionality but slightly different HTML, why not create a template type of framework so that the application could read different templates dynamically without the need of developing the custom HTML for each page. Easy right? Just have some code be able to dynamically change the header and footer files?&lt;br /&gt;
&lt;br /&gt;
In ASP.NET with the advent of usercontrols and Masterpages it gave the developer the opportunity to really make the website content layout dynamic and programmable. Basically the ability to swap different templates, control, html etc… in different areas programatically with great ease.&lt;br /&gt;
&lt;br /&gt;
In ASP VB you cannot change the include file programatically. This is due to the way asp read include files. It processes the include first then executes the asp code. Basically you must have a hardcoded file in the include no variables.&lt;br /&gt;
&lt;br /&gt;
This will NOT work:&lt;br /&gt;
&lt;br /&gt;
dim FileToInclude&lt;br /&gt;
FileToInclude = “header.asp”&lt;br /&gt;
&lt;!–#include virtual=FileToInclude –&gt;&lt;br /&gt;
&lt;br /&gt;
Well shoot, that means you can’t change the includes by coding. Well there is another thing that will solve this issue (although with a problem), The Server.Execute operation.&lt;br /&gt;
&lt;br /&gt;
This WILL work:&lt;br /&gt;
&lt;br /&gt;
dim FileToInclude&lt;br /&gt;
FileToInclude = “header.asp”&lt;br /&gt;
Server.Execute(”FileToInclude”)&lt;br /&gt;
&lt;br /&gt;
Great right?&lt;br /&gt;
Well one major problem. Any page specific variables (ex. NOT application , session)  that exists before the execute will not be passed.&lt;br /&gt;
&lt;br /&gt;
You will not be able to see the the LookAtMe variable in the FileToInclude asp page&lt;br /&gt;
&lt;br /&gt;
LookAtMe = false&lt;br /&gt;
FileToInclude = “header.asp”&lt;br /&gt;
Server.Execute(”FileToInclude”)&lt;br /&gt;
The only work around I found was to use a session variable (I know very very bad practice).&lt;br /&gt;
&lt;br /&gt;
Why would I care about passing the variable? Well suppose you have a variable that is on the top of each page that contains a number that is critical to setting something in the header.asp file. For example maybe a flag that states whether part of the menu should be shown if you are an Admin or a User for the application.&lt;br /&gt;
&lt;br /&gt;
After this fun little exercise it gave me a great appreciation for MasterPages and UserControls . When usercontrols first came out I was wondering what was the reason for their use, why not use an include, but here is a perfect example of why to use UserControls and MasterPages.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://rcm.amazon.com/e/cm?t=micros04-20&amp;o=1&amp;p=8&amp;l=bpl&amp;asins=B0043D2E0O&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr&quot; style=&quot;align:left;padding-top:5px;width:131px;height:245px;padding-right:10px;&quot;align=&quot;left&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://chriswarin.blogspot.com/feeds/790578743701680101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chriswarin.blogspot.com/2011/04/asp-serverexecute-vs-include-passing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/790578743701680101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/790578743701680101'/><link rel='alternate' type='text/html' href='http://chriswarin.blogspot.com/2011/04/asp-serverexecute-vs-include-passing.html' title='ASP Server.Execute vs Include, passing variables and dynamically loading different pages'/><author><name>ChrisWarin</name><uri>http://www.blogger.com/profile/12281368851508760588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6540754363020716044.post-1683538151403169595</id><published>2009-04-07T20:59:00.000-07:00</published><updated>2011-04-08T06:34:26.441-07:00</updated><title type='text'>C# bool and Javascript Boolean True vs true</title><content type='html'>A little tid bit, in JavaScript a boolen is true while in C# it is True&lt;br /&gt;
&lt;br /&gt;
When writing JavaScript from C# you must do this&lt;br /&gt;
&lt;br /&gt;
strScript.Append(&quot;var IsSSL=&quot; + this.m_oReportData.ReturnValueT.IsSSL.ToString().ToLower() + &quot;;&quot;);&lt;br /&gt;
&lt;br /&gt;
Note that you must do ToString().ToLower() or else javascript craps out and doesn’t know what True means.</content><link rel='replies' type='application/atom+xml' href='http://chriswarin.blogspot.com/feeds/1683538151403169595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chriswarin.blogspot.com/2009/04/c-bool-and-javascript-boolean-true-vs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/1683538151403169595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/1683538151403169595'/><link rel='alternate' type='text/html' href='http://chriswarin.blogspot.com/2009/04/c-bool-and-javascript-boolean-true-vs.html' title='C# bool and Javascript Boolean True vs true'/><author><name>ChrisWarin</name><uri>http://www.blogger.com/profile/12281368851508760588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6540754363020716044.post-2345508958586045570</id><published>2009-04-07T20:56:00.000-07:00</published><updated>2011-04-07T20:58:50.456-07:00</updated><title type='text'>SourceSafe saves SQL Stored Procedures as Binary</title><content type='html'>For some reason Source Safe only works with ASCII. SQL Manager 2005 by default saves everything as UNICODE (The standard) but source safe cannot recognize this. In order to fix this you must do the following:&lt;br /&gt;
&lt;br /&gt;
The issue is that sql manager saves everything in UNICODE format by default. This is an issue because source safe doesn’t accept Unicode and saves the sql file as binary. When using sql manager and saving a sql file be sure to do save encoding choose US acsii.&lt;br /&gt;
&lt;iframe src=&quot;http://rcm.amazon.com/e/cm?t=micros04-20&amp;o=1&amp;p=8&amp;l=bpl&amp;asins=1930919050&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr&quot; style=&quot;align:left;padding-top:5px;width:131px;height:245px;padding-right:10px;&quot;align=&quot;left&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://chriswarin.blogspot.com/feeds/2345508958586045570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chriswarin.blogspot.com/2009/04/sourcesafe-saves-sql-stored-procedures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/2345508958586045570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6540754363020716044/posts/default/2345508958586045570'/><link rel='alternate' type='text/html' href='http://chriswarin.blogspot.com/2009/04/sourcesafe-saves-sql-stored-procedures.html' title='SourceSafe saves SQL Stored Procedures as Binary'/><author><name>ChrisWarin</name><uri>http://www.blogger.com/profile/12281368851508760588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>