About Me
I am a Software Engineer presently working in Microsoft as vendor.The main aim of this blog is to Share my knowledge in Sharepoint,AZURE and Silverlight.
Tuesday, 28 April 2015
QR code generation from O365 SharePoint site.
Microsoft has released many new and exciting features in O365. One of my favorite feature is the ability to generate QR code (Quick response code).
If you have any document library in SharePoint online, then you can generate a QR code for a selected document. This QR code will help you to pull the document using QR code scanner from your phone or tablet.
To generate QR code, you have to select the ellipsis (3 dots) on the selected item as shown in the below image. Once you click on that, a small window will pop up and you will see a small phone icon next to hyperlink as marked in the screenshot. Click on the icon.
you will see a new tab or window opened with QR code.
Wednesday, 4 February 2015
upgrading from mvc4 webapi project to mvc5 webapi2
This really helps. Make sure you take a copy before upgrading.
How to upgrade from MVC4 and Webapi project to aspnet MVC5 and Webapi2
Tuesday, 23 December 2014
Check this out..Enjoy $5 for christmas holidays from PACKT.
$5 eBook Bonanza at PACKT. Don't miss this :)
https://www.packtpub.com/packt5dollar/?utm_source=rochelld&utm_medium=referral&utm_campaign=5D2014
https://www.packtpub.com/packt5dollar/?utm_source=rochelld&utm_medium=referral&utm_campaign=5D2014
Monday, 11 August 2014
Are you an Admin / Developer ? Are you looking for WCM concepts of SharePoint 2013 then here you go..
I've recieved this book from Publisher site(http://www.packtpub.com/application-development/sharepoint-2013-wcm-advanced-cookbook). As the book title mentioned the word WCM, This book covered pretty much what a senior sharePoint developer or admin is needed to perform their job activities as a WCM. if you are powershell guy/Admin this is the best place to compare what happens in the code side. Also, for a developer this is the one of the best book as it covers pretty much all the branding concepts using designer, Visual Studio, Infopath and out of the box features.
link to the book..
Monday, 21 July 2014
Creating a Sharepoint Glossary.
one of the person in Linkedin posted a problem.."How to create a SharePoint Glossary". Here is the solution which I've given.
Here are the ways which we can solve the problem.
1) Code 2) NoCode
Code path: we can create a custom webpart with link buttons and do a CAML query to our list and bind it to a grid on click of link button.
NoCode:
a) Query String b) Standard filters
I'm giving the steps using Standard filters.
1) Need a list with glossary items.
2) create a view which sorts by glossaryValue
3) create a calculated column which will take the first letter, Call the column name as FilterAlpha (paste this in your formula =LEFT([glossaryValue], 1)
4) create a wiki page
5) select two columns with header and footer layout.
6) Insert your list webpart in footer and select the view which you created in 2nd step.
7) Insert HTML Form Webpart in header.
8) copy paste the below code in source editor of HTML Form Webpart and modify the script tag and add the tags to the input types.
scrip.. function passAlpha(num) { document.getElementById("result").value=num; javascript:_SFSUBMIT_ } ..scrip..
input type="button" value="A" onclick="passAlpha(this.value)" input type="button" value="B" onclick="passAlpha(this.value)"
9) on the html form webpart under edit webpart select edit connections -> Provider form values to -> select your list view webpart.
10) under choose connection tab select connect type as "Get Filter Values From"
11) click on configure
12) select provider field name as "T1".
13) select consumer field name as "FilterAlpha " this is the calculated field which you created in 3rd step.
14) click on save and close page.
you should see your expected result now.. :). I did a filter by clicking on "S".
If you know Jquery and CSS you can do lot of fun things..like rendering your list view as well as styling your buttons..
Here are the ways which we can solve the problem.
1) Code 2) NoCode
Code path: we can create a custom webpart with link buttons and do a CAML query to our list and bind it to a grid on click of link button.
NoCode:
a) Query String b) Standard filters
I'm giving the steps using Standard filters.
1) Need a list with glossary items.
2) create a view which sorts by glossaryValue
3) create a calculated column which will take the first letter, Call the column name as FilterAlpha (paste this in your formula =LEFT([glossaryValue], 1)
4) create a wiki page
5) select two columns with header and footer layout.
6) Insert your list webpart in footer and select the view which you created in 2nd step.
7) Insert HTML Form Webpart in header.
8) copy paste the below code in source editor of HTML Form Webpart and modify the script tag and add the tags to the input types.
scrip.. function passAlpha(num) { document.getElementById("result").value=num; javascript:_SFSUBMIT_ } ..scrip..
input type="button" value="A" onclick="passAlpha(this.value)" input type="button" value="B" onclick="passAlpha(this.value)"
Tuesday, 15 April 2014
SharePoint 2013 Video Rendition..
After long time nearly 4 years, I've decided to start blogging..These many days I've played with different architectures, different layer communications,different technologies,communicating with ERP systems form SharePoint, ADFS 2.0 SAML tokens , MVC 4 applications, Mobile applications using JQuery mobile using MVC, Windows mobile 8.0, Windows 8 apps etc... I'm going to blog more and more information in the coming months keep watching..
SP 2013 is offering a new feature called Rendition. This is really a nice feature give a try.. :)
Friday, 2 July 2010
How to Send an Email from Microsoft Azure (cloud).
Hi, Sorry for not updating my blog these days. from past eight months I am working very less in sharepoint 2010.These days I am working more on new emerging technology "Microsoft Azure" .As we aware Azure is cloud computing.These days I am getting requests from other teams as well as from other colleagues about how to send an email from Azure.
So here are the ways I did it practically in our applications.
1)sending mail using exchange service
2)sending mail using SMTP Server
a)using service bus
b)using a windows service
3)you can also use public available mail services like LIVEID,Google
4)SMTP Relay or mail relay service(which I dont prefer as I faced lots of port issues.)
lets see one by one
easy approach to send an email from azure is using exchange service :). I prefer this approach.If the application is having any dependency on SMTP service then next two approaches can be used.
sending mail from exchange service is 4 steps.
1)Download the dll . 32bit is fine
2)Reference this dll in your project.((but make sure copylocal property set to True)
3)set the values in the service configuration.(for easy configuration)
I am using web.config in this but better to use service configuration instead of web.configuration.
<---add key="EmailDomain" value="your Domain Name"/>
<---add key="EmailUserName" value ="provide your username "/>
<---add key="EmailPwd" value="provide password "/>
<---add key="EmailID" value="provide your email ID"/>
<---add key="ExchangeserverURI" value="provide your exchange service URI"/>
4)use the below code to send an email.
try
{
string domain = WebConfigurationManager.AppSettings["EmailDomain"];
string username=WebConfigurationManager.AppSettings["EmailUserName"];
string pwd=WebConfigurationManager.AppSettings["EmailPwd"];
string email=WebConfigurationManager.AppSettings["EmailID"];
string exchangeuri=WebConfigurationManager.AppSettings["ExchangeserverURI"];
ExchangeService service = new ExchangeService();
service.Credentials = new WebCredentials(username, pwd, domain);
service.Url = new Uri(exchangeuri);
service.AutodiscoverUrl(email);
EmailMessage message = new EmailMessage(service);
message.ToRecipients.Add(e.Message.To[0].ToString());
message.From = new EmailAddress(email);
message.Subject = e.Message.Subject;
message.Body = e.Message.Body;
// The following method sends the mail and also saves a copy in the 'Sent Items' folder
message.SendAndSaveCopy();
}
That's it now you can send an email from AZURE using exchange service. :) Give a try if you are facing problems add a comment.
2)some applications depends on SMTP server.if this SMTP server resides in our intranet or company's network it is not easy to access from cloud.as the smtp is protected using firewalls and NAT's to avoid spam's or attacks by external users.
there are two ways to achieve this.
1)using service bus.
I am not going to explain it detailedly but ill give you steps how to do. if possible ill also update the code if I get some time. :)
create a wcf service which uses SMTP server and host it in IIS or windows service which reads mail message and using service bus connect to this wcf service that's it now you are good to send an email.
2)not recommended but if application is having mails to send on timely basis like daily once or for every 6 hr's some thing like this they can use this approach.
store the mail details in SQLAzure and read from sql azure using windows service and send the mails using your SMTP server.
That's it as of now these are the possibilities we have in AZURE and I did all these practically in my Azure applications.
So here are the ways I did it practically in our applications.
1)sending mail using exchange service
2)sending mail using SMTP Server
a)using service bus
b)using a windows service
3)you can also use public available mail services like LIVEID,Google
4)SMTP Relay or mail relay service(which I dont prefer as I faced lots of port issues.)
lets see one by one
easy approach to send an email from azure is using exchange service :). I prefer this approach.If the application is having any dependency on SMTP service then next two approaches can be used.
sending mail from exchange service is 4 steps.
1)Download the dll . 32bit is fine
2)Reference this dll in your project.((but make sure copylocal property set to True)
3)set the values in the service configuration.(for easy configuration)
I am using web.config in this but better to use service configuration instead of web.configuration.
<---add key="EmailDomain" value="your Domain Name"/>
<---add key="EmailUserName" value ="provide your username "/>
<---add key="EmailPwd" value="provide password "/>
<---add key="EmailID" value="provide your email ID"/>
<---add key="ExchangeserverURI" value="provide your exchange service URI"/>
4)use the below code to send an email.
try
{
string domain = WebConfigurationManager.AppSettings["EmailDomain"];
string username=WebConfigurationManager.AppSettings["EmailUserName"];
string pwd=WebConfigurationManager.AppSettings["EmailPwd"];
string email=WebConfigurationManager.AppSettings["EmailID"];
string exchangeuri=WebConfigurationManager.AppSettings["ExchangeserverURI"];
ExchangeService service = new ExchangeService();
service.Credentials = new WebCredentials(username, pwd, domain);
service.Url = new Uri(exchangeuri);
service.AutodiscoverUrl(email);
EmailMessage message = new EmailMessage(service);
message.ToRecipients.Add(e.Message.To[0].ToString());
message.From = new EmailAddress(email);
message.Subject = e.Message.Subject;
message.Body = e.Message.Body;
// The following method sends the mail and also saves a copy in the 'Sent Items' folder
message.SendAndSaveCopy();
}
That's it now you can send an email from AZURE using exchange service. :) Give a try if you are facing problems add a comment.
2)some applications depends on SMTP server.if this SMTP server resides in our intranet or company's network it is not easy to access from cloud.as the smtp is protected using firewalls and NAT's to avoid spam's or attacks by external users.
there are two ways to achieve this.
1)using service bus.
I am not going to explain it detailedly but ill give you steps how to do. if possible ill also update the code if I get some time. :)
create a wcf service which uses SMTP server and host it in IIS or windows service which reads mail message and using service bus connect to this wcf service that's it now you are good to send an email.
2)not recommended but if application is having mails to send on timely basis like daily once or for every 6 hr's some thing like this they can use this approach.
store the mail details in SQLAzure and read from sql azure using windows service and send the mails using your SMTP server.
That's it as of now these are the possibilities we have in AZURE and I did all these practically in my Azure applications.
Subscribe to:
Posts (Atom)