Click here to Skip to main content
15,922,533 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how can i get a message box in asp.net using c# Pin
N a v a n e e t h23-Jan-08 21:40
N a v a n e e t h23-Jan-08 21:40 
GeneralRe: how can i get a message box in asp.net using c# Pin
Radha2723-Jan-08 22:31
Radha2723-Jan-08 22:31 
GeneralRe: how can i get a message box in asp.net using c# Pin
N a v a n e e t h23-Jan-08 22:37
N a v a n e e t h23-Jan-08 22:37 
GeneralRe: how can i get a message box in asp.net using c# Pin
Radha2723-Jan-08 22:42
Radha2723-Jan-08 22:42 
GeneralRe: how can i get a message box in asp.net using c# Pin
N a v a n e e t h23-Jan-08 22:45
N a v a n e e t h23-Jan-08 22:45 
GeneralRe: how can i get a message box in asp.net using c# Pin
Radha2723-Jan-08 22:48
Radha2723-Jan-08 22:48 
QuestionRe: how can i get a message box in asp.net using c# Pin
Sampadalam9-Oct-09 1:04
Sampadalam9-Oct-09 1:04 
Questionpopout calendar closes after i click on next/prev month Pin
cylene23-Jan-08 17:17
cylene23-Jan-08 17:17 
Hi friends,

I there anyway to stop the popout calendae from closing when i click next/prev month? Following is my code(taken from ASP.NET 2.0 unleashed):

==========================================================================
]]>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

protected void calEventDate_SelectionChanged(object sender, EventArgs e)
{
txtEventDate.Text = calEventDate.SelectedDate.ToString("d");
}

protected void btnSubmit_Click(object sender, EventArgs e)
{
lblResult.Text = "You picked: " + txtEventDate.Text;
}


</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<script type="text/javascript">

function displayCalendar()
{
var datePicker = document.getElementById('datePicker');
datePicker.style.display = 'block';
}

</script>
<style type="text/css">
#datePicker
{
display:none;
position:absolute;
border:solid 2px black;
background-color:white;
}
.content
{
width:400px;
background-color:white;
margin:auto;
padding:10px;
}
html
{
background-color:silver;
}
</style>
<title>Calendar with JavaScript</title>
</head>
<body>
<form id="form1" runat="server">
<div class="content">

<asp:Label
id="lblEventDate"
Text="Event Date:"
AssociatedControlID="txtEventDate"
Runat="server" />
<asp:TextBox
id="txtEventDate"
Runat="server" />
<img src="Calendar.gif" onclick="displayCalendar()" id="IMG1" />

<div id="datePicker">
<asp:Calendar
id="calEventDate"
OnSelectionChanged="calEventDate_SelectionChanged"
Runat="server" />
</div>

<br />
<asp:Button
id="btnSubmit"
Text="Submit"
Runat="server" OnClick="btnSubmit_Click" />

<hr />

<asp:Label
id="lblResult"
Runat="server" />

</div>
</form>
</body>
</html>

==========================================================================
Thanks

lene
AnswerRe: popout calendar closes after i click on next/prev month Pin
Lostwords818-Dec-09 6:04
Lostwords818-Dec-09 6:04 
GeneralWith attachment mail send Pin
Member 387988123-Jan-08 17:08
Member 387988123-Jan-08 17:08 
QuestionRe: With attachment mail send Pin
Vasudevan Deepak Kumar23-Jan-08 18:41
Vasudevan Deepak Kumar23-Jan-08 18:41 
GeneralRe: With attachment mail send Pin
Member 387988123-Jan-08 23:00
Member 387988123-Jan-08 23:00 
GeneralRe: With attachment mail send Pin
N a v a n e e t h23-Jan-08 23:09
N a v a n e e t h23-Jan-08 23:09 
QuestionQuestion on Forms Authentication Pin
Venkatesh Mookkan23-Jan-08 17:01
Venkatesh Mookkan23-Jan-08 17:01 
GeneralRe: Question on Forms Authentication Pin
N a v a n e e t h23-Jan-08 21:48
N a v a n e e t h23-Jan-08 21:48 
GeneralProblem Generate Excel Reports if the Data is too much Pin
HatakeKaKaShi23-Jan-08 15:43
HatakeKaKaShi23-Jan-08 15:43 
QuestionMoving an image control in ASP.NET Pin
Yatish Kasa23-Jan-08 7:50
Yatish Kasa23-Jan-08 7:50 
GeneralRe: Moving an image control in ASP.NET Pin
ToddHileHoffer23-Jan-08 9:08
ToddHileHoffer23-Jan-08 9:08 
QuestionDefault Button of a page -- how? Pin
dipak.dipak23-Jan-08 4:44
dipak.dipak23-Jan-08 4:44 
GeneralRe: Default Button of a page -- how? Pin
ToddHileHoffer23-Jan-08 4:54
ToddHileHoffer23-Jan-08 4:54 
GeneralRe: Default Button of a page -- how? Pin
eyeseetee23-Jan-08 4:59
eyeseetee23-Jan-08 4:59 
GeneralRe: Default Button of a page -- how? Pin
Ajeet mittal23-Jan-08 10:37
Ajeet mittal23-Jan-08 10:37 
GeneralConnection time out (Between client and server) Pin
attalurisubbu23-Jan-08 3:25
attalurisubbu23-Jan-08 3:25 
AnswerRe: Connection time out (Between client and server) [modified] Pin
ToddHileHoffer23-Jan-08 4:51
ToddHileHoffer23-Jan-08 4:51 
GeneralHw can ı get multi selected data new created object whit postback or whitout it Pin
Member 464351023-Jan-08 3:11
Member 464351023-Jan-08 3:11 

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.