473,326 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Problem with Popup calendar control

Hey,

I have a popup calendar control implemented in a user
control. Now I need to send the date which the user has
entered manually in the textbox to that control via a
querystring. So I thought I could do something like this:

<asp:TextBox id="txbAddStartDate" Text="<%#SetTodaysDate()%
" Runat="server" Columns="10"></asp:TextBox>

<asp:HyperLink id="linkAddStartDate" runat="server"
ImageUrl="/images/smallcalendar.gif"
navigateurl="javascript:calendar_window=window.ope n
('popup_calendar.aspx?formname=Form1.txbAddStartDa te
& "&cur_date=" & <%#txbAddStartDate.Text%>
& "','DatePicker','width=250,height=255,left=270,top =180');
calendar_window.focus();"></asp:HyperLink>

However I get the message that this server tag is not well
formed. I am not sure how to solve this problem, as <%
#txbAddStartDate.Text%> is causing it...can somebody help
me out?
Nov 19 '05 #1
2 1146
Hi,

This error must be coming when ur shiting from HTML to
design view. Solution to this is use single quotes
instead of Double quotes for enclosin ASP tags
like

Text='<%#SetTodaysDate()%>'

instead of

Text="<%#SetTodaysDate()%>"

Hope this helps

Pradeep
-----Original Message-----
Hey,

I have a popup calendar control implemented in a usercontrol. Now I need to send the date which the user has
entered manually in the textbox to that control via a
querystring. So I thought I could do something like this:

<asp:TextBox id="txbAddStartDate" Text="<%#SetTodaysDate ()%
" Runat="server" Columns="10"></asp:TextBox>

<asp:HyperLink id="linkAddStartDate" runat="server"
ImageUrl="/images/smallcalendar.gif"
navigateurl="javascript:calendar_window=window.op en
('popup_calendar.aspx?formname=Form1.txbAddStartD ate
& "&cur_date=" & <%#txbAddStartDate.Text%>
& "','DatePicker','width=250,height=255,left=270,top =180'

);calendar_window.focus();"></asp:HyperLink>

However I get the message that this server tag is not wellformed. I am not sure how to solve this problem, as <%
#txbAddStartDate.Text%> is causing it...can somebody helpme out?
.

Nov 19 '05 #2
Hey

Sorry,
Please read shifting instead of shi.....

Bye

Pradeep
-----Original Message-----
Hi,

This error must be coming when ur shiting from HTML to
design view. Solution to this is use single quotes
instead of Double quotes for enclosin ASP tags
like

Text='<%#SetTodaysDate()%>'

instead of

Text="<%#SetTodaysDate()%>"

Hope this helps

Pradeep
-----Original Message-----
Hey,

I have a popup calendar control implemented in auser
control. Now I need to send the date which the user has
entered manually in the textbox to that control via a
querystring. So I thought I could do something like this:

<asp:TextBox id="txbAddStartDate" Text="<%#SetTodaysDate

()%" Runat="server" Columns="10"></asp:TextBox>

<asp:HyperLink id="linkAddStartDate" runat="server"
ImageUrl="/images/smallcalendar.gif"
navigateurl="javascript:calendar_window=window.o pen
('popup_calendar.aspx?formname=Form1.txbAddStart Date
& "&cur_date=" & <%#txbAddStartDate.Text%>
& "','DatePicker','width=250,height=255,left=270,top =180

');
calendar_window.focus();"></asp:HyperLink>

However I get the message that this server tag is not

well
formed. I am not sure how to solve this problem, as <%
#txbAddStartDate.Text%> is causing it...can somebody

help
me out?
.

.

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Merex | last post by:
Hello all, I want to use the Calendar control as a popup window. I would like each day's link to execute some javascript which would set the value of a textbox on the window which opened the...
2
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
4
by: Ali | last post by:
i am using visual studio 2005 and I am trying to create a popup calender so when a user click on a image on the main form, a calender will then popup, the user will select a date and the date will...
3
by: Peter | last post by:
Does anyone have an example of how you would do a popup window when a user clicks on a day number link in the ASP.NET Web Calendar control? I am trying to create an event calendar similar to how...
5
by: rockdale | last post by:
Hi, I tried to search web for an non-popup calendar control, (like javascript calendar) but could not find a good solution. Most solutions are popup another window and show the calendar, then...
4
by: ShyGuy | last post by:
A while back I had found a link to a popup calendar that had a small button that was placed to the right of any text box. By clicking on the icon and selecting a date the text box was updated with...
2
by: Keith | last post by:
I am looking to use the Calendar control in a standard way, with a couple small(hopefully) differences. I have a textbox with a date, and a calendar button next to it, and when you click the...
3
by: mikaint | last post by:
I'm really confused here...i'll need some help with the following... i have a sceipt that will open a popup win which is actually a calendar and i'm trying to apply a style on the popup... Here's...
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am using a calendar extender with a masked edit validator and masked editextender that provides a dropdown calendar and a text box for date entry. On the same page I am using a sliderExtender...
2
by: =?Utf-8?B?U3RldmUgQmxhaW4=?= | last post by:
Hi, I am using a calendar extender with a masked edit validator and masked editextender that provides a dropdown calendar and a text box for date entry. On the same page there are other other...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.