Click here to Skip to main content
15,889,879 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sorting a generic list of objects depending upon its one of objects property Pin
n.podbielski8-Oct-12 21:52
n.podbielski8-Oct-12 21:52 
GeneralRe: Sorting a generic list of objects depending upon its one of objects property Pin
indian1438-Oct-12 21:58
indian1438-Oct-12 21:58 
SuggestionRe: Sorting a generic list of objects depending upon its one of objects property Pin
n.podbielski8-Oct-12 22:15
n.podbielski8-Oct-12 22:15 
Questiondoes form view shows only one record at a time? Pin
UDTWS8-Oct-12 18:18
UDTWS8-Oct-12 18:18 
AnswerRe: does form view shows only one record at a time? Pin
n.podbielski8-Oct-12 23:36
n.podbielski8-Oct-12 23:36 
QuestionHow to make some part of textbox text to read only and other part to be editable Pin
vinay_sinha8-Oct-12 7:25
vinay_sinha8-Oct-12 7:25 
AnswerTextbox may not be the correct control Pin
David Mujica8-Oct-12 8:32
David Mujica8-Oct-12 8:32 
AnswerRe: How to make some part of textbox text to read only and other part to be editable Pin
AspDotNetDev8-Oct-12 11:51
protectorAspDotNetDev8-Oct-12 11:51 
I'll make the assumption that any line which can be edited cannot be broken into multiple lines...

Use JavaScript to listen for any change/key press/etc events. Also, use JavaScript to store the original text in an array (it will also store if a line is read only). Any time the text changes, check to ensure that any read only lines did not change. If they did, modify those lines so they are back to their original.

When the textbox is submitted back to the server, have your C# or VB.Net code do the same check as the JavaScript (in case the JavaScript was bypassed).

As somebody else mentioned, it would be much easier to use another control, such as a grid view (or repeater), to split each line into its own control. That will allow you, for example, to more clearly indicate which lines are editable and which are read only (e.g., by graying out the read only lines).

GeneralRe: How to make some part of textbox text to read only and other part to be editable Pin
n.podbielski8-Oct-12 23:57
n.podbielski8-Oct-12 23:57 
AnswerRe: How to make some part of textbox text to read only and other part to be editable Pin
gjllyl9-Oct-12 17:12
gjllyl9-Oct-12 17:12 
GeneralRe: How to make some part of textbox text to read only and other part to be editable Pin
vinay_sinha9-Oct-12 19:19
vinay_sinha9-Oct-12 19:19 
Questionasp.net 4 with sql server 2008 Pin
lillain2198-Oct-12 5:32
lillain2198-Oct-12 5:32 
AnswerRe: asp.net 4 with sql server 2008 Pin
Sarvesh Kushwaha8-Oct-12 5:49
Sarvesh Kushwaha8-Oct-12 5:49 
GeneralRe: asp.net 4 with sql server 2008 Pin
lillain2198-Oct-12 9:10
lillain2198-Oct-12 9:10 
AnswerRe: asp.net 4 with sql server 2008 Pin
Vasudevan Deepak Kumar9-Oct-12 7:18
Vasudevan Deepak Kumar9-Oct-12 7:18 
GeneralRe: asp.net 4 with sql server 2008 Pin
lillain2199-Oct-12 21:47
lillain2199-Oct-12 21:47 
Questiongridview rowupdating in ascx file Pin
jhyn7-Oct-12 20:13
jhyn7-Oct-12 20:13 
AnswerRe: gridview rowupdating in ascx file Pin
Sarvesh Kushwaha8-Oct-12 5:23
Sarvesh Kushwaha8-Oct-12 5:23 
Question'System.Web.HttpUnhandledException' Error Pin
rattlesnake3167-Oct-12 17:55
rattlesnake3167-Oct-12 17:55 
AnswerRe: 'System.Web.HttpUnhandledException' Error Pin
Eddy Vluggen8-Oct-12 0:50
professionalEddy Vluggen8-Oct-12 0:50 
AnswerRe: 'System.Web.HttpUnhandledException' Error Pin
Joshua Omundson9-Oct-12 6:50
Joshua Omundson9-Oct-12 6:50 
QuestionIntegrate SharpWebMail in existing project Pin
Soni19856-Oct-12 8:44
Soni19856-Oct-12 8:44 
QuestionThe 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. Pin
Ali Al Omairi(Abu AlHassan)6-Oct-12 5:38
professionalAli Al Omairi(Abu AlHassan)6-Oct-12 5:38 
AnswerRe: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. Pin
Thomas Daniels6-Oct-12 7:00
mentorThomas Daniels6-Oct-12 7:00 
GeneralAccess Database Engine 2010 Redistributable is not intended Pin
David Mujica8-Oct-12 2:56
David Mujica8-Oct-12 2:56 

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.