Posted in ASP.NET on May 16th, 2008 No Comments »
Mike Volodarsky (a program manager in the IIS team) wrote a great post about Breaking Changes for ASP.NET 2.0 applications running in Integrated mode on IIS 7.0
It is definitely worth reading it!
ASP.NET, IIS
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Lance Fisher has made an update to jQuery for Intellisense in Visual Studio 2008
Click here to read about it and download jQuery with the Intellisense updates.
JavaScript, jQuery
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET on April 17th, 2008 No Comments »
protected void Button1_Click(object sender, EventArgs e)
{
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");
Response.Charset = String.Empty;
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter sw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(sw);
GridView1.RenderControl(hw);
Response.Write(sw.ToString());
Response.End();
}
ASP.NET, excel, grid view
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET, JavaScript on May 1st, 2007 7 Comments »
To open a page in new window with ASP.NET 2.0 button PostBackURL property you have to set the FROM’s target to "_blank".
Page.Form.Target = "_blank";
Or to use the following JavaScript code:
<script type="text/javascript"> var sFormID = ‘<%=Page.Form.ClientID%>’; var oForm = document.getElementById(sFormID); oForm.target = ‘_blank’; </script>
ASP.NET, PostBackURL
Share and Enjoy:
These icons link to social bookmarking sites where readers […]
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET on April 23rd, 2007 3 Comments »
Have you tried using JavaScript confirm() function in ASP.NET Button, LinkButton or ImageButton client onclick property?
<asp:LinkButton ID="lbtnDelete" runat="server" CommandName=’DeleteItem’ Text=’Delete’ OnClientClick="confirm (’Are you sure you want to\ndelete this item?’);" ></asp:LinkButton>
But even if you click OK in the confirm dialog the page is not submited because the next JavaScript code for submitting the page (like […]
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET on April 19th, 2007 3 Comments »
Recently I found new bug in MS WebResource.axd javascript. The problem is that when using a browser like Firefox and a multiline textbox is put inside panel with DefaultButton set, pressing the enter button while editing text in the textbox submits the form instead of going to new line. The fix that I’ve found is this […]
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET, .NET on March 12th, 2007 7 Comments »
Creating thumbnails with .NET is really simple task. You have to call only one method Image.GetThumbnailImage(). The problem is that the quality of the created image is really poor. So I’ve started googling around and the result is this GenerateImageThumbnail() function:
public static void GenerateImageThumbnail(Stream streamImage, string sThumbnailImagePath, int nMaxWidth, int nMaxHeight) { Image oImage […]
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET, Design Patterns on January 17th, 2007 No Comments »
Overview
The Web Client Software Factory provides an integrated set of guidance that assists architects and developers in creating composite Web client applications. The application blocks, software factory includes reference implementation, how tos, patterns, and Visual Studio .NET extensions.
System Requirements
Supported Operating Systems: Windows Server 2003; Windows XP
Microsoft .NET Framework 2.0Microsoft .NET Framework 3.0Visual Studio 2005 extensions […]
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET, SQL, MS SQL Server on November 23rd, 2006 2 Comments »
This function uses NEWID() function to create a random password with 8 symbols length:
DECLARE @generated_password varchar(8) SET @generated_password = LEFT(CONVERT(varchar(255), NEWID()), 8 )
SELECT @generated_password
MS SQL Server, T SQL
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in ASP.NET, JavaScript on November 13th, 2006 No Comments »
"Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which allow malicious web users to inject HTML or client-side script into the web pages viewed by other users. An exploited cross-site scripting vulnerability can be used by attackers to bypass access controls such as the same origin policy. Recently, […]
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.