Click here to Skip to main content
15,887,175 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to get live stream from webcam in our web page? Pin
Christian Graus10-Nov-09 20:20
protectorChristian Graus10-Nov-09 20:20 
AnswerRe: How to get live stream from webcam in our web page? Pin
Abhishek Sur10-Nov-09 20:36
professionalAbhishek Sur10-Nov-09 20:36 
AnswerRe: How to get live stream from webcam in our web page? Pin
saurabh8april11-Nov-09 1:41
saurabh8april11-Nov-09 1:41 
QuestionTexbox is not Clear On Postback Pin
alaminfad10-Nov-09 19:04
alaminfad10-Nov-09 19:04 
AnswerRe: Texbox is not Clear On Postback Pin
Gamzun10-Nov-09 19:20
Gamzun10-Nov-09 19:20 
AnswerRe: Texbox is not Clear On Postback Pin
Christian Graus10-Nov-09 19:34
protectorChristian Graus10-Nov-09 19:34 
AnswerRe: Texbox is not Clear On Postback Pin
Abhishek Sur10-Nov-09 20:50
professionalAbhishek Sur10-Nov-09 20:50 
GeneralRe: Texbox is not Clear On Postback Pin
alaminfad11-Nov-09 0:25
alaminfad11-Nov-09 0:25 
Unfortunately it did'nt work ,i do want this every time the page is posted back , i mean when the user select from the DDL the textbox1 should be empty for him(user) to notice and select a date from the Obout calender image , i tried it both ways(if and if not is post back) it didnt work , i found this property Clear() on the Obout tutorials :
**************************************************

If you need to clear the current selected date simply call the method Clear.

Example:

<obout:Calendar runat="server" id="myCal">
</obout:Calendar>

<a onclick="myCal.Clear();">
Clear
</a>

***********************************************

by the way ive two page loads
one page_load in the user control where the DDl and obout Calender and of course its Textbox which we want to clear

Second page_load in the actual default page

so ive tried to use that property in both page_loads it didnt work ,i have follwed the debugger it going in the right way , here is the code
-----------------------------
Dim script As New StringBuilder
' Dim reader As StreamReader = File.OpenText(Server.MapPath(includeFilePath))

If Not Page.ClientScript.IsClientScriptBlockRegistered("MySript") Then
'script.Append(reader.ReadToEnd.Replace("{title}", Me.Title).Replace("{buttonLabel}", Me.ButtonLabel))

' delay alert 1 ms to handle postback
script.Append("<script language='javascript'>document.dfghsdfggetElementByID('Calendar1').Clear();</script>")

Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "MySript", script.ToString)
End If
--------------------------------------------------------------------
one more thing the server doesnt seem to validate what inside the script even if write

Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "MySript","Nothing")


what is a problem? + how to fix it?
QuestionHTTP redirect request failed. Pin
Member-495917610-Nov-09 18:43
Member-495917610-Nov-09 18:43 
AnswerRe: HTTP redirect request failed. Pin
padmanabhan N10-Nov-09 18:47
padmanabhan N10-Nov-09 18:47 
GeneralRe: HTTP redirect request failed. Pin
Member-495917610-Nov-09 18:55
Member-495917610-Nov-09 18:55 
GeneralRe: HTTP redirect request failed. Pin
Christian Graus10-Nov-09 18:59
protectorChristian Graus10-Nov-09 18:59 
GeneralRe: HTTP redirect request failed. Pin
Member-495917610-Nov-09 19:13
Member-495917610-Nov-09 19:13 
GeneralRe: HTTP redirect request failed. Pin
Christian Graus10-Nov-09 19:33
protectorChristian Graus10-Nov-09 19:33 
AnswerRe: HTTP redirect request failed. Pin
_Damian S_10-Nov-09 19:19
professional_Damian S_10-Nov-09 19:19 
QuestionDesign Patteren Pin
Amit Patel198510-Nov-09 18:36
Amit Patel198510-Nov-09 18:36 
AnswerRe: Design Patteren Pin
Christian Graus10-Nov-09 19:00
protectorChristian Graus10-Nov-09 19:00 
GeneralRe: Design Patteren Pin
Amit Patel198510-Nov-09 21:04
Amit Patel198510-Nov-09 21:04 
AnswerRe: Design Patteren Pin
Gamzun10-Nov-09 19:05
Gamzun10-Nov-09 19:05 
QuestionDifferent .NET Framework versions on same server Pin
Anuj Chauhan from India10-Nov-09 18:25
Anuj Chauhan from India10-Nov-09 18:25 
AnswerRe: Different .NET Framework versions on same server Pin
Christian Graus10-Nov-09 18:31
protectorChristian Graus10-Nov-09 18:31 
AnswerRe: Different .NET Framework versions on same server Pin
saurabh8april11-Nov-09 2:04
saurabh8april11-Nov-09 2:04 
Questiongridviewdisappear at postback Pin
anilaabc10-Nov-09 18:22
anilaabc10-Nov-09 18:22 
AnswerRe: gridviewdisappear at postback Pin
Christian Graus10-Nov-09 18:31
protectorChristian Graus10-Nov-09 18:31 
GeneralRe: gridviewdisappear at postback Pin
anilaabc10-Nov-09 19:17
anilaabc10-Nov-09 19:17 

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.