Category Archives: General

Post Data using ASP.NET Web Browser Control

Hello People,

Its almost 2 AM here at my place, need a sound sleep from so many days but before that let me share this trick with you all.

Have you ever used ASP.NET Web Browser for your application, give it a try! its very useful. It really helped me sort out a big problem in one of my application where I previously was using HttpWebRequest but I got stuck when the page I was posting data to used a cookie checking before processing any request and the cookie was created using javascript.

As far as from my research I have found you cannot fire a javascript code on a page using HttpWebRequest, please correct me if I am wrong anywhere, anyways so this was my problem. Finally i came through Web Browser control and gave it a try. Because it works similar to any browser, client side script (javascript) aslo worked fine in it 🙂

Here is a small excerpt from my code

AxWebBrowser wb = new AxWebBrowser ();
object vPost = null;
object vHeaders = null;
object obj = null;
object url = “”;
object cPostData = null;

cPostData = “var1=data1&var2=datra2&var3=data3&var4=data4”;

vHeaders = “Content-Type: application/x-www-form-urlencoded” + Convert.ToChar(10) + Convert.ToChar(13);
(You can add other headers as required)

vPost = ASCIIEncoding.ASCII.GetBytes((string)cPostData);
wb.Navigate2(ref url, ref obj, ref obj, ref vPost, ref vHeaders);

This is all it takes to post data programmatically to a page using Web Browser control in you desktop application.

Hope this helps you, if you have any queries please feel free to ask.

Infusionsoft for Email Marketing, User Management, Shopping Cart & Affiliate Program

These days I am playing around with a nice tool – “Infusionsoft“, so thought of sharing with all of you.


Infusionsoft is a Customer Relationship Management tool that offers various Email Marketing techniques along with Prospect/User Data Management, also Shopping Cart and Affiliate/Referral Program Tool for your business. It is a web-powered software program that puts your marketing, sales, and customer management processes on autopilot. Easy to use and powerful enough to help you grow your business fast.

Features of  Infusionsoft

  • Email Marketing: Lets you expand the range of traditional email marketing, and combine it with a contact manager to tell you know EVERYTHING about your customers and prospects. With that kind of insight, you can easily deliver perfectly tailored messages at each step of the buying process. Allows you to setup automatic follow up emails. Features various useful email templates.
  • Customer Relationship Management: Allows you to store all your leads, prospects, and customers in a single, centralized database. Track every time someone opens an email, clicks a link, or takes any other action. Use that intel to create a targeted list for your next campaign so you’re better prepared to close the deal.
  • Shopping Cart: Offers you to sell your products and services online and let your customers checkout with our shopping cart. You can either host your store with our built in web store or you can easily integrate your own web store to work with our check out process.
  • Affiliate/Referral Program:Let other people sell stuff for you.Allows you to track who is referring leads and sales and how much commissions they have earned. You can create multiple tiers of commissions and make a lot of money.

All this features, ease of use and integration makes Infusionsoft a powerful multipurpose tool for you business. Its offers a short period trial package, so no need to immediately shoot your guns out at it, enjoy the trial package first.

Website Down?? – Try

Is your website down? Are your clients complaining about your website being not available during peak business hours? Did you miss an important demonstration ? All this may cost you heavy losses or earn bad reputation, why taking a chance, try APlusMonitoring.

APlusMonitoring is an eco friendly held company. Their goal is to help companies and individual maximize profitability of their web applications by ensuring 24/7 uptime and performance integrity.

It provides multiple green monitoring servers around the world, that run protocol based tests on your website at specific intervals every (3, 5, 15, 30 ,60 minutes) 24 hours per day, 7 days per week, 365 days per year to ensure that your customers and users can reach your website.

I personally am using this monitoring service,  it immediately alerts me via sms or email whenever my website goes down or is unreachable so that I can take quick action and stop any further loss 🙂

APlus Monitoring has given me total assurance that my website is available %100 of the time.

Post Data from SWF to ASPX file

Hi all,

Few days back I was working on an application where i needed to post shopping cart data from swf to aspx page.

Sample codes are available over the internet to post data from swf but you never get “ready to use code”  all the time.

I was trying to post data in XML format and there was a catch in case of aspx files that i did not notice.

I was getting “HTTP Error 500 Internal server error” every time my swf posted data to aspx file. After some research I got the reason.

I missed ValidateRequest=”false” on the Page directive of the aspx page i was trying to POST data to, finally i succeeded 🙂

Here is an excerpt from my code

public function sendOrder(items:String):Void


var reply_lv = new LoadVars();

reply_lv.replyTo =””;

var send_lv = new LoadVars();

send_lv.xmlData = items;

send_lv.sendAndLoad(“”, reply_lv, “POST”);

reply_lv.onLoad = function(Sucess){






{“Sorry! Failed to send your order this time. Please try again.”);