Click here to Skip to main content
15,795,054 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to get live stream from webcam in our web page? Pin
Christian Graus10-Nov-09 21:20
protectorChristian Graus10-Nov-09 21:20 
AnswerRe: How to get live stream from webcam in our web page? Pin
Abhishek Sur10-Nov-09 21:36
professionalAbhishek Sur10-Nov-09 21:36 
AnswerRe: How to get live stream from webcam in our web page? Pin
saurabh8april11-Nov-09 2:41
saurabh8april11-Nov-09 2:41 
QuestionTexbox is not Clear On Postback Pin
alaminfad10-Nov-09 20:04
alaminfad10-Nov-09 20:04 
AnswerRe: Texbox is not Clear On Postback Pin
Gamzun10-Nov-09 20:20
Gamzun10-Nov-09 20:20 
AnswerRe: Texbox is not Clear On Postback Pin
Christian Graus10-Nov-09 20:34
protectorChristian Graus10-Nov-09 20:34 
AnswerRe: Texbox is not Clear On Postback Pin
Abhishek Sur10-Nov-09 21:50
professionalAbhishek Sur10-Nov-09 21:50 
GeneralRe: Texbox is not Clear On Postback Pin
alaminfad11-Nov-09 1:25
alaminfad11-Nov-09 1: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 19:43
Member-495917610-Nov-09 19:43 
AnswerRe: HTTP redirect request failed. Pin
padmanabhan N10-Nov-09 19:47
padmanabhan N10-Nov-09 19:47 
GeneralRe: HTTP redirect request failed. Pin
Member-495917610-Nov-09 19:55
Member-495917610-Nov-09 19:55 
GeneralRe: HTTP redirect request failed. Pin
Christian Graus10-Nov-09 19:59
protectorChristian Graus10-Nov-09 19:59 
GeneralRe: HTTP redirect request failed. Pin
Member-495917610-Nov-09 20:13
Member-495917610-Nov-09 20:13 
GeneralRe: HTTP redirect request failed. Pin
Christian Graus10-Nov-09 20:33
protectorChristian Graus10-Nov-09 20:33 
AnswerRe: HTTP redirect request failed. Pin
_Damian S_10-Nov-09 20:19
professional_Damian S_10-Nov-09 20:19 
QuestionDesign Patteren Pin
Amit Patel198510-Nov-09 19:36
Amit Patel198510-Nov-09 19:36 
AnswerRe: Design Patteren Pin
Christian Graus10-Nov-09 20:00
protectorChristian Graus10-Nov-09 20:00 
GeneralRe: Design Patteren Pin
Amit Patel198510-Nov-09 22:04
Amit Patel198510-Nov-09 22:04 
AnswerRe: Design Patteren Pin
Gamzun10-Nov-09 20:05
Gamzun10-Nov-09 20:05 
QuestionDifferent .NET Framework versions on same server Pin
Anuj Chauhan from India10-Nov-09 19:25
Anuj Chauhan from India10-Nov-09 19:25 
AnswerRe: Different .NET Framework versions on same server Pin
Christian Graus10-Nov-09 19:31
protectorChristian Graus10-Nov-09 19:31 
AnswerRe: Different .NET Framework versions on same server Pin
saurabh8april11-Nov-09 3:04
saurabh8april11-Nov-09 3:04 
Questiongridviewdisappear at postback Pin
anilaabc10-Nov-09 19:22
anilaabc10-Nov-09 19:22 
AnswerRe: gridviewdisappear at postback Pin
Christian Graus10-Nov-09 19:31
protectorChristian Graus10-Nov-09 19:31 
GeneralRe: gridviewdisappear at postback Pin
anilaabc10-Nov-09 20:17
anilaabc10-Nov-09 20: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.