Click here to Skip to main content
15,843,727 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: Trace a CString Pin
David Crow16-Jul-18 2:48
David Crow16-Jul-18 2:48 
GeneralRe: Trace a CString Pin
tony.attwood@ntlworld.com5-May-23 7:00
tony.attwood@ntlworld.com5-May-23 7:00 
AnswerRe: Trace a CString Pin
Jochen Arndt16-Jul-18 0:12
professionalJochen Arndt16-Jul-18 0:12 
Questionmapping pthread id to custom id Pin
meerokh13-Jul-18 6:51
meerokh13-Jul-18 6:51 
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan13-Jul-18 21:48
mveRichard MacCutchan13-Jul-18 21:48 
GeneralRe: mapping pthread id to custom id Pin
meerokh14-Jul-18 1:24
meerokh14-Jul-18 1:24 
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan14-Jul-18 4:36
mveRichard MacCutchan14-Jul-18 4:36 
QuestionHow to disable a HTML Input in c# Pin
Member 1219465611-Jul-18 16:50
Member 1219465611-Jul-18 16:50 
Hi all,

Tt's a HTML Input box like this.
<input id="testInput" name="testInput" value="" tabindex="0" />


and for some reason, I cannot use ASP.net textbox.

However, I need to disable it when a button is clicked (I tried both AUTOPOSTBACK and non-AUTOPOSTBACK button) .

I tried the followings in c# but none of these works.

Page.ClientScript.RegisterStartupScript(this.GetType(), "clientscript", "document.getElementById('testInput').readOnly = true;");

Page.ClientScript.RegisterStartupScript(this.GetType(), "clientscript", "document.getElementById('testInput').disable= true;");

Page.ClientScript.RegisterStartupScript(this.GetType(), "clientscript", "document.getElementById('testInput').disable= 'true';");
'
Please advice, thanks!
AnswerRe: How to disable a HTML Input in c# Pin
Bryian Tan11-Jul-18 18:30
professionalBryian Tan11-Jul-18 18:30 
Questionc++ - std :: map - Is my idea too dirty? Pin
User 1106097911-Jul-18 9:40
User 1106097911-Jul-18 9:40 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
harold aptroot11-Jul-18 10:48
harold aptroot11-Jul-18 10:48 
PraiseRe: c++ - std :: map - Is my idea too dirty? Pin
User 1106097911-Jul-18 10:54
User 1106097911-Jul-18 10:54 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan11-Jul-18 20:44
mveRichard MacCutchan11-Jul-18 20:44 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
harold aptroot12-Jul-18 13:34
harold aptroot12-Jul-18 13:34 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan12-Jul-18 20:42
mveRichard MacCutchan12-Jul-18 20:42 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
harold aptroot12-Jul-18 21:19
harold aptroot12-Jul-18 21:19 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan12-Jul-18 21:41
mveRichard MacCutchan12-Jul-18 21:41 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
User 1106097913-Jul-18 8:44
User 1106097913-Jul-18 8:44 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan13-Jul-18 20:13
mveRichard MacCutchan13-Jul-18 20:13 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan14-Jul-18 5:10
mveRichard MacCutchan14-Jul-18 5:10 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
User 1106097914-Jul-18 6:19
User 1106097914-Jul-18 6:19 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
CPallini11-Jul-18 22:22
mveCPallini11-Jul-18 22:22 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Jochen Arndt13-Jul-18 0:13
professionalJochen Arndt13-Jul-18 0:13 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
User 1106097913-Jul-18 7:54
User 1106097913-Jul-18 7:54 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Randor 23-Jul-18 13:20
professional Randor 23-Jul-18 13:20 

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.