4
Answers

SSL for User Controls

accarcieri

accarcieri

20y
2.8k
1
I have a .net site which dynamically loads user controls and content based on querystring values, and it works quite nicely. I need to invoke SSL for the shopping cart features and I would like to know whether it is possible (and if so, how ) to switch SSL on as needed, depending on which user control is called. Thanks Tony
Answers (4)
0
Iftikar Hussain
NA 18.9k 275.5k 11y
Hi,
        Try like this, use unadorned:yes;

ScriptManager.RegisterStartupScript(this, typeof(Page), UniqueID, "javascript:var ans = window.showModalDialog('TransactionHistoryDetail.aspx?' + '&rowID=" + rowID + "&Type=" + OrderType + "&OrderNo=" + OrderNo + "', 'unadorned:yes;dialogWidth=1000px;dialogHeight=700px;resizable: yes;dialogLeft=' + ((screen.width - 1000) / 2) + ';dialogTop=' + (screen.height - 700) / 2 + ''); ", true);

Regards,
Iftikar