Software / Technology Tips

Avoid Duplicate record insertion on page refresh in ASP.NET

Avoid Duplicate record insert on page refresh using ASP.NET One of most common issue which many of the web developers face in their web applications, is that the duplicate records are inserted to the Database on page refresh. If the web page contains some text box and a button to submit the textbox data to…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Setting visibility of Form fields in the select event of a ComboBox in Extjs 3.3.

In Extjs “select “ event of ComboBox fires when a list item is selected. Syntax : function( Ext.form.ComboBox combo , Ext.data.Record rec , Number index ) combo : The ComboBox for which the select event is fired. Rec : The data record returned from the ComboBox data store. Index : The index of the selected…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Reset or clear the form data when form is submitted by AJAX using jQuery

When a form is submitted through submit button click the form data is subsequently cleared or reset . But when we submit a form by AJAX then we have to clear the form data by picking every element and setting the value as blank. If a form contains more than 100 input fields then it…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Change background color of your web-page automatically

The following Javascript code will help you change the background-color of your web-page automatically and at a time-interval (in milli-seconds) as specified in the code. /* Method To Generate Random Numbers Between "0-255" for RGB Color-code Format & Assign To Body-Backgrond-Style */ function bgDisco() { var x =Math.round(255*Math.random()); var num1 =getHex(x); var y =Math.round(255*Math.random()); var num2 =getHex(y); var z…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to consume Web Service in CXF Using WSDL?

CXF is a service framework that help to build and develop web services using frontend programming APIs, like JAX-WS. It provides wsdl2java utility to create web service client stub classes using wsdl url. Suppose we have “ wsdl url that has operations to add and multiply numbers. To create client stub classes from wsdl2java utility,…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Use Image Tag instead of using HTML Image Tag

When building an application in RoR, we may need some images on the web page. In RoR application images are stored in ‘public/images/’ folder and we need to embed those images in our view pages which contains the HTML tag. I am working on the windows with ruby 1.9.2 and rails 3.0.1. What I have…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Using jQuery Plugin to implement scrollbar in iPad,

Since normal scrollbar implemented for browser does not work in iPad, we can implement it using JScollPane which is a jQuery plugin. After downloading the above files store them in respective directories and add HTML code to implement the scrollbar. Here is a sample HTML code snippet jScrollPane example skins (operating system style scrollbars) .scroll-pane { width:…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Create Form Using Suitelet

How to create a simple form for a new customer in NetSuite account (using Suitelet script) and then redirect to the newly created customer record? I want to create a suitelet form for a new customer record in Netsuite account using some common APIs. And, after creating the record form will be redirected to that…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to show Empty Template in ASP.NET Repeater control?

For showing data in a list format we may use Gridview or Listview or Repeater. But suppose no data is there for a particular filter or in a particular instance then we should show some custom message to the user saying that no data is there to show or some similar messages. If we are…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

To refresh Gridview Data regularly, without any page – postback.

First, create a web-application using Visual-Studio 2005 or later. (Note: For visual-studio 2005, we’ll have to make this web-application ajax enabled by selecting “Asp .Net Ajax-Enabled Web-site”Template.Do note that in case of visual studio 2008, it has an in-built support for ajax, so there is no need to specify anything extra.) Now, in Design-Mode, Add “Timer” and “Update-Panel”…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!