try using 
window.opener.locatio.href (parentwindow url)
before 
self.close.

Cheers,
Leela Krishna

On 7/13/05, Tegest Tesfaye <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I have a form with textbox control and I populate the text box from a
> calander control which is next to the textbox. I am doing that by writing a
> code in HTML page 
> 
> <img src="../images/buttons/smallcalendar.gif"
> style="cursor:hand"
> onclick="window.open('../includes/calendarpopup.aspx?textbox=txtCompensationNonNonSecurity&Date='
> +
> txtCompensationNonNonSecurity.value,'cal','width=250,height=225,left=270,top=180')">
> 
> So when the image  is clicked this takes to the calander page and below is
> part the code in the code behind on the cacalnder page which is trigered
> when the date changes..  I want to be able to post back the original page
> under this event or be able to hit the text_changed event of the text box.
> How would I accompliah this ? What would be the javascript code I need to
> put to post back the page. I think it should come before self.close line.
> 
> 
> 
> 
> 
> Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As
> System.EventArgs)
> 
> Dim strScript As String = "<script>window.opener.document.forms(0)." +
> control.Value + ".value = '"
> 
> strScript += calDate.SelectedDate.ToString("MM/dd/yyyy")
> 
> strScript += "';self.close()"
> 
> strScript += "</" + "script>"
> 
> RegisterClientScriptBlock("anything", strScript)
> 
> End Sub
> 
> 
> 
> Thanks Tegest
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> SPONSORED LINKS 
> Programming languages C programming language Computer programming languages 
> Java programming language C programming language History of computer
> programming language 
> ________________________________
> YAHOO! GROUPS LINKS 
> 
>  Visit your group "AspNetAnyQuestionIsOk" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> ________________________________
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to