Click here to Skip to main content
15,899,124 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpop-up Pin
Priya S13-Aug-07 23:53
Priya S13-Aug-07 23:53 
AnswerRe: pop-up Pin
Christian Graus14-Aug-07 0:01
protectorChristian Graus14-Aug-07 0:01 
GeneralRe: pop-up Pin
Priya S14-Aug-07 0:10
Priya S14-Aug-07 0:10 
GeneralRe: pop-up Pin
Christian Graus14-Aug-07 0:21
protectorChristian Graus14-Aug-07 0:21 
GeneralRe: pop-up Pin
nandhububbly14-Aug-07 1:02
nandhububbly14-Aug-07 1:02 
AnswerRe: pop-up Pin
nandhububbly14-Aug-07 1:03
nandhububbly14-Aug-07 1:03 
GeneralRe: pop-up Pin
Priya S14-Aug-07 1:20
Priya S14-Aug-07 1:20 
GeneralRe: pop-up Pin
Imran Khan Pathan14-Aug-07 2:07
Imran Khan Pathan14-Aug-07 2:07 
try this

Javascript

<script language="javascript" type="text/javascript">
function popup(val)
{
ref = "calc.aspx?id="+val;
var strFeatures="toolbar=no,status=no,menubar=no,location=no"
strFeatures=strFeatures+",scrollbars=no,resizable=no,addressbar=no,height=250,width=220"
newWin = window.open(ref,"TellObj",strFeatures);
newWin.opener = top;

}
</script>
Create one page and named it calc.aspx and put calendar control

In code behind file of calc.aspx.cs write belove code to get value in textbox



string val;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["id"] != null)
val = Request.QueryString["id"].ToString();
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
if(String.IsNullOrEmpty(val))
Response.Write("<script language = javascript>opener.document.getElementById('txtSearchStartDate').value='" + Calendar1.SelectedDate.ToShortDateString() + "'; self.close();</script>");
else
Response.Write("<script language = javascript>opener.document.getElementById('"+val+"').value='" + Calendar1.SelectedDate.ToShortDateString() + "'; self.close();</script>");
}




Now call javascipt and open popup window on click of link.


<a href="javascript:;" onclick="return popup('txtSearchStartDate');">Calendar
</a>



best Regard


pathan









---------------------------------------------------
AnswerRe: pop-up Pin
nandhububbly14-Aug-07 2:40
nandhububbly14-Aug-07 2:40 
QuestionHow to create a secure login page? Pin
Jagadeesh Jupalli13-Aug-07 23:39
Jagadeesh Jupalli13-Aug-07 23:39 
AnswerRe: How to create a secure login page? Pin
Christian Graus13-Aug-07 23:57
protectorChristian Graus13-Aug-07 23:57 
GeneralRe: How to create a secure login page? Pin
hellohello8614-Aug-07 0:51
hellohello8614-Aug-07 0:51 
GeneralRe: How to create a secure login page? Pin
Jagadeesh Jupalli14-Aug-07 1:39
Jagadeesh Jupalli14-Aug-07 1:39 
GeneralRe: How to create a secure login page? Pin
leckey14-Aug-07 4:56
leckey14-Aug-07 4:56 
GeneralRe: How to create a secure login page? Pin
Christian Graus14-Aug-07 12:14
protectorChristian Graus14-Aug-07 12:14 
QuestionAsp.Net with Oracle Pin
Malayil alex13-Aug-07 23:35
Malayil alex13-Aug-07 23:35 
AnswerRe: Asp.Net with Oracle Pin
Christian Graus14-Aug-07 0:27
protectorChristian Graus14-Aug-07 0:27 
Questionproblem with ajax dropdownbox Pin
anujose13-Aug-07 23:31
anujose13-Aug-07 23:31 
AnswerRe: problem with ajax dropdownbox Pin
Christian Graus14-Aug-07 0:05
protectorChristian Graus14-Aug-07 0:05 
GeneralRe: problem with ajax dropdownbox Pin
anujose14-Aug-07 0:12
anujose14-Aug-07 0:12 
GeneralRe: problem with ajax dropdownbox Pin
N a v a n e e t h14-Aug-07 0:19
N a v a n e e t h14-Aug-07 0:19 
GeneralRe: problem with ajax dropdownbox Pin
Christian Graus14-Aug-07 0:22
protectorChristian Graus14-Aug-07 0:22 
AnswerRe: problem with ajax dropdownbox Pin
N a v a n e e t h14-Aug-07 0:19
N a v a n e e t h14-Aug-07 0:19 
GeneralRe: problem with ajax dropdownbox Pin
anujose14-Aug-07 0:31
anujose14-Aug-07 0:31 
GeneralRe: problem with ajax dropdownbox Pin
Christian Graus14-Aug-07 0:40
protectorChristian Graus14-Aug-07 0:40 

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.