.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

how to fill asp:Gridview when mouse clicked on AJAXToolkit Calendar

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
how to fill asp:Gridview asynchronously from the SQL database when mouse clicked on AJAXToolkit Calendar(When calendar date changed by client) Pls Help me out.Hoping for quick response Thanking You

View Complete Post

More Related Resource Links

How To Add calendar control inside a GridView

This article show hot to add calendar control inside a GridView with code in c#

Using ATLAS PopUp Control with Calendar inside the GridView Control

In this video tutorial Mohammad demonstrates how you can access the Calendar control which is displayed using the ATLAS PopUp control inside the GridView control.

How to highlight datagrid or GridView row on mouse over?

This article will show how you can Ajax with GridView to display popup messages when mouse moves over certain column. In the demo project I have added first column as an image column with a help icon in it. This kind of implements a feature that if you want more information about the row you can move mouse over this icon, a asynchronous request is sent to server for data about that row and when call returns the returned message is show as a popup message.

Reuse a gridview within calendar control


Hello, I have a calendar control that will have events displayed within each cell.

I want to use a pre formatted gridview and simply bind the gridview with a dataset dynamically and display it within the cell of the specified day.

Is there a way to do that or do I have to dynamically build a gridview for every day that there is an event? 

So here is the template gridview and datasource:

 <asp:SqlDataSource ID="sqlcalitemtemp" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NNTrainingdbconnection %>" 
        SelectCommand="SELECT NN_Fire_Events.Start_Time, NN_Fire_Events.End_Time, tblNN_Fire_Cli

Highlight gridview row on mouse hover in asp.net

The article Highlight gridview row on mouse hover in asp.net was added by uniquesaiful on Sunday, June 06, 2010.

Gridview control is a customizable and flexible control used to display data in tabular format. It has some nice features. But lacks of some client side features that makes web users happy. We can easily add these features with few lines of code. For

ReportViewer DatePicker Parameter - calendar not displayed when clicked

Hi, I'm using VS2008 ReportViewer control and one of my reports in SSRS 2008 R2 has a DateTime parameter. I can enter the date into the textbox and view report successfully. However the calendar is not showing when I click the calendar icon. (Note: I encounter NO error).  It seems that it's a known issue in Visual Studio. Anyone knows any workaround/hack to fix this issue? Thanks in Advance, Raymond

Ajax Calendar Extender Within Gridview

I'm tasked with creating an editable gridview which contains several columns for input including a Start Date and End Date column. All columns are created dynamically at runtime based on a user's selection in a dropdown list. I would like to have an Ajax Calendar Extender attached to all text boxes in the Start and End Date Columns but since the table is made dynamically I need to add it in code behind. Most examples I've seen add ajax calendars to a gridview using template columns but i can not do this in my case. The following is my handling of the rowdatabound event - How do i edit this to attach a calendar extender to columns 1 and 2?1 protected void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e) 2 { 3 TextBox txt; 4 if (e.Row.RowType == DataControlRowType.DataRow) 5 { 6 for(int i = 0; i < e.Row.Cells.Count; i++) 7 { 8 for (int j = 0; j < e.Row.Cells[i].Controls.Count; j++) 9 { 10 if (e.Row.Cells[i].Controls[j] is TextBox) 11 { 12 txt = (TextBox)e.Row.Cells[i].Controls[j]; 13 if (txt != null && Page.IsPostBack) 14 { 15 txt.Text = Request.Form[txt.UniqueID]; 16

Mouse over in Gridview

Hi All, Please help, I'm using the following mouse over in my code for the gridview Protected Sub GridView4_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView4.RowCreated e.Row.Attributes.Add("onMouseOver", "this.style.cursor='hand';this.className='row_on'") e.Row.Attributes.Add("onMouseOut", "this.className='row_off'") End Sub   And this render code to make the row selected. Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter) For Each row As GridViewRow In GridView3.Rows If row.RowType = DataControlRowType.DataRow Then row.Attributes("onclick") = ClientScript.GetPostBackClientHyperlink(GridView3, "Select$" & row.DataItemIndex, True) End If Next MyBase.Render(writer) End Sub   When I need to do two gridviews this will not work. Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter) For Each row As GridViewRow In GridView3.Rows If row.RowType = DataControlRowType.DataRow Then row.Attributes("onclick") = ClientScript.GetPostBackClientHyperlink(GridView3, "Select$" & row.DataItemIndex, True) End If Next

How to get row value when a row is selected or clicked in gridview

Hello, I have a gird view,which has only one field displayed,and a text box. (Grid view has 2 data rows.) On the gridview i have a button field named "Detailed View" which has command name "Detailed". When i click on the row 1 i wanted to display the value on the text box How will I execute it? I have given the following code but its not giving me the expected result.textbox1.Text = datagrid.Rows(e.CommandArgument).Cells(0).Text) and on the gridviews _RowCommand event Its showing null I am using VS 2008 (.net version 3.5) AND MS ACESS DB In visual studio 2005(.net 2.0) the same code is working absolutely fine ThanksNick

hoq to fill gridview dropdownlist from another db table

Hi, I have a gridview which gets its data from a database table now i ghave added a dropdownlist to this gridview but this dropdown should get the data from another table and should set its value automatically with a foreign key from the  gridview i have added the code like below in my rowDatabound but it just loads 1 field and then how should i get the selectedValue according to the gridview id field?? Protected Sub Friends_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)             If e.Row.RowType = DataControlRowType.DataRow Then                 Dim conn As New SqlConnection(HttpRuntime.Cache("con"))                Dim sql As String = "select ID,ListName from FriendList order by ListName asc"                Dim cmd As New SqlCommand(sql, conn)                cmd.CommandType = CommandType.Text                conn.Open()             &

Mouse hover gridview row



i have a gridview when i mouse over  i want to

1) higlight the row 

2)and  i want to display command buttons like Edit,Delete 

GridView and mouse double click Response.Redirect problem


VS 2005, AJAX 

I use gridview and I need single and double click for each row in gridview.

When I click once on a row, some action will execute (e.g. next button should be enabled) and when I double click the row there should be redirection to another page.

I used the code below for both single and double click  usage:


protected void GwContainers_RowDataBound(object sender, GridViewRowEventArgs e)
                if (e.Row.RowType == DataControlRowType.DataRow)
                    // Get the LinkButton control in the first cell

                    LinkButton singleClickButton = (LinkButton)e.Row.Cells[8].Controls[0];
                    // Get the javascript which is assigned to this LinkButton


Fill Gridview Based On Rights


I have a master table that will hold the information for publications for my company.  Not all of the publications can veiwed by all users.  What I am trying to figure out is how can I load all of the publications that the user is allowed to see into one grid view table.  For example: If Mary logs in she will only be able to see Accounts publications; if Sally logs in she can see General and Legal publications and if John logs in he can see IT, Legal and General publications.

I figured out how to do it with separate gridview tables on a page based on the roles.  I would make a gridview viewable if the user was in that role.  But I would really like to put all of this in one gridview if that is possible.  Does anyone have any ideas as to how I can do this?

UpdateProgress message should change on different cells clicked in a gridview


I have a gridview with 7 columns. I have linkbuttons in almost all the columns. This gridview is in a updatePanel and updateprogress control is there on the page. When I click on the first column(linkbutton) it should show message in updateprogres template and for all other click, it should not show that message......like udpateprogress should not be visisble. I tried cetting

Updateprogress.visible = false in rowcommandevent of gridview but it is not working.

Any ideas please???




How can a fill a cell in a gridview in a windowsform?


I have a gridview in a windowsform.
There are 4 columns (A, B, C and D).
I column D is a combobox.
How can I fill this combobox at form_load with the following data: --> 

Apply css for a gridview when clicked using JQuery



I am having an issue when trying to change the row color of a gridview. I am using the following script:

    <script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function () {

            //To set the background color of gridview row
            $("#<%=ProductsGridView.UniqueID%> tr").click(function () {
                $(this).css("background-color", "red");

Is there anything wrong with the following script, because it does not work.

Gridview with calendar control in VB


I have a gridview that has 20 columns in it. 3 of them are date fields. I am using templatefields but not edittemplates, only itemtemplates because the users want to update multiple rows and then update the data all at once. I have a panel with an update panel and a calendar on it and in the grid I have a popup extendar added to the textbox in the cell to make the calendar show but I can't get the value from the popup calendar back to the cell.

Does anybody have an example or is there a better way to do this?

Here is my templatefield:

	<asp:Label runat="server" ID="lblInitialLabel" text="Initial Qual Date" Width="105px"></asp:Label>
	<asp:TextBox runat="server" ID="txtInitialDate" text='<%#DataBinder.Eval(Container.DataItem, "initialqualdate")%>' 
	 	BorderStyle="Solid" Width="80px" BorderWidth="1">
	<AjaxToolKit:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="txtInitialDate" 
		PopupControlID="pnlCal" Position="Bottom" CommitProperty="value"
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend