Click here to Skip to main content
15,885,875 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGetting error while running Pin
Member 111411249-Oct-14 3:50
Member 111411249-Oct-14 3:50 
AnswerRe: Getting error while running Pin
Richard Deeming9-Oct-14 6:59
mveRichard Deeming9-Oct-14 6:59 
QuestionHow to maintain scroll position in chrome in Asp .Net Pin
Member 98439578-Oct-14 18:52
Member 98439578-Oct-14 18:52 
AnswerRe: How to maintain scroll position in chrome in Asp .Net Pin
Dominic Burford10-Oct-14 0:39
professionalDominic Burford10-Oct-14 0:39 
GeneralRe: How to maintain scroll position in chrome in Asp .Net Pin
Member 984395710-Oct-14 0:44
Member 984395710-Oct-14 0:44 
Questionregex replace with double quote Pin
jkirkerx8-Oct-14 13:30
professionaljkirkerx8-Oct-14 13:30 
AnswerRe: regex replace with double quote Pin
Richard Deeming9-Oct-14 1:47
mveRichard Deeming9-Oct-14 1:47 
GeneralRe: regex replace with double quote [EDIT] fixed my regex Pin
jkirkerx9-Oct-14 8:05
professionaljkirkerx9-Oct-14 8:05 
Thanks Richard!

I spent an hour and a 1/2 last night working on it. Your work is more elegant than what I came up with.

I ended up writing this.
Dim pattern As String = "(<hx5\:footer>)(.*?(\\n)?)+.*?(</hx5\:footer>)"
Dim rx As New Regex(pattern, RegexOptions.IgnoreCase Or RegexOptions.Multiline Or RegexOptions.Singleline)

Dim matches As MatchCollection = rx.Matches(p_MessageXHTML)
el_common.write_eventLog_event_complete("Match Count=" & matches.Count, EventLogEntryType.Information, 0)
If (matches.Count > 0) Then
   p_MessageXHTML = rx.Replace(p_MessageXHTML, footerXHTML.ToString)
End If


In case your wondering, this goes to my windows service that sends out advertising emails in conjunction with the ckEditor on the back end used to compose the emails, and the ckEditor plugins I wrote.

This code adds a generated elegant message footer, that says you can unsubscribe, message intended for, time stamp, copyright and stuff.

I was thinking last night, that maybe I should just makeup a element like hx5:footer and replace the content, rather than using the div element with an ID.

Now I'm pondering whether to let the customer select a footer using a new ckEditor custom plugin that they just drop on the page, versus my machine generated footer.

Trying to write and test regex in a windows service didn't work out, and that ^ I had at the front was the problem, and not skipping LF's

I'm going to try yours out, and keep a remark handy for both.

modified 9-Oct-14 14:59pm.

QuestionGreybox popup not show properly after postback Pin
Member 98439577-Oct-14 19:35
Member 98439577-Oct-14 19:35 
QuestionPiro box add two iframe after asynchronous postback. Pin
Member 98439576-Oct-14 21:00
Member 98439576-Oct-14 21:00 
QuestionGray box not working after Asynchronus postback Pin
Member 98439576-Oct-14 20:54
Member 98439576-Oct-14 20:54 
QuestionButton click not trigger second time in jquery Modal popup Pin
dineshkanagaraj6-Oct-14 3:31
dineshkanagaraj6-Oct-14 3:31 
AnswerRe: Button click not trigger second time in jquery Modal popup Pin
jkirkerx6-Oct-14 11:46
professionaljkirkerx6-Oct-14 11:46 
QuestionWant to send message to only connected client SignalR Pin
Tridip Bhattacharjee5-Oct-14 21:05
professionalTridip Bhattacharjee5-Oct-14 21:05 
QuestionLog-in form question Pin
Member 87616674-Oct-14 8:46
Member 87616674-Oct-14 8:46 
AnswerRe: Log-in form question Pin
jkirkerx7-Oct-14 7:30
professionaljkirkerx7-Oct-14 7:30 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 9:17
Member 87616677-Oct-14 9:17 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 9:50
professionaljkirkerx7-Oct-14 9:50 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 10:38
Member 87616677-Oct-14 10:38 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 10:56
professionaljkirkerx7-Oct-14 10:56 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 11:37
Member 87616677-Oct-14 11:37 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 11:56
professionaljkirkerx7-Oct-14 11:56 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 12:04
Member 87616677-Oct-14 12:04 
QuestionHow can i Post Radio Button List with Dynamic names to controller Pin
Mujtaba 103885433-Oct-14 18:24
professionalMujtaba 103885433-Oct-14 18:24 
QuestionHow to find in useful/unnecessary files from website folder ??? Pin
Abhishek kumar1213-Oct-14 6:07
Abhishek kumar1213-Oct-14 6:07 

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.