Click here to Skip to main content
15,916,189 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGenerateInsertUpdateDelete option is disabled Pin
Ya Rasoolallah3-Jan-14 15:26
Ya Rasoolallah3-Jan-14 15:26 
QuestionHow to Insert HTML into database using C# and ASP.Net Pin
Member 102589521-Jan-14 23:03
Member 102589521-Jan-14 23:03 
AnswerRe: How to Insert HTML into database using C# and ASP.Net Pin
Keith Barrow2-Jan-14 0:25
professionalKeith Barrow2-Jan-14 0:25 
It sounds like you are trying to write a CRM system, there are free ones available on the Internet, you might want to check these out as writing these is much harder than it looks on face-value.

To answer your question directly, you just store the HTML as you would any text. If you want to programatically add stuff into the template, you'll need to provide placeholders to insert into. e.g.
HTML
<html>
  <head>
    <title>
      The title of this page is {{title}}
    </title>
  <head>
</thml>


Then you just perform a text susbstition. You can put the results of this into an ASP.NET literal control (though the above template wouldn't be valid as the literal will be inside a form in which you'd be declaring a html document), or write to the repsonse stream

Note that you'll difficulty "injecting" ASP.NET controls to the form like this, though the HTML controls will be fine. You might want to look at ASP.NET MVC, if you have time, it is much more suited to this type of work.

GeneralRe: How to Insert HTML into database using C# and ASP.Net Pin
ZurdoDev3-Jan-14 3:34
professionalZurdoDev3-Jan-14 3:34 
Questioni need to have basic codes to create a website Pin
Sri Nithi1-Jan-14 19:05
Sri Nithi1-Jan-14 19:05 
AnswerRe: i need to have basic codes to create a website Pin
Peter Leow1-Jan-14 19:21
professionalPeter Leow1-Jan-14 19:21 
AnswerRe: i need to have basic codes to create a website Pin
thatraja1-Jan-14 19:54
professionalthatraja1-Jan-14 19:54 
GeneralI second this recommendation. Pin
David C# Hobbyist.3-Jan-14 12:05
professionalDavid C# Hobbyist.3-Jan-14 12:05 
AnswerRe: i need to have basic codes to create a website Pin
ZurdoDev3-Jan-14 3:33
professionalZurdoDev3-Jan-14 3:33 
AnswerRe: i need to have basic codes to create a website Pin
Harikrishnanvr7-Jan-14 5:26
professionalHarikrishnanvr7-Jan-14 5:26 
Questiona problem with ScriptManagerProxy Pin
Ya Rasoolallah1-Jan-14 11:31
Ya Rasoolallah1-Jan-14 11:31 
AnswerRe: a problem with ScriptManagerProxy Pin
Marco Bertschi1-Jan-14 12:24
protectorMarco Bertschi1-Jan-14 12:24 
AnswerRe: a problem with ScriptManagerProxy Pin
Ya Rasoolallah1-Jan-14 12:40
Ya Rasoolallah1-Jan-14 12:40 
SuggestionRe: a problem with ScriptManagerProxy Pin
Richard MacCutchan1-Jan-14 22:28
mveRichard MacCutchan1-Jan-14 22:28 
GeneralRe: a problem with ScriptManagerProxy Pin
Ya Rasoolallah1-Jan-14 23:40
Ya Rasoolallah1-Jan-14 23:40 
GeneralRe: a problem with ScriptManagerProxy Pin
Richard MacCutchan2-Jan-14 0:09
mveRichard MacCutchan2-Jan-14 0:09 
AnswerRe: a problem with ScriptManagerProxy Pin
Ya Rasoolallah2-Jan-14 1:48
Ya Rasoolallah2-Jan-14 1:48 
QuestionHow to find curses movement in text box Pin
GurbachanSinghMSc30-Dec-13 22:22
GurbachanSinghMSc30-Dec-13 22:22 
QuestionRe: How to find curses movement in text box Pin
ZurdoDev1-Jan-14 15:31
professionalZurdoDev1-Jan-14 15:31 
Questiondropdownchosen Pin
Ravi900kumar30-Dec-13 19:45
Ravi900kumar30-Dec-13 19:45 
AnswerRe: dropdownchosen Pin
Tom Marvolo Riddle30-Dec-13 20:02
professionalTom Marvolo Riddle30-Dec-13 20:02 
QuestionRe: dropdownchosen Pin
ZurdoDev1-Jan-14 15:31
professionalZurdoDev1-Jan-14 15:31 
AnswerRe: dropdownchosen Pin
Karthik_Mahalingam4-Jan-14 11:40
professionalKarthik_Mahalingam4-Jan-14 11:40 
QuestionAsp.net panel control Pin
Otekpo Emmanuel30-Dec-13 13:27
Otekpo Emmanuel30-Dec-13 13:27 
Questionscafolding Pin
Member 1049405229-Dec-13 19:59
Member 1049405229-Dec-13 19:59 

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.