Click here to Skip to main content
15,894,337 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to get values from popup window??? Pin
ha_haseebahmad28-Mar-07 18:28
ha_haseebahmad28-Mar-07 18:28 
AnswerRe: How to get values from popup window??? Pin
varshavmane28-Mar-07 18:46
varshavmane28-Mar-07 18:46 
GeneralRe: How to get values from popup window??? Pin
regin28-Mar-07 19:06
regin28-Mar-07 19:06 
GeneralRe: How to get values from popup window??? Pin
varshavmane28-Mar-07 19:09
varshavmane28-Mar-07 19:09 
GeneralRe: How to get values from popup window??? [modified] Pin
regin28-Mar-07 20:11
regin28-Mar-07 20:11 
GeneralRe: How to get values from popup window??? Pin
varshavmane28-Mar-07 21:22
varshavmane28-Mar-07 21:22 
GeneralRe: How to get values from popup window??? Pin
regin28-Mar-07 21:36
regin28-Mar-07 21:36 
GeneralRe: How to get values from popup window??? Pin
varshavmane28-Mar-07 22:22
varshavmane28-Mar-07 22:22 
For 2 dates u can use two calenders in same child form.
The code below will return one date only but if u put 2 calender and in
controlFromDate.Value = calFromDate.SelectedDate.ToShortDateString();
controlToDate.Value = calToDate.SelectedDate.ToShortDateString();
And
"<script language='javascript'>
window.returnValue='" + calFromDate.SelectedDate.ToString("dd/MM/yyyy") + "^" + calToDate.SelectedDate.ToString("dd/MM/yyyy") +"'

Finally u can split this at ^.U will get 2 dates

Do this:
On Parent Window:
function PickFromDate()
{
var winSettings = "dialogWidth:300px;dialogHeight:250px; help: no; status: no";
var values = window.showModalDialog('Calender.aspx','cal',winSettings);
if (values)
{
document.all("txtFromDate").value = values;
}
}

On Child Form .cs add this:

private void calDate_SelectionChanged(object sender, System.EventArgs e)
{
control.Value = calDate.SelectedDate.ToShortDateString();
Response.Write("<script language='javascript'>window.returnValue='" + calDate.SelectedDate.ToString("dd/MM/yyyy") + "';window.close();</script>");
}

Hope this will help u..


GeneralRe: How to get values from popup window??? Pin
regin28-Mar-07 22:56
regin28-Mar-07 22:56 
GeneralRe: How to get values from popup window??? Pin
varshavmane28-Mar-07 23:13
varshavmane28-Mar-07 23:13 
GeneralRe: How to get values from popup window??? Pin
regin28-Mar-07 23:46
regin28-Mar-07 23:46 
GeneralRe: How to get values from popup window??? Pin
varshavmane28-Mar-07 23:23
varshavmane28-Mar-07 23:23 
GeneralRe: How to get values from popup window??? Pin
regin29-Mar-07 0:03
regin29-Mar-07 0:03 
GeneralRe: How to get values from popup window??? Pin
regin29-Mar-07 1:25
regin29-Mar-07 1:25 
GeneralRe: How to get values from popup window??? Pin
varshavmane29-Mar-07 2:50
varshavmane29-Mar-07 2:50 
GeneralRe: How to get values from popup window??? Pin
regin3-Apr-07 19:06
regin3-Apr-07 19:06 
QuestionDifference between Build and Deployment? Pin
siddisagar28-Mar-07 18:26
siddisagar28-Mar-07 18:26 
QuestionRow coloring on mouseover Pin
digsy_28-Mar-07 15:54
digsy_28-Mar-07 15:54 
AnswerRe: Row coloring on mouseover Pin
Sathesh Sakthivel28-Mar-07 17:21
Sathesh Sakthivel28-Mar-07 17:21 
Questionhow to backup sql database via asp? Pin
neodeaths28-Mar-07 15:02
neodeaths28-Mar-07 15:02 
Questionneed help in asp design coding Pin
neodeaths28-Mar-07 14:48
neodeaths28-Mar-07 14:48 
AnswerRe: need help in asp design coding Pin
Nathan Ridley28-Mar-07 20:19
Nathan Ridley28-Mar-07 20:19 
QuestionHow to identify if a float value exists or not in a data table's column? Pin
SIJUTHOMASP28-Mar-07 11:57
professionalSIJUTHOMASP28-Mar-07 11:57 
AnswerRe: How to identify if a float value exists or not in a data table's column? Pin
enjoycrack28-Mar-07 20:15
enjoycrack28-Mar-07 20:15 
QuestionExcute SQL Command on Page Load Pin
jkaput28-Mar-07 10:37
jkaput28-Mar-07 10:37 

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.