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

ASP.NET

 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Md. Marufuzzaman10-Sep-09 4:14
professionalMd. Marufuzzaman10-Sep-09 4:14 
AnswerRe: Error Use of unassigned local variable 'ClientScript' Pin
Zoki Manas10-Sep-09 3:54
Zoki Manas10-Sep-09 3:54 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Manas Bhardwaj10-Sep-09 4:01
professionalManas Bhardwaj10-Sep-09 4:01 
JokeRe: Error Use of unassigned local variable 'ClientScript' Pin
Abhijit Jana10-Sep-09 5:14
professionalAbhijit Jana10-Sep-09 5:14 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
J4amieC10-Sep-09 6:05
J4amieC10-Sep-09 6:05 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
N a v a n e e t h10-Sep-09 6:10
N a v a n e e t h10-Sep-09 6:10 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Abhishek Sur10-Sep-09 11:21
professionalAbhishek Sur10-Sep-09 11:21 
AnswerRe: Error Use of unassigned local variable 'ClientScript' Pin
Abhishek Sur10-Sep-09 5:10
professionalAbhishek Sur10-Sep-09 5:10 
Rather than using RegisterClientScriptBlock, it is better to use RegisterStarupScript

use
if(!this.ClientScript.IsClientScriptBlockRegistered("myscript"))
this.ClientScript.RegisterStartupScript(this.GetType(), "myscript", strScript , true);


Hope this helps. Rose | [Rose]

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Md. Marufuzzaman10-Sep-09 5:27
professionalMd. Marufuzzaman10-Sep-09 5:27 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Abhijit Jana10-Sep-09 5:33
professionalAbhijit Jana10-Sep-09 5:33 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Md. Marufuzzaman10-Sep-09 5:55
professionalMd. Marufuzzaman10-Sep-09 5:55 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Abhishek Sur10-Sep-09 9:04
professionalAbhishek Sur10-Sep-09 9:04 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Md. Marufuzzaman10-Sep-09 19:58
professionalMd. Marufuzzaman10-Sep-09 19:58 
GeneralRe: Error Use of unassigned local variable 'ClientScript' Pin
Abhishek Sur10-Sep-09 22:14
professionalAbhishek Sur10-Sep-09 22:14 
QuestionInput values are lost in postback Pin
smraj150310-Sep-09 1:51
smraj150310-Sep-09 1:51 
AnswerRe: Input values are lost in postback Pin
sashidhar10-Sep-09 1:53
sashidhar10-Sep-09 1:53 
GeneralRe: Input values are lost in postback Pin
smraj150310-Sep-09 1:59
smraj150310-Sep-09 1:59 
GeneralRe: Input values are lost in postback Pin
sashidhar10-Sep-09 2:04
sashidhar10-Sep-09 2:04 
GeneralRe: Input values are lost in postback Pin
smraj150310-Sep-09 2:11
smraj150310-Sep-09 2:11 
AnswerRe: Input values are lost in postback Pin
Abhijit Jana10-Sep-09 2:36
professionalAbhijit Jana10-Sep-09 2:36 
General[Message Deleted] Pin
smraj150310-Sep-09 3:04
smraj150310-Sep-09 3:04 
GeneralRe: Input values are lost in postback Pin
Manas Bhardwaj10-Sep-09 3:25
professionalManas Bhardwaj10-Sep-09 3:25 
GeneralRe: [Message Deleted] Pin
Abhijit Jana10-Sep-09 5:34
professionalAbhijit Jana10-Sep-09 5:34 
AnswerRe: Input values are lost in postback Pin
Abhishek Sur10-Sep-09 5:19
professionalAbhishek Sur10-Sep-09 5:19 
GeneralRe: Input values are lost in postback Pin
Abhijit Jana10-Sep-09 5:34
professionalAbhijit Jana10-Sep-09 5:34 

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.