Click here to Skip to main content
15,891,513 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: fileupload problem Pin
Michael Sync6-Dec-07 4:11
Michael Sync6-Dec-07 4:11 
QuestionOutlook Integration in Web Application? Pin
madhan singh raja6-Dec-07 3:27
madhan singh raja6-Dec-07 3:27 
GeneralExcel object is not coming in Intellisense Pin
meeram3956-Dec-07 2:57
meeram3956-Dec-07 2:57 
GeneralRe: Excel object is not coming in Intellisense Pin
Michael Sync6-Dec-07 4:06
Michael Sync6-Dec-07 4:06 
GeneralSession problem Pin
kinnuP6-Dec-07 2:50
kinnuP6-Dec-07 2:50 
GeneralRe: Session problem Pin
Fred_Smith6-Dec-07 4:04
Fred_Smith6-Dec-07 4:04 
GeneralRe: Session problem Pin
kinnuP6-Dec-07 18:51
kinnuP6-Dec-07 18:51 
GeneralProblem with AjaxControlToolkit CalendarExtender with TextChanged in a datagrid. Pin
thomasa6-Dec-07 2:20
thomasa6-Dec-07 2:20 
I have a datagrid with an CalendarExtender conected to a TextBox in a DataGrid
<br />
asp:datagrid id="dgSubscription" runat="server" CssClass="grid" AllowPaging="False" CellPadding="0"<br />
		                        GridLines="Vertical" AutoGenerateColumns="False" ShowFooter="true" OnItemCreated="dgSubscription_ItemCreated"><br />
<br />
Columns><br />
asp:TemplateColumn HeaderText="Date" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="150px"><br />
				                       				                        ItemTemplate><br />
asp:TextBox ID="tbDtmStart" runat="server" AutoPostBack="true"></asp:TextBox><br />
				                            <cc1:CalendarExtender ID="ceStart" runat="server" Format="dd.MM.yyyy" TargetControlID="tbDtmStart" SelectedDate='<%#(DateTime)DataBinder.Eval(Container.DataItem, "dtmStart")%>'><br />
                                            </cc1:CalendarExtender>	<br />


I have an on item created in the code behind, hver I add a TextChanged event to the Date TextBox
<br />
 protected void dgSubscription_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)<br />
        {<br />
try<br />
            {<br />
                if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)<br />
                {<br />
                    <br />
                    // Start date<br />
                    tb = (System.Web.UI.WebControls.TextBox)e.Item.FindControl("tbDtmStart");<br />
                    tb.TextChanged += new EventHandler(this.OnSubscriptionDtmStartChanged);<br />
<br />
.....<br />


At first time the page load, the DataGrid.DataSource gets it values from
a dataview.

The problem is that the OnSubscriptionDtmStartChanged is
triggerd for every row in the DataGrid, because the CalendarExtender changes the TextBox's value.

There is allso a problem that the OnSubscriptionDtmStartChanged funtion i triggered 2 times
when I change the value on one of the DataGridRow.

I know that all of this has to do with the CalendarExtender changes the TextBox's value,
but can I some how get around this?
Thanks
Thomas
GeneralRe: The Solution Pin
thomasa6-Dec-07 3:34
thomasa6-Dec-07 3:34 
Questionhow i can use a cursor for a multi set return values in a stored procedures Pin
jagan1236-Dec-07 1:56
jagan1236-Dec-07 1:56 
AnswerRe: how i can use a cursor for a multi set return values in a stored procedures Pin
Paddy Boyd6-Dec-07 2:18
Paddy Boyd6-Dec-07 2:18 
Questionregarding pblm in creating virtual directory Pin
GaneshKumarVkm6-Dec-07 1:42
GaneshKumarVkm6-Dec-07 1:42 
GeneralRe: regarding pblm in creating virtual directory Pin
Sathesh Sakthivel6-Dec-07 1:53
Sathesh Sakthivel6-Dec-07 1:53 
GeneralRe: regarding pblm in creating virtual directory Pin
martin_hughes6-Dec-07 4:23
martin_hughes6-Dec-07 4:23 
Questioncalling javascript from c# Pin
ekynox6-Dec-07 1:27
ekynox6-Dec-07 1:27 
GeneralRe: calling javascript from c# Pin
jagan1236-Dec-07 1:42
jagan1236-Dec-07 1:42 
GeneralRe: calling javascript from c# Pin
ekynox6-Dec-07 2:05
ekynox6-Dec-07 2:05 
GeneralRe: calling javascript from c# Pin
jagan1236-Dec-07 2:08
jagan1236-Dec-07 2:08 
GeneralRe: calling javascript from c# [modified] Pin
ekynox6-Dec-07 2:23
ekynox6-Dec-07 2:23 
Questionhow to convert text, from english to other language using asp.net Pin
Member 41706456-Dec-07 1:10
Member 41706456-Dec-07 1:10 
AnswerRe: how to convert text, from english to other language using asp.net Pin
Sathesh Sakthivel6-Dec-07 1:26
Sathesh Sakthivel6-Dec-07 1:26 
AnswerRe: how to convert text, from english to other language using asp.net Pin
Michael Sync6-Dec-07 1:29
Michael Sync6-Dec-07 1:29 
QuestionHow to put javascript validation on ASP .NET controls? Pin
Rocky#6-Dec-07 0:58
Rocky#6-Dec-07 0:58 
AnswerRe: How to put javascript validation on ASP .NET controls? Pin
N a v a n e e t h6-Dec-07 1:08
N a v a n e e t h6-Dec-07 1:08 
GeneralOpen a new window Pin
.NET- India 6-Dec-07 0:56
.NET- India 6-Dec-07 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.