Category: Web programming

Updating Campaign Member using Salesforce API and C#

Posted by Ruben Canton on February 2, 2012 at 12:45 pm
categories Web programming

Well, if you check at Salesforce API documentation and follow their tutorial to connect to SF database and request data, everything should be fine. The API its pretty flexible and solid. But, once you get to the update point you may find some problem…
I connected to Salesforce and requested my CampaignMember, loading it into an [...]

 

Embedding images in an Email sent by ASP.Net Server

Posted by Ruben Canton on January 11, 2012 at 11:49 am
categories Web programming

If you want to embed your images in an email sent using ASP.Net server instead than using URLs you can use an AlternateView and use the mime standard to embed them:

using System.Net.Mail;

protected void SendBTN_Click(object sender, EventArgs e) {

// Send [...]

 

How can I force a page jump in HTML printing?

Posted by Ruben Canton on December 8, 2011 at 11:40 am
categories Web programming, Web standards

If you would like to decide when the page will break and the next one will be started when your web page is printed you can use three CSS2.0 styles to set this “jump”.

page-break-before: Sets the element page break behavoir before the element starts.
page-break-inside: Lets you set that the page break behavior has to be [...]

 

Adding an HTTP Handler to manage Images requests in .Net

Posted by Ruben Canton on September 15, 2011 at 11:32 pm
categories Web programming

This time I found myself in a very interesting challenge. We store user profile and login images in a server folder and users update their images as they need. Sometimes, when you make a release, it is just better to remove everything and paste the new version (just in case some old file remains on [...]

 

Using global objects in your page with a Master Page

Posted by Ruben Canton on September 7, 2011 at 8:37 pm
categories Web programming

MasterPages are very useful to set the site structure like a header and footer, but, they can also help managing authorization or global issues of the site just declaring the needed variables on it and using them, if necessary, from the content pages or user controls. Let’s see this with an example, imagine we need [...]

WordPress Themes