Click here to Skip to main content
15,888,803 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Prevent user to do multiple logins with same credentials Pin
rushi_gavankar24-Feb-09 1:58
rushi_gavankar24-Feb-09 1:58 
QuestionPage_Load firing 2 times Pin
pinna_hari23-Feb-09 17:21
pinna_hari23-Feb-09 17:21 
AnswerRe: Page_Load firing 2 times Pin
Expert Coming23-Feb-09 18:49
Expert Coming23-Feb-09 18:49 
GeneralRe: Page_Load firing 2 times Pin
pinna_hari23-Feb-09 19:28
pinna_hari23-Feb-09 19:28 
GeneralRe: Page_Load firing 2 times Pin
Expert Coming23-Feb-09 22:11
Expert Coming23-Feb-09 22:11 
QuestionFont Styles is appearing differently in two text boxes Pin
meeram39523-Feb-09 16:57
meeram39523-Feb-09 16:57 
AnswerRe: Font Styles is appearing differently in two text boxes Pin
Sneha Bisht23-Feb-09 20:42
Sneha Bisht23-Feb-09 20:42 
QuestionEnable Textbox on Gridview Pin
Terick23-Feb-09 12:36
Terick23-Feb-09 12:36 
Hi,

I have a gridview with a textbox template field. On two pages I need this textbox to be enabled but on a third page it must be disabled. What is the best way to do this? My gridview is a user control.

Right now I'm doing this:

<asp:templatefield headertext="Size" xmlns:asp="#unknown">
<itemtemplate>
<asp:textbox id="txtSize" runat="server" text="<%Bind("Size")%>" readonly="false" enabled="false" enableviewstate="true"></asp:textbox></itemtemplate></asp:templatefield>

If I change enabled to true then on all the pages the textbox is editable. Is there a way I can call the textbox property in the user control to enable or disable the textbox? For example (this isnt working though):

public bool EnableTextBox
{
get
{
return txtSize.Enabled;
}
set
{
txtSize.Enabled=Value;
}
}

Please help!
Thanks =)
AnswerRe: Enable Textbox on Gridview Pin
Christian Graus23-Feb-09 14:25
protectorChristian Graus23-Feb-09 14:25 
AnswerRe: Enable Textbox on Gridview Pin
Xmen Real 23-Feb-09 14:37
professional Xmen Real 23-Feb-09 14:37 
QuestionShow only 'A' items in gridview Pin
Terick23-Feb-09 8:47
Terick23-Feb-09 8:47 
AnswerRe: Show only 'A' items in gridview Pin
Christian Graus23-Feb-09 8:58
protectorChristian Graus23-Feb-09 8:58 
GeneralRe: Show only 'A' items in gridview Pin
Terick23-Feb-09 9:52
Terick23-Feb-09 9:52 
GeneralRe: Show only 'A' items in gridview Pin
Christian Graus23-Feb-09 9:57
protectorChristian Graus23-Feb-09 9:57 
GeneralRe: Show only 'A' items in gridview Pin
Terick23-Feb-09 10:06
Terick23-Feb-09 10:06 
GeneralRe: Show only 'A' items in gridview Pin
Christian Graus23-Feb-09 11:29
protectorChristian Graus23-Feb-09 11:29 
Questionnew line in constant Pin
radupopescu77723-Feb-09 8:25
radupopescu77723-Feb-09 8:25 
AnswerRe: new line in constant Pin
Christian Graus23-Feb-09 8:57
protectorChristian Graus23-Feb-09 8:57 
QuestionWindows service fails when database server rebooted. Pin
sajvargs23-Feb-09 6:45
sajvargs23-Feb-09 6:45 
AnswerRe: Windows service fails when database server rebooted. Pin
Christian Graus23-Feb-09 8:59
protectorChristian Graus23-Feb-09 8:59 
AnswerRe: Windows service fails when database server rebooted. Pin
Jörgen Andersson23-Feb-09 9:01
professionalJörgen Andersson23-Feb-09 9:01 
QuestionCreating aspx Page Dynamically Pin
Aman Bhullar23-Feb-09 5:19
Aman Bhullar23-Feb-09 5:19 
AnswerRe: Creating aspx Page Dynamically Pin
Christian Graus23-Feb-09 9:07
protectorChristian Graus23-Feb-09 9:07 
AnswerRe: Creating aspx Page Dynamically Pin
Colin Angus Mackay23-Feb-09 9:10
Colin Angus Mackay23-Feb-09 9:10 
GeneralRe: Creating aspx Page Dynamically Pin
Aman Bhullar23-Feb-09 19:13
Aman Bhullar23-Feb-09 19:13 

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.