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

ASP.NET

 
QuestionHow to get live stream from webcam in our web page? Pin
Member 446605910-Nov-09 20:07
Member 446605910-Nov-09 20:07 
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 
And also before you run a script check if the script block is already exists in the page.Do like this :

if(!this.ClientScript.IsClientScriptBlockRegistered("MyScript"))
{
Page.RegisterClientScriptBlock("MyScript","<script language=javascript>" & _
" document.getElementByID('" + TextBox1.ClientId +"').value = '' ; </script>")
}

Also make sure you are not doing this every time the page is posted back. Always check :
if(this.IsPostBack)
{
}

inside Page_Load

Finally, if you make TextBox as serverside, you can set the value inside ddlVacationTypes_SelectedIndexChanged by just calling
TextBox1.Text = ddlVacationTypes.SelectedValue

It must work. Smile | :)

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

GeneralRe: Texbox is not Clear On Postback Pin
alaminfad11-Nov-09 0:25
alaminfad11-Nov-09 0:25 
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 

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.