Click here to Skip to main content
15,915,839 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to change image in repeater header Pin
Sandeep Akhare16-Oct-07 19:34
Sandeep Akhare16-Oct-07 19:34 
Questionhow to display pictures in a datagrid Pin
fraijo16-Oct-07 2:51
fraijo16-Oct-07 2:51 
AnswerRe: how to display pictures in a datagrid Pin
kubben16-Oct-07 3:15
kubben16-Oct-07 3:15 
QuestionHow to capture the date selected in a pop up Pin
rockyl16-Oct-07 2:40
rockyl16-Oct-07 2:40 
AnswerRe: How to capture the date selected in a pop up [modified] Pin
Sandeep Kumar16-Oct-07 3:00
Sandeep Kumar16-Oct-07 3:00 
AnswerRe: How to capture the date selected in a pop up Pin
kubben16-Oct-07 3:00
kubben16-Oct-07 3:00 
GeneralRe: How to capture the date selected in a pop up Pin
rockyl16-Oct-07 3:08
rockyl16-Oct-07 3:08 
GeneralRe: How to capture the date selected in a pop up Pin
kubben16-Oct-07 3:19
kubben16-Oct-07 3:19 
Here is some vb.net code I wrote a while back. I had the user press a save button that did a post back and then called this method:
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


All this code is .net 1.1 I set a session variable in the parent form so I knew what the control name was to pass the date back to the parent form.

Hope that helps.
Ben
QuestionCreating a word report like report builder in sql reporting services Pin
pksahoo16-Oct-07 2:15
pksahoo16-Oct-07 2:15 
Questionxml Stream to remote client Pin
hansipet16-Oct-07 2:11
hansipet16-Oct-07 2:11 
AnswerRe: xml Stream to remote client Pin
Ennis Ray Lynch, Jr.16-Oct-07 4:59
Ennis Ray Lynch, Jr.16-Oct-07 4:59 
QuestionI want to display videos in asp.net Pin
Kurmala16-Oct-07 2:04
Kurmala16-Oct-07 2:04 
AnswerRe: I want to display videos in asp.net Pin
John-ph16-Oct-07 2:08
John-ph16-Oct-07 2:08 
GeneralRe: I want to display videos in asp.net Pin
Kurmala16-Oct-07 2:12
Kurmala16-Oct-07 2:12 
GeneralRe: I want to display videos in asp.net Pin
Kurmala16-Oct-07 2:30
Kurmala16-Oct-07 2:30 
GeneralRe: I want to display videos in asp.net Pin
cst_cfit16-Oct-07 18:50
cst_cfit16-Oct-07 18:50 
Questioni need help to get one layer/pop menu by clicking checkbox Pin
nirmalaakki16-Oct-07 1:55
nirmalaakki16-Oct-07 1:55 
AnswerRe: i need help to get one layer/pop menu by clicking checkbox Pin
Sandeep Kumar16-Oct-07 2:10
Sandeep Kumar16-Oct-07 2:10 
QuestionDisabling the Close button using javascript [modified] Pin
manowj16-Oct-07 1:47
manowj16-Oct-07 1:47 
AnswerRe: Disabling the Close button using javascript Pin
John-ph16-Oct-07 1:56
John-ph16-Oct-07 1:56 
QuestionIts Problem or my mistake Pin
ANKUR2216-Oct-07 1:36
ANKUR2216-Oct-07 1:36 
AnswerRe: Its Problem or my mistake Pin
Christian Graus16-Oct-07 1:54
protectorChristian Graus16-Oct-07 1:54 
AnswerRe: Its Problem or my mistake Pin
Guffa16-Oct-07 2:24
Guffa16-Oct-07 2:24 
QuestionNot getting name from HttpContext.Current.User.Identity.Name Pin
That's Aragon16-Oct-07 1:31
That's Aragon16-Oct-07 1:31 
AnswerRe: Not getting name from HttpContext.Current.User.Identity.Name Pin
Sandeep Kumar16-Oct-07 2:05
Sandeep Kumar16-Oct-07 2:05 

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.