Welcome Guest Search | Active Topics | Sign In | Register

DatePicker Options
Menon
Posted: Wednesday, May 21, 2008 11:33:57 PM
Rank: Advanced Member
Groups: Member

Joined: 8/9/2007
Posts: 59
Hi There,

I am facing a strange problem. I am working on C#.NET. I have around 80 forms in which i am using DatePicker. Now to create App_localResources i had to generate these pages. To my Surprise after Generating the forms, i am getting errors for the DatePicker. It is losing its ID ?

I really dont know why this has happened. Well currently the only option i have is to go page by page and give ID's to these DatePickers. I have more pages in another project which i have to Generate LocalResources. Is there anything i can do to prevent this error again?

Thanks,
Cheers,

Menon
eo_support
Posted: Thursday, May 22, 2008 9:54:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi Menon,

We are not sure what caused that, we don't really do anything special about ID property. Can you reproduce the problem in a separate test project?

Thanks
Menon
Posted: Friday, May 23, 2008 12:54:17 AM
Rank: Advanced Member
Groups: Member

Joined: 8/9/2007
Posts: 59
Hi There,

For sure i have to do in another project. So i will try to Generate LocalResources and test it and if needed i can send you the code of Design how it becomes after Generating.


Thanks

Cheers,
Menon
Menon
Posted: Thursday, May 29, 2008 10:30:41 PM
Rank: Advanced Member
Groups: Member

Joined: 8/9/2007
Posts: 59
Hi there,

I again tired to generate localresources from Visual Studio and i got this error , or that the ID gets deleted. i am attaching the design code of the datepicker so you can have a look.

*********************************************************************************
<eo:DatePicker runat="server" DayCellHeight="15" DayCellWidth="31"
DayHeaderFormat="Short" DisabledDates="" OtherMonthDayVisible="True" PickerFormat="dd/MM/yyyy"
SelectedDates="" TitleFormat="dd/MM/yyyy" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL"
TitleRightArrowImageUrl="DefaultSubMenuIcon" Width="100px" meta:resourcekey="ApprovedDatePickerResource1">
<TodayStyle CssText="background-image:url('00040401');color:#1176db;" />
<FooterTemplate>
<table style="font-size: 11px; font-family: Verdana" border="0" cellSpacing="5" cellPadding="0">
<tr>
<td width="30"></td>
<td valign="center"><img src="{img:00040401}"></td>
<td valign="center">Today: {var:today:MM/dd/yyyy}</td>
</tr>
</table>
</FooterTemplate>
<SelectedDayStyle CssText="background-image:url('00040403');color:Brown;" />
<DisabledDayStyle CssText="color: gray" />
<CalendarStyle CssText="background-color:white;border-bottom-color:Silver;border-bottom-style:solid;border-bottom-width:1px;border-left-color:Silver;border-left-style:solid;border-left-width:1px;border-right-color:Silver;border-right-style:solid;border-right-width:1px;border-top-color:Silver;border-top-style:solid;border-top-width:1px;color:#2C0B1E;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
<TitleArrowStyle CssText="cursor: hand" />
<DayHoverStyle CssText="background-image:url('00040402');color:#1c7cdc;" />
<MonthStyle CssText="cursor:hand;font-family:Verdana;font-size:8pt;margin-bottom:0px;margin-left:4px;margin-right:4px;margin-top:0px;" />
<TitleStyle CssText="font-family:Verdana;font-size:8.75pt;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
<DayHeaderStyle CssText="border-bottom: #f5f5f5 1px solid" />
</eo:DatePicker>
****************************************************************************

Ok i found the problem.
I have other forms have datepicker that didnt cause me this problem.

The problem is the Register tag

<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
if my aspx form doesnt have this tag it throws error.

i have put this in my web.config
<pages>
<controls>
<add tagPrefix="eo" namespace="EO.Web" assembly="EO.Web"/>
</controls>
</page>

but when i generate localresources, it doesnt identify this control.
Ok. Is the only solution to get this is to put the Register tag in each page where i have datepicker?

Please let me know if you have any other solution for this.
Thanks,
Menon


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.