2010-06-30

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Profiling Sharepoint Apps


Using full trust in asp.net

2010-06-29

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

E-Commerce As A Service

Zuora and the Subscription Economy, By Paul Greenberg

About Zuora
`The Z-Commerce Platform is a turnkey commerce-as-a-service solution that makes it easy to plug billing, payment, and subscription management services into your application with just a few lines of code. The Z-Commerce Platform gives developers the full power of Zuora's award winning Z-Billing, Z-Payments, and Z-Force applications via an open API, making it easy for developers to monetize subscription businesses."
Quoted from Frequently Asked Questions About Zuora's "The Z-Commerce Platform"


Commerce Server 2009 Articles

2010-06-25

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

reverse engineering with reflector on x64

Did you know that there is an add in, called deblector, for reflector to do debugging?
Reflector + Deblector + x64 = 0x80131C30


2010-06-24

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Application Pool settings, Sharepoint, IIS

Sharepoint 2007 Application pool settings recommendations

2010-06-18

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

hyperlink field inside another hyperlink field, does not render at all!

/ hyperlinkControl_A CustomControl_A
where CustomControl_A has hyperlinkControl_B and has CustomControl_B in it, then the control is not loaded!!!
> Maybe in future there will be development environments which check the browser's rendering of the code that you have written. If browser will not render your code
or the ASP.NET engine will not execute your code because of a HTML restriction, it will warn you in compile time, or in runtime. Currently ASP.NET runtime does not
render the inner control. Since there will be two hyperlink control inside each other...

Howto use resource file (resx) strings in javascript alert messages

Basically, put the string in a HtmlInputHidden tag, and assign the hidden fields value in Page_Load event. Then you can utilize this field in client side using your javascript code.

another technique
ref:

2010-06-17

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Microsoft Commerce Server 2009 Template Pack for SharePoint 2010

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=cfd0c459-5a11-4de6-9085-52d59e8d38e6

2010-06-14

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Capturing Output from ASP.Net Pages

ref http://www.west-wind.com/weblog/posts/481.aspx

///

/// Overridden to handle Confirmation of the order by

/// capturing the HTTP output and emailing it.

///

///

protected override void Render(HtmlTextWriter writer)

{

// *** Write the HTML into this string builder

StringBuilder sb = new StringBuilder();

StringWriter sw = new StringWriter(sb);

HtmlTextWriter hWriter = new HtmlTextWriter(sw);

base.Render(hWriter);

// *** store to a string

string PageResult = sb.ToString();

// *** Write it back to the server

writer.Write(PageResult);

}

2010-06-11

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Setting the default Button for a TextBox in ASP.NET

EmailTextBox.Attributes.Add("onKeyPress", "javascript:if (event.keyCode == 13) __doPostBack('" + LoginButton.UniqueID + "','')");

2)
ref: http://weblogs.asp.net/rajbk/archive/2003/12/11/setting-the-default-button-for-a-textbox-in-asp-net.aspx

function clickButton(e, buttonid){

var evt = e ? e : window.event;

var bt = document.getElementById(buttonid);

if (bt){

if (evt.keyCode == 13){

bt.click();

return false;

}

}

}


//code behind
TextBox1.Attributes.Add("onkeypress", "return clickButton(event,'" + Button1.ClientID + "')");