Click here to Skip to main content
15,912,400 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Image in DropDownList Pin
Mike Ellison8-Oct-06 19:08
Mike Ellison8-Oct-06 19:08 
Questionasp.net Pin
mehrdad_20068-Oct-06 10:03
mehrdad_20068-Oct-06 10:03 
AnswerRe: asp.net Pin
thomas_joyee8-Oct-06 17:51
thomas_joyee8-Oct-06 17:51 
GeneralRe: asp.net Pin
miniThomas8-Oct-06 19:24
miniThomas8-Oct-06 19:24 
GeneralRe: asp.net Pin
thomas_joyee8-Oct-06 20:10
thomas_joyee8-Oct-06 20:10 
GeneralRe: asp.net Pin
miniThomas9-Oct-06 23:52
miniThomas9-Oct-06 23:52 
QuestionHow to Evaluate a string on html to Render a Server Control on the page [modified] Pin
ThePlagueIsBack8-Oct-06 7:14
ThePlagueIsBack8-Oct-06 7:14 
AnswerRe: How to Evaluate a string on html to Render a Server Control on the page Pin
Guffa8-Oct-06 7:52
Guffa8-Oct-06 7:52 
I assume that you know how to load the file...

Use a regular expression to locate the tags:

string[] tags = RegEx.Split(htmlCode, "@@(.+?)@@");

Now you have an array with altering html code and predefined tag names, i.e. the first element contains the html code up to the first predefined tag, the second element contains "pageheader", and so on. You can loop through the array and create LiteralControl elements to put the html code in, and elements according to the predefined tag names.

Don't put code in the aspx page to output the elements, though. Put a PlaceHolder in the page, and add elements to it's Controls collection from code behind.


---
b { font-weight: normal; }

GeneralRe: How to Evaluate a string on html to Render a Server Control on the page Pin
ThePlagueIsBack8-Oct-06 8:01
ThePlagueIsBack8-Oct-06 8:01 
AnswerRe: How to Evaluate a string on html to Render a Server Control on the page Pin
Guffa8-Oct-06 8:15
Guffa8-Oct-06 8:15 
GeneralRe: How to Evaluate a string on html to Render a Server Control on the page Pin
ThePlagueIsBack8-Oct-06 9:00
ThePlagueIsBack8-Oct-06 9:00 
GeneralRe: How to Evaluate a string on html to Render a Server Control on the page Pin
ThePlagueIsBack8-Oct-06 9:04
ThePlagueIsBack8-Oct-06 9:04 
GeneralRe: How to Evaluate a string on html to Render a Server Control on the page [modified] Pin
ThePlagueIsBack8-Oct-06 9:37
ThePlagueIsBack8-Oct-06 9:37 
QuestionActive directory user from asp.net 2.0 Pin
Marp Tech8-Oct-06 6:42
Marp Tech8-Oct-06 6:42 
AnswerRe: Active directory user from asp.net 2.0 Pin
Mike Ellison8-Oct-06 18:59
Mike Ellison8-Oct-06 18:59 
QuestionRe: Active directory user from asp.net 2.0 Pin
Marp Tech8-Oct-06 20:41
Marp Tech8-Oct-06 20:41 
AnswerRe: Active directory user from asp.net 2.0 Pin
Mike Ellison9-Oct-06 6:17
Mike Ellison9-Oct-06 6:17 
QuestionSo how come Windows 2003/SQL Server does not support Active-Active clusters? Pin
devvvy8-Oct-06 4:56
devvvy8-Oct-06 4:56 
QuestionDataGrid Edit,Update,Cancel Column Pin

MmM.net</

8-Oct-06 2:23

MmM.net</

8-Oct-06 2:23 
QuestionGoogle Sitemap Pin
shapper8-Oct-06 2:15
shapper8-Oct-06 2:15 
AnswerRe: Google Sitemap Pin
Mike Ellison8-Oct-06 19:04
Mike Ellison8-Oct-06 19:04 
Questionwebservice query Pin
biaali8-Oct-06 0:39
biaali8-Oct-06 0:39 
AnswerRe: webservice query Pin
Walter_H9-Oct-06 20:22
Walter_H9-Oct-06 20:22 
GeneralRe: webservice query Pin
biaali11-Oct-06 21:08
biaali11-Oct-06 21:08 
QuestionDiff between sqlConnection and oleDbconnection Pin
miniThomas7-Oct-06 21:54
miniThomas7-Oct-06 21:54 

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.