binzthomas.wordpress.com
September | 2008 | Silent Killer
https://binzthomas.wordpress.com/2008/09
September 10, 2008 — binzthomas. Most of the time we came across using the ToolTips. In .net most of the controls have ToolTip property. However one disadvantage you find in this tooltip is that it won’t persist for a long time. It will appear for a short time when you mouse hover on the particular control. Here we are going to implement a simple JavaScript ToolTip:. Here i am demonstrating a ToolTip for a Label control and a Button control. Inside the head tag add the JavaScript. Add the below span tag ...
binzthomas.wordpress.com
May | 2008 | Silent Killer
https://binzthomas.wordpress.com/2008/05
Limiting text length in GridView-Asp.Net 2.0. May 23, 2008 — binzthomas. How can we limit the text length of an item in the gridview:. For this we can use a helper function which will limit the given text to the specified length and return. Go through the code snippet:. The helper function: public static string Limit. Posted in Asp.net. Limit text length in gridview. Create a free website or blog at WordPress.com. Enter your email address:. Join 8 other followers. Blog at WordPress.com.
binzthomas.wordpress.com
September | 2010 | Silent Killer
https://binzthomas.wordpress.com/2010/09
Critical Vulnerability in ASP.Net. September 24, 2010 — binzthomas. A major security vulnerability was discovered in ASP.net last week and Microsoft has released a workaround to fix this issue. Using this vulnerability a hacker can gain access to any files in a web server which includes web.config file which mostly contains sensitive data. I would recommend all of those who are working on ASP.Net application to read this:. Posted in Asp.net. Tags: Vulnerability in ASP.Net. Blog at WordPress.com.
binzthomas.wordpress.com
November | 2008 | Silent Killer
https://binzthomas.wordpress.com/2008/11
Retrieving Image from database and Image resizing. November 28, 2008 — binzthomas. In this post, we will see how to retrieve image(BLOB data) saved in SQL server and display in an image control in the web page. In addition to retrieving image from the SQL server, we will resize the image so that it will keep its preportional width and height. Assume we need to disply the image in an image control ‘ imgUserImage. 8216; in a page, say MyPage.aspx. To set the ImageUrl. Byte[] functionReturnValue = null;.
binzthomas.wordpress.com
July | 2008 | Silent Killer
https://binzthomas.wordpress.com/2008/07
Client Machine Date and Time. July 30, 2008 — binzthomas. Some times we need to find out the client’s machine time or date or both. We may need to display the date/time in the browser, or need to display the appropriate welcome wish, like “Good Morning” or “Good After Noon” etc. Getting the Client’s machine date and times is very easy and it all need to write a small JavaScript function. The following example will display the current date and time in the two lable controls. Head runat=”server”. DateTime ...
binzthomas.wordpress.com
June | 2009 | Silent Killer
https://binzthomas.wordpress.com/2009/06
June 10, 2009 — binzthomas. Microsoft’s new search engine ‘ Bing. 8216; unveiled by Microsoft CEO Steve Ballmer on May 28, 2009. Bing went fully online on June 3, 2009. It is a replacement for Live Search(Windows Live Search, MSN Search). The Indian version currently doesn’t have the full functionality. Some of the interesting features that you will notice at first glance:. Just search for any video on Bing Videos and hover the mouse over any of the video thumbnail to watch a short clip.(WOW! Bing is suc...
binzthomas.wordpress.com
March | 2011 | Silent Killer
https://binzthomas.wordpress.com/2011/03
March 9, 2011 — binzthomas. Here is a good example for FCK editor validation. Declare a Custom Validator;. Asp:CustomValidator runat="server" ID="cvBody" SetFocusOnError="true" Display="dynamic" Text="The Body is required" ClientValidationFunction="ValidateContentText" /asp:CustomValidator. Add this Javascript function to your page. Var fckBody= FCKeditorAPI.GetInstance(' %=FCKeditor1.ClientID % ');. ArgsIsValid = fckBody.GetXHTML(true)! Ref: “ fck validation. Posted in Asp.net. Posted in Asp.net.
binzthomas.wordpress.com
December | 2008 | Silent Killer
https://binzthomas.wordpress.com/2008/12
The AssociatedControlID property of the Label web control. December 31, 2008 — binzthomas. In ASP.NET 2.0 the Label web control exposes a new property, AssociatedControlID. Consider, we have a form to get input from users. Every input control like textbox should have a heading text. For example,. Asp:Label ID="Label1" runat="server" Text="Enter your Name" AssociatedControlID="txtName" /asp:Label. Asp:TextBox ID="txtName" runat="server" /asp:TextBox. An example to clear things up. Asp:TextBox ID="TextBox1...
binzthomas.wordpress.com
October | 2009 | Silent Killer
https://binzthomas.wordpress.com/2009/10
Database table to XML file. October 27, 2009 — binzthomas. Here I give an example of how we can create a XML file from a database table. In this example, I had populated a dropdownlist with the tables in a database. Then I choose a table from the list, which needs to be generated as a XML file. Listing all the tables in the Database. We will generate the XML file in the ‘SelectedIndexChanged’ event of the DropDownList. Protected void DropDownList1 SelectedIndexChanged(object sender, EventArgs e). Microso...