Click here to Skip to main content
15,890,506 members
Home / Discussions / Web Development
   

Web Development

 
QuestionWhy an application variable is getting resetted in global.asa file? Pin
JUNEYT5-Oct-06 23:29
JUNEYT5-Oct-06 23:29 
AnswerRe: Why an application variable is getting resetted in global.asa file? Pin
Guffa6-Oct-06 1:58
Guffa6-Oct-06 1:58 
QuestionHow to create tree structure of folder in php? Pin
hiral_shah5-Oct-06 19:32
hiral_shah5-Oct-06 19:32 
Questionraw webservices... Pin
$0.05$5-Oct-06 13:38
$0.05$5-Oct-06 13:38 
AnswerRe: raw webservices... Pin
Guffa5-Oct-06 14:10
Guffa5-Oct-06 14:10 
GeneralRe: raw webservices... Pin
$0.05$5-Oct-06 14:13
$0.05$5-Oct-06 14:13 
QuestionCalendar Popup Pin
Sam Heller5-Oct-06 2:34
Sam Heller5-Oct-06 2:34 
AnswerRe: Calendar Popup Pin
Kschuler6-Oct-06 10:33
Kschuler6-Oct-06 10:33 
Personally, my favorite way to popup a helpful calendar is to open a new window using javascript. This new window has JUST the calendar and the name of the textbox that it needs to set a value for is passed in the url. Then, to set up the calendar to update that textbox on the other window I add this code:

Note: calPicker is my Calendar control
Protected Sub calPicker_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles calPicker.DayRender
    ' Clear the link from this day
    e.Cell.Controls.Clear()

    ' Add the custom link
    Dim Link As New HyperLink
    Link.Text = e.Day.Date.Day
    'Format colors
    If e.Day.IsOtherMonth Then
        Link.ForeColor = Drawing.Color.DimGray
    Else
        Link.ForeColor = Drawing.Color.Black
    End If
    Link.ToolTip = e.Day.Date.ToString("MMMM d, yyyy")

    'Tell the link which control on the other window to update
    Link.Attributes.Add("href", "JavaScript:window.opener.document." & Request.QueryString("field") & ".value = '" & e.Day.Date.ToString("yyyyMMdd") & "'; window.close();")

    e.Cell.Controls.Add(Link)

End Sub


You can still do it your way if you want, you will just have to setup a bunch of flag variables to check and see if you are supposed to hide the css or not, and you can also use hidden fields on the aspx side, and javascript.

Hope this helps.
QuestionAccess word through automation in javascript Pin
Nitin19815-Oct-06 2:19
Nitin19815-Oct-06 2:19 
QuestionStrange HTML nested table problem Pin
Hemant Mane4-Oct-06 22:27
Hemant Mane4-Oct-06 22:27 
AnswerRe: Strange HTML nested table problem Pin
Paeth.Claudius-Raphael4-Oct-06 23:45
Paeth.Claudius-Raphael4-Oct-06 23:45 
GeneralRe: Strange HTML nested table problem Pin
Hemant Mane5-Oct-06 0:27
Hemant Mane5-Oct-06 0:27 
GeneralRe: Strange HTML nested table problem Pin
Paeth.Claudius-Raphael5-Oct-06 0:43
Paeth.Claudius-Raphael5-Oct-06 0:43 
GeneralRe: Strange HTML nested table problem Pin
Hemant Mane5-Oct-06 0:54
Hemant Mane5-Oct-06 0:54 
QuestionEvent: when the txt value changed Pin
militiaware4-Oct-06 22:27
militiaware4-Oct-06 22:27 
AnswerRe: Event: when the txt value changed Pin
led mike5-Oct-06 4:57
led mike5-Oct-06 4:57 
QuestionForm validation - form.length Pin
braveheartkenya4-Oct-06 16:52
braveheartkenya4-Oct-06 16:52 
QuestionAuthentication & authorization issue for IIS Pin
Elena_2006oct4-Oct-06 2:33
Elena_2006oct4-Oct-06 2:33 
AnswerRe: Authentication & authorization issue for IIS Pin
aamironline4-Oct-06 5:54
aamironline4-Oct-06 5:54 
QuestionHow to read and write image from MS Access database? (OLE Object) [modified] Pin
Richard Htin3-Oct-06 20:55
Richard Htin3-Oct-06 20:55 
AnswerRe: How to read and write image from MS Access database? (OLE Object) Pin
Sam Heller5-Oct-06 2:50
Sam Heller5-Oct-06 2:50 
GeneralRe: How to read and write image from MS Access database? (OLE Object) Pin
Dennis Jeffrey7-Oct-06 5:06
Dennis Jeffrey7-Oct-06 5:06 
GeneralRe: How to read and write image from MS Access database? (OLE Object) Pin
Sam Heller7-Oct-06 5:55
Sam Heller7-Oct-06 5:55 
GeneralRe: How to read and write image from MS Access database? (OLE Object) Pin
Dennis Jeffrey7-Oct-06 6:04
Dennis Jeffrey7-Oct-06 6:04 
QuestionCustomize button action in IE Pin
mfranco_neto3-Oct-06 8:51
mfranco_neto3-Oct-06 8:51 

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.