I have one calendar and one gridview with three columns. Here i have to select the date in a calendar then one popup should open.How to do that.Helpme.
32 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Hi Raja my requirement is like i want to click on day of the month then popup should open with event title and one add button.if i click that add button then event should be added on grid and number of events should display in particular date.
I'll send my code.
Source Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Events.aspx.cs" Inherits="Scheduler.Events" %>
Code Behind:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Drawing;
namespace Scheduler
{
public partial class Events : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
GetData();
}
protected void GetData()
{
DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Columns.Add("Events");
dt.Columns.Add("Delete an Event");
DataRow rw1 = dt.NewRow();
rw1["Name"] = "";
rw1["Events"] = "";
rw1["Delete an Event"] = "";
dt.Rows.Add(rw1);
Gv1.DataSource = dt;
Gv1.DataBind();
}
here i need to enter in the same popup and that entered details should be filled on that gridview by clicking add button.
0
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 3:35 AM EDT
0
in my code popup is coming.. which means a new window is opening.
In that popup u can enter the event and save it in database. Then in the grid view it will populate.
its worked great dude.thanks alot bravoo..
but now again like once i have click on that date one popup message with day month year and event title and one add button...help me please.am new to asp.net.it would b helpful for me
i have click on that date one popup message with day month year and event title and one add button...help me please.am new to asp.net.it would b helpful for me
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 10:05 PM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 1, 2015, 11:44 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 12:20 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 12:22 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 12:24 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 1:37 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 2, 2015, 1:42 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 2:22 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 2:24 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 3:01 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 3:06 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 3:09 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 3:10 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 3:20 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 3:21 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 3:22 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 3:24 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 3:25 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 3:26 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 3:35 AM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 7:55 PM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 8:54 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 9:09 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 9:12 PM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 2, 2015, 9:50 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 9:57 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 2, 2015, 10:00 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 10:31 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 10:32 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 10:34 PM EDT
SreenishRank #7,298 · 244 reputationPosted Jul 2, 2015, 11:08 PM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted Jul 22, 2015, 6:53 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts