Click here to Skip to main content
15,900,325 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ImageUrl does not update in Updatepanel Pin
Clay Aldebol28-Feb-09 6:12
Clay Aldebol28-Feb-09 6:12 
Question[Message Deleted] Pin
Terick24-Feb-09 11:14
Terick24-Feb-09 11:14 
AnswerRe: Javascript to disable button on form if checkbox in gridview is selected Pin
Christian Graus24-Feb-09 12:27
protectorChristian Graus24-Feb-09 12:27 
QuestionRepeater control Pin
cyxapebpek24-Feb-09 10:46
cyxapebpek24-Feb-09 10:46 
AnswerRe: Repeater control Pin
Christian Graus24-Feb-09 11:43
protectorChristian Graus24-Feb-09 11:43 
GeneralRe: Repeater control Pin
cyxapebpek24-Feb-09 11:47
cyxapebpek24-Feb-09 11:47 
QuestionJavascript to enable/disable textbox based on checkbox [modified] Pin
Terick24-Feb-09 10:27
Terick24-Feb-09 10:27 
AnswerRe: Javascript to enable/disable textbox and button based on checkbox Pin
ToddHileHoffer24-Feb-09 10:42
ToddHileHoffer24-Feb-09 10:42 
Can you use an ajax solution to post back and enable / disable all of the controls in server side code?

Otherwise, your best bet is to create a public static string property in server side code such as textBoxIds. On the item databound event of your grid,
set
<br />
 textBoxIds += (textbox)row.findcontrol("txtbox").clientId + ",";<br />

Then add javascript to iterate your comma separated string on client.

 <br />
<br />
var textBoxIds = '<%= this.textBoxIds %>';<br />
<br />
         <br />
                var Ids = textBoxIds.split(',');<br />
                for (var i = 0; i < Ids.length; i++) {<br />
                    var tb = document.getElementById(Ids[i]);<br />
                    if (tb != null) {<br />
                         tb.disabled = true;<br />
                        }<br />
                    }<br />



Good luck.


I didn't get any requirements for the signature


GeneralRe: Javascript to enable/disable textbox and button based on checkbox Pin
Terick24-Feb-09 10:51
Terick24-Feb-09 10:51 
GeneralRe: Javascript to enable/disable textbox and button based on checkbox Pin
ToddHileHoffer24-Feb-09 12:54
ToddHileHoffer24-Feb-09 12:54 
GeneralRe: Javascript to enable/disable textbox and button based on checkbox Pin
Terick25-Feb-09 3:39
Terick25-Feb-09 3:39 
QuestionDataset vs Customcollection Pin
Mogaambo24-Feb-09 10:09
Mogaambo24-Feb-09 10:09 
AnswerRe: Dataset vs Customcollection Pin
ToddHileHoffer24-Feb-09 10:35
ToddHileHoffer24-Feb-09 10:35 
QuestionActivation Code... Pin
sitnet24-Feb-09 8:47
sitnet24-Feb-09 8:47 
AnswerRe: Activation Code... Pin
Christian Graus24-Feb-09 9:21
protectorChristian Graus24-Feb-09 9:21 
QuestionASP.net Pin
Suchinthaka24-Feb-09 6:19
Suchinthaka24-Feb-09 6:19 
AnswerRe: ASP.net Pin
varsha dixit24-Feb-09 7:04
varsha dixit24-Feb-09 7:04 
GeneralRe: ASP.net [modified] Pin
ToddHileHoffer24-Feb-09 8:28
ToddHileHoffer24-Feb-09 8:28 
GeneralRe: ASP.net Pin
Yusuf24-Feb-09 11:33
Yusuf24-Feb-09 11:33 
GeneralRe: ASP.net Pin
ToddHileHoffer24-Feb-09 12:59
ToddHileHoffer24-Feb-09 12:59 
AnswerRe: ASP.net Pin
Christian Graus24-Feb-09 8:28
protectorChristian Graus24-Feb-09 8:28 
QuestionMDB view thru browser Pin
Civic0624-Feb-09 5:55
Civic0624-Feb-09 5:55 
AnswerRe: MDB view thru browser Pin
Jon Rista24-Feb-09 6:17
Jon Rista24-Feb-09 6:17 
GeneralRe: MDB view thru browser Pin
Christian Graus24-Feb-09 8:29
protectorChristian Graus24-Feb-09 8:29 
GeneralRe: MDB view thru browser Pin
Jon Rista24-Feb-09 8:46
Jon Rista24-Feb-09 8:46 

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.