Click here to Skip to main content
15,906,467 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: AJAX Back and Forward Buttons Pin
Christian Graus24-Aug-07 11:56
protectorChristian Graus24-Aug-07 11:56 
GeneralRe: AJAX Back and Forward Buttons Pin
LordofLords24-Aug-07 23:04
LordofLords24-Aug-07 23:04 
GeneralRe: AJAX Back and Forward Buttons Pin
LordofLords24-Aug-07 23:05
LordofLords24-Aug-07 23:05 
AnswerRe: AJAX Back and Forward Buttons Pin
LordofLords24-Aug-07 23:03
LordofLords24-Aug-07 23:03 
Questionquerrystring Pin
md_refay24-Aug-07 7:04
md_refay24-Aug-07 7:04 
AnswerRe: querrystring Pin
kubben24-Aug-07 7:24
kubben24-Aug-07 7:24 
QuestionGetting data from a child page Pin
hadad24-Aug-07 6:45
hadad24-Aug-07 6:45 
AnswerRe: Getting data from a child page Pin
kubben24-Aug-07 7:34
kubben24-Aug-07 7:34 
If you use javascript you can do stuff like self.opener.forms... to set fields on the form who opened the child form. It can get kind of complicated if you go that way, but it does work.

Here is some old code I used when a child form was allowing the user to select a date: (it is in vb.net 1.1, sorry if that is the wrong version and code language)
Private Sub closewindow(ByVal indate As Date)
        Dim myScript As New StringBuilder
        With myScript
            .Append("<script>")
            .Append(Environment.NewLine)
            'This code sets the correct field on the opener form
            Dim tmpstr As String = "self.opener.document.forms[0]." + CStr(Session("DatelookupField"))
            .Append(tmpstr)
            .Append(".value = """)
            .Append(indate.ToShortDateString)
            .Append("""")
            .Append(Environment.NewLine)
            'focus the opener form
            .Append("self.opener.focus()")
            .Append(Environment.NewLine)
                      'Close the calendar window
            .Append("self.close()")
            .Append(Environment.NewLine)
            .Append("</script>")
            Page.RegisterStartupScript("close window", .ToString())
        End With
    End Sub

In the parent form when the button was clicked to open the new child form I set the session variable:
Session("DatelookupField") = "txtBoxWeekending"

Maybe not the best code, I did write it quite a few years ago, but it does work.

Ben
QuestionTextbox size on Pocket PC Device Pin
mymacryan24-Aug-07 6:03
mymacryan24-Aug-07 6:03 
Questionget countryname using ipaddress Pin
vidyasankar24-Aug-07 4:23
vidyasankar24-Aug-07 4:23 
AnswerRe: get countryname using ipaddress Pin
Jaiprakash M Bankolli24-Aug-07 21:11
Jaiprakash M Bankolli24-Aug-07 21:11 
QuestionFile Upload to server hard disk in asp.net Pin
ysunil_7424-Aug-07 4:15
ysunil_7424-Aug-07 4:15 
AnswerRe: File Upload to server hard disk in asp.net Pin
lastFarhi24-Aug-07 11:50
lastFarhi24-Aug-07 11:50 
AnswerRe: File Upload to server hard disk in asp.net Pin
Jaiprakash M Bankolli24-Aug-07 21:55
Jaiprakash M Bankolli24-Aug-07 21:55 
Questionhelp!!! its about saving data using codes Pin
Rharzkie24-Aug-07 4:04
Rharzkie24-Aug-07 4:04 
AnswerRe: help!!! its about saving data using codes Pin
Fred_Smith24-Aug-07 7:16
Fred_Smith24-Aug-07 7:16 
GeneralRe: help!!! its about saving data using codes Pin
Rharzkie24-Aug-07 16:23
Rharzkie24-Aug-07 16:23 
GeneralRe: help!!! its about saving data using codes Pin
Fred_Smith26-Aug-07 9:24
Fred_Smith26-Aug-07 9:24 
Questionhow to create itemtemplate in datalist Pin
imranafsari24-Aug-07 3:49
imranafsari24-Aug-07 3:49 
AnswerRe: how to create itemtemplate in datalist Pin
l0kke24-Aug-07 5:29
l0kke24-Aug-07 5:29 
QuestionRunning Audio in ASP.NET web app. Pin
.NET- India 24-Aug-07 3:04
.NET- India 24-Aug-07 3:04 
AnswerRe: Running Audio in ASP.NET web app. Pin
dandy7224-Aug-07 9:31
dandy7224-Aug-07 9:31 
Questionhow to retrive the value from checkboxlist Pin
biswa4724-Aug-07 2:44
biswa4724-Aug-07 2:44 
AnswerRe: how to retrive the value from checkboxlist Pin
imranafsari24-Aug-07 3:44
imranafsari24-Aug-07 3:44 
QuestionRe: how to retrive the value from checkboxlist Pin
biswa4724-Aug-07 18:42
biswa4724-Aug-07 18:42 

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.