Click here to Skip to main content
15,896,063 members

Comments by ddgjgj (Top 45 by date)

ddgjgj 10-Jan-18 7:32am View    
yes.So the user is in the create view (to create an entity), he starts to fill the fields , he fills the ID field , he wrotes HAHAHA on it , i want now to create a readonly link inside the view that fills by itself like this : (on the fly ) :

<<1a 1href="h1ttp://localhost:49477/Contents/Details1/@Model.Id"> link<1/a>
and this Id is automatically filled with the text that user writes in the ID FIELD ,so if he types HAHAHA in the ID field , the link will be

<1a href="1http://l1ocalhost:49477/Contents/Details1/HAHAHA"> link<1/a>

ID is a string type , lets forget a little about validation , constratins and so on in mvc , i am just asking is this possible or not ?
ddgjgj 10-Jan-18 7:20am View    
Sir , lets be clear again , i am in the create view so i am about to create a new entity that does not exist and doesnt have already an ID , lets pretend the user is filling all the fields in the view ID TITLE and so on , i want that ON THE FLY to do that , if the user writes something in the ID Editor field ,ID is a string and lets say he wrote HAHAHA as ID , now i want to have that value to have that 'HAHAHA' and show in the view as readonly text ..so inside the create view @if (Html.EditorFor(model => model.Id) !=null){ SHOW what user wrote in ID field} , what i want is to create a link inside the view like this (on the fly ) : @Html.ActionLink("Details1", "Details1", new { id = Model.Id }) and this Id is automatically filled with the text that user writes in the ID FIELD , ID is a string , and let forget a little about validation , constratins and so on , is this possible or not ?thanks a lot
ddgjgj 10-Jan-18 7:06am View    
Sir , lets be clear again , i am in the create view so i am about to create a new entity that does not exist and doesnt have already an ID , lets pretend the user is filling all the fields in the view ID TITLE and so on , i want that ON THE FLY to do that , if the user writes something in the ID Editor field ,ID is a string and lets say he wrote HAHAHA as ID , now i want to have that value to have that 'HAHAHA' and show in the view as readonly text ..so inside the create view @if (Html.EditorFor(model => model.Id) !=null){ SHOW what user wrote in ID field}
ddgjgj 10-Jan-18 6:42am View    
Deleted
@if (Html.EditorFor(model => model.Id) !=null)
{
test |

@Html.ActionLink("Details1", "Details1", new { id = Model.Id }) |

@Url.Action("Details1", new { Id = Model.Id }) |

test
}
ddgjgj 10-Jan-18 6:42am View    
Deleted
@if (Html.EditorFor(model => model.Id) !=null)
{
test |

@Html.ActionLink("Details1", "Details1", new { id = Model.Id }) |

@Url.Action("Details1", new { Id = Model.Id }) |

test
}