Friday, July 25, 2008
Win Help & Html
http://helpware.net/htmlhelp/basics.htm
http://www.codeplex.com/SandAssist/Wiki/View.aspx?title=Sandcastle%20Viewers&referringTitle=Home
Monday, July 14, 2008
Class MSComCtl2.DTPicker of control dtStart was not a loaded control class
Class MSComCtl2.DTPicker of control dtStart was not a loaded control class
Locate the file MSCOMCT2.OCX in the drive and use REGSVR32 to register it will fix the issue.
Monday, July 07, 2008
Ajax Progress update end request
script type="text/javascript"
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequest);
var postBackElement;
function InitializeRequest(sender, args) {
if (prm.get_isInAsyncPostBack())
{
args.set_cancel(true);
}
postBackElement = args.get_postBackElement();
if (postBackElement.id == 'ButtonTrigger')
{
$get('UpdateProgress1').style.display = "block";
}
}
function EndRequest (sender, args) {
if (postBackElement.id == 'ButtonTrigger')
{
$get('UpdateProgress1').style.display = "none";
}
}
function AbortPostBack() {
if (prm.get_isInAsyncPostBack()) {
prm.abortPostBack();
}
}
/ script
http://www.asp.net/ajax/documentation/live/ViewSample.aspx?sref=UpdateProgressOverview2
Download File with ajax
script language="javascript"
// Get a PageRequestManager reference.
var prm = Sys.WebForms.PageRequestManager.getInstance();
// Hook the _initializeRequest event and add our own handler.
prm.add_initializeRequest(InitializeRequest);
function InitializeRequest(sender, args)
{
// Check to be sure this async postback is actually
// requesting the file download.
if (sender._postBackSettings.sourceElement.id == "DownloadFile")
{
// Create an IFRAME.
var iframe = document.createElement("iframe");
// Get the desired region from the dropdown.
var region = $get("Region").value;
// Point the IFRAME to GenerateFile, with the
// desired region as a querystring argument.
iframe.src = "GenerateFile.aspx?region=" + region;
// This makes the IFRAME invisible to the user.
iframe.style.display = "none";
// Add the IFRAME to the page. This will trigger
// a request to GenerateFile now.
document.body.appendChild(iframe);
}
}
/script
http://encosia.com/2007/02/23/ajax-file-downloads-and-iframes/
Export Excel with custom mode
1) We need to Instantiate a workbook object:
WorkBook wbk = new WorkBook();
2) Set the ExportMode of the Exporter to Custom:
UltraWebGridExcelExporter1.ExportMode = Infragistics.WebUI.UltraWebGrid.ExcelExport.ExportMode.Custom;
3) Add a Worksheet to the Workbook:
wbk.Worksheets.Add("Grid One");
4) Use the Export Method of the Exporter to Export the UltraGrid to the Worksheet:
this.UltraWebGridExcelExporter1.Export(this.UltraWebGrid1, wbk);
5) Populate an Excel object in memory; the Excel object is then persisted as an output stream:
MemoryStream stream = new MemoryStream();
6) Write the workbook "wbk" into our newly created stream
wbk.Save(stream);
7) Create a Byte[ to contain the stream:
Byte[ bytearray = (Byte[)Array.CreateInstance(typeof(byte),stream.Length);
8) Read the stream into the Byte[:
stream.Read (bytearray, 0, (int)stream.Length);
9) Create a new StreamMemoryStream ms = new MemoryStream(bytearray)
http://news.infragistics.com/forums/t/8775.aspx
Friday, July 04, 2008
The server returned content type text/html; charset=utf-8, which is not supported
The server returned content type text/html; charset=utf-8, which is not supported
My Fixed solution:
Connect to Team Foundation Server with vs2008 and get specific version with force to overwrite option and then close vs2008. Open with vs2005 again, the check out and check in will work.
Some solution from MSN and Post
http://support.microsoft.com/kb/950597
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2582689&SiteID=1
1. Login on the App - Tier,
2. Open the IIS management.
3. In Internet Services Manager, right-click "Team Foundation Server" and go to "Properties" => "HTTP Headers".
4. Check the 'Custom Http Headers group'.
Make sure there is only one header ---"ASP.NET".
5. Also check the Http Headers of the 'VersionControl' virtual directory under the Team Foundation Server site.
| Reactions: |
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
Use the following statement will fix the error.
Resoponse.Redirect(url,false);