Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
can any one correct this code

Page.ClientScript.GetWebResourceUrl(TypeOf (txtUsername) Is TextBox, "WebUI.JSFiles.jResource.js")


I am trying to call a webresource, but its showing error.

the error is

Value of type 'Boolean' cannot be converted to 'System.Type'.


thank you
Posted
Updated 6-Jun-11 18:41pm
v3
Comments
thatraja 6-Jun-11 23:40pm    
Always include your error message in your question.

1 solution

Try:
VB
Page.ClientScript.GetWebResourceUrl(TypeOf (Page), "WebUI.JSFiles.jResource.js")
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900