Click here to Skip to main content
16,004,479 members
Home / Discussions / C#
   

C#

 
GeneralRe: Opening our windows application by double clicking a file... Pin
jaypatel51225-Mar-09 20:37
jaypatel51225-Mar-09 20:37 
JokeRe: Opening our windows application by double clicking a file... Pin
dan!sh 25-Mar-09 20:55
professional dan!sh 25-Mar-09 20:55 
GeneralRe: Opening our windows application by double clicking a file... Pin
jaypatel51225-Mar-09 20:57
jaypatel51225-Mar-09 20:57 
QuestionControl background color/image Pin
Sandeep Kalra25-Mar-09 19:30
Sandeep Kalra25-Mar-09 19:30 
AnswerRe: Control background color/image Pin
Xmen Real 25-Mar-09 19:44
professional Xmen Real 25-Mar-09 19:44 
GeneralRe: Control background color/image Pin
Sandeep Kalra25-Mar-09 20:24
Sandeep Kalra25-Mar-09 20:24 
QuestionJavascript : Disable buttone Pin
Ramkithepower25-Mar-09 19:03
Ramkithepower25-Mar-09 19:03 
AnswerRe: Javascript : Disable buttone Pin
tech60325-Mar-09 19:24
tech60325-Mar-09 19:24 
I would suggest just doing it in your code behind. This is a bit of c# code that works.


On the aspx page :

<asp:textbox id="TextBox1" ontextchanged="TextBox1_TextChanged" autopostback="true" runat="server" xmlns:asp="#unknown">
<asp:button id="Button1" runat="server" text="Button" xmlns:asp="#unknown">

in the code behind

protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Button1.Enabled = false;
}

Now take note to the field AutoPostBack="true" this will update the button automatically after you click out of the textbox itself, which will cause the page to update. If you want to manually update the page you can just remove that line.

Hope that helps

Matthew Vass
QA Analyst
mvass@hostmysite.com
HostMySite.com

AnswerRe: Javascript : Disable buttone Pin
Cracked-Down25-Mar-09 19:28
Cracked-Down25-Mar-09 19:28 
Questiondynamic table in data base Pin
Mangesh Tomar25-Mar-09 18:43
Mangesh Tomar25-Mar-09 18:43 
AnswerRe: dynamic table in data base Pin
tech60325-Mar-09 19:35
tech60325-Mar-09 19:35 
GeneralRe: dynamic table in data base Pin
dano2k325-Mar-09 22:28
dano2k325-Mar-09 22:28 
GeneralRe: dynamic table in data base Pin
Mangesh Tomar26-Mar-09 0:10
Mangesh Tomar26-Mar-09 0:10 
Question[Message Deleted] Pin
rpopple25-Mar-09 16:47
rpopple25-Mar-09 16:47 
AnswerRe: line number in a multiline edit window Pin
Xmen Real 25-Mar-09 19:46
professional Xmen Real 25-Mar-09 19:46 
AnswerRe: line number in a multiline edit window Pin
Henry Minute26-Mar-09 1:32
Henry Minute26-Mar-09 1:32 
Questionhow to browse a remote directory using ftp client Pin
T_Teef25-Mar-09 13:07
T_Teef25-Mar-09 13:07 
AnswerRe: how to browse a remote directory using ftp client Pin
ky_rerun25-Mar-09 16:56
ky_rerun25-Mar-09 16:56 
AnswerRe: how to browse a remote directory using ftp client Pin
logiclabz25-Mar-09 22:30
logiclabz25-Mar-09 22:30 
GeneralRe: how to browse a remote directory using ftp client Pin
T_Teef26-Mar-09 13:11
T_Teef26-Mar-09 13:11 
QuestionReflection ! Pin
Mohammad Dayyan25-Mar-09 11:29
Mohammad Dayyan25-Mar-09 11:29 
AnswerRe: Reflection ! Pin
DaveyM6925-Mar-09 11:35
professionalDaveyM6925-Mar-09 11:35 
GeneralRe: Reflection ! Pin
Mohammad Dayyan25-Mar-09 11:45
Mohammad Dayyan25-Mar-09 11:45 
GeneralRe: Reflection ! Pin
DaveyM6925-Mar-09 11:50
professionalDaveyM6925-Mar-09 11:50 
GeneralRe: Reflection ! Pin
Mohammad Dayyan25-Mar-09 11:53
Mohammad Dayyan25-Mar-09 11:53 

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.