Category JAVA SCRIPT

Download File Using URL On Same Page From Jquery/Javascript

Category: JAVA SCRIPTJQUERY Comments: One comment

Download File Using URL On Same Page From Jquery/Javascript :- var data = FileUrl;Read More

Show Image Preview using Java Script and File Upload Control in Asp.net

Category: ASP.NETJAVA SCRIPT Comments: No comments

Sometimes we need that by selecting the image by Fileupload Control and display the image in image control Follow the Below Code Step 1: Read More

Select All CheckBox inside GridView Using JavaScript in Asp.net

Category: ASP.NETGRIDVIEWJAVA SCRIPT Comments: No comments

To select all the checkbox at a time inside the gridview using JavaScript go through the below code. You can get the values of each checkbox wheather it is checked or not in step 4. Step 1: Read More

Count the no of selected checkbox in JavaScript

Category: ASP.NETJAVA SCRIPT Comments: No comments

Read More

Multiple Radiobutton Validation by using Group-Name

Category: JAVA SCRIPT Comments: No comments

This is a simple way to validate a group of RadioButton in a page using Java Script. If you want to validate multiple radio buttons categorised by their groupname attribute. Lets assume there are 6 radio buttons belongs to 3 different groups. Its a simple JS validation for multiple groups and u can show the error message also at a time those fileds which are not filled thats why a span tag is provided der. Make sure that only group names should be in the format as in this example likegroup1....group10 and span names like span1,span2....span15. Paste the code in the Default.aspx
Your Gender :
Do u play Cricket ?
Read More

Create cookie using Java Script

Category: JAVA SCRIPT Comments: One comment

Create a tag or a Button on click of that you can set the cookie value. Just paste the script code with in the header tag. getCookieValue is the function through which you can get the value of the cookie. This is used to create a cookie which is created on the click event of anchor tag,which will be valid fpr 7 days in ypur browser. Read More

URL Rewritting/Query String handling using JS without reload page

Category: JAVA SCRIPT Comments: No comments

Step 1: Create any .html or .aspx page what ever your wish. Step 2: Now Just write the below script in the head part your task is complete. here 2 functions are used one is to get the Query String parameters and Show() is used to rewrite the URL. Read More

Disable cut, copy and paste in textbox using jquery, javascript

Category: JAVA SCRIPTJQUERY Comments: 6 comments

Disable cut, copy & paste using Javascript When we don't want to display any message on cut, copy & paste When we want to display an alert message on copy, paste and cut Read More

Javascript Function in Item Template when using gridview in Asp.net

Category: ASP.NETC#.NetJAVA SCRIPT Comments: No comments

<asp:TemplateField>
<ItemStyle CssClass=”lblCenter” />
<ItemTemplate>
<asp:LinkButton ID=”lnkButton” runat=”server” OnClientClick==’<%# String.Format(“javascript:return displayDeleteWarning(\”{0}\”)”, Eval(“ClassId”).ToString()) %>’
</ItemTemplate>
</asp:TemplateField>

Read More

Add Java Script Function to gridview cells in Asp.net

Category: ASP.NETC#.NetJAVA SCRIPT Comments: No comments

//Add java script function on cells with value
protected void GridUsers_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[1].Attributes.Add(“onClick”, “JavaScript: GetOrderDetail(‘” + Convert.ToInt32(GridUsers.DataKeys[e.Row.RowIndex].Value.ToString()) + “‘)”);

}
}

Read More