Click here to Skip to main content
15,893,401 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: File Upload Using Query String in PHP Pin
Richard MacCutchan3-Sep-14 21:31
mveRichard MacCutchan3-Sep-14 21:31 
GeneralRe: File Upload Using Query String in PHP Pin
jasonalien3-Sep-14 21:33
jasonalien3-Sep-14 21:33 
GeneralRe: File Upload Using Query String in PHP Pin
Richard MacCutchan3-Sep-14 22:05
mveRichard MacCutchan3-Sep-14 22:05 
AnswerRe: File Upload Using Query String in PHP Pin
Richard Deeming4-Sep-14 1:37
mveRichard Deeming4-Sep-14 1:37 
GeneralRe: File Upload Using Query String in PHP Pin
jasonalien4-Sep-14 2:04
jasonalien4-Sep-14 2:04 
QuestionHow to update a form and submit using jquery and ajax Pin
Member 109499862-Sep-14 6:41
Member 109499862-Sep-14 6:41 
SuggestionRe: How to update a form and submit using jquery and ajax Pin
Kornfeld Eliyahu Peter2-Sep-14 7:12
professionalKornfeld Eliyahu Peter2-Sep-14 7:12 
Questionvb.net web form generates extra blank lines Pin
dcof1-Sep-14 7:31
dcof1-Sep-14 7:31 
In a vb.net 2010 web form application the user loads 'template letters' to a web inerface, so that they can modify letters sent out to various customers to generate various late pay notifications. The user basically selects the 'template letter' they want to generate for a specific customer, and hits the 'save' button.

The web interface has the tabs for 'preview', 'html', and 'design' as the bottom of the editor. These tabs are not part of any custom code, they must be part of a web interface that is inherited.

The values for the editor are stored in a sql server 2012 database in a field called 'strTemplate' and the value is actually html.

The problem is once the html value for 'strTemplate' is loaded for the user to edit, extra blank lines are loaded between different parts of the 'templates'. Basically extra

tags are generated.

When the user hits the save button, more

tags are generated between the various parts of the letter.

I do not want these extra blank lines to be generated.

I have gone into the html tab, removed the

tags and hit the save button. The extra tags are still generated. I have stepped through the code to find where the tags are generated and can not find it.

Thus can you tell me what I can do to not have the extra

tags generated?

The following is some of the code that is used when accessing the part of that gets to the web interface:

Imports System.Data
 Imports System.Reflection
 Imports System.Windows.Forms
 Imports Telerik.Web.UIImports System.Web.Script.Services
 Imports System.Web.Script.Serialization
 Imports System.Web.Services
 Partial Class edittemplates_default
     Inherits System.Web.UI.Page
    Protected _master As MasterPage
#Region "Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) 

Handles MyBase.Load"
     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 

MyBase.Load        _master = CType(Page.Master, MasterPage)
         _master.PageTitle = "Edit Templates"        If Not Page.IsPostBack Then
             If (SiteUserManager.SessionUser IsNot Nothing) Then                LoadTemplates()   

           
                 LoadVariables()
               
             Else                'pnlEditor.Enabled = False
                 'pnlEditor.Visible = False            End If
         End If        Master.Page.Title = "Login"    End Sub
 #End Region#Region "Protected Sub LoadTemplates()"
     Protected Sub LoadTemplates()
         Dim et As EditTemplates = New EditTemplates()
         Dim dt As DataTable = et.SelectTemplates()        For i = 0 To dt.Rows.Count() - 1
             ddlTemplates.Items.Add(New ListItem(dt.Rows(i)(dt.Columns(1).ColumnName()), dt.Rows

(i)(dt.Columns(0).ColumnName())))
         Next    End Sub
 #End Region
 #Region "Protected Sub LoadVariables()"
     Protected Sub LoadVariables()
         Dim et As EditTemplates = New EditTemplates()
         Dim dt As DataTable = et.SelectAtnLtrVariables()        For i = 0 To dt.Rows.Count() - 1
             rlbVariables.Items.Add(New RadListBoxItem(dt.Rows(i)(dt.Columns(1).ColumnName()), 

dt.Rows(i)(dt.Columns(0).ColumnName())))
         Next    End Sub
 #End Region
 #Region "Protected Sub btnSaveTemplate_Click(ByVal sender As Object, ByVal e As 

System.EventArgs) Handles btnSaveTemplate.Click"
     Protected Sub btnSaveTemplate_Click(ByVal sender As Object, ByVal e As System.EventArgs) 

Handles btnSaveTemplate.Click
         Dim et As EditTemplates = New EditTemplates()
         If ddlTemplates.SelectedValue <> 0 Then
             et.UpdateTemplate(ddlTemplates.SelectedValue, ddlLanguage.SelectedValue, 

rEditor.Content.ToString())
         End If
     End Sub
 #End Region
-------------------
Partial Class edittemplates_default
    Inherits System.Web.UI.Page

    Protected _master As MasterPage
-----------

Questionmysqli update Pin
Charlie Kirk26-Aug-14 15:32
Charlie Kirk26-Aug-14 15:32 
AnswerRe: mysqli update Pin
Graham Breach26-Aug-14 22:48
Graham Breach26-Aug-14 22:48 
AnswerRe: mysqli update Pin
Charlie Kirk30-Aug-14 17:47
Charlie Kirk30-Aug-14 17:47 
QuestionSample Mvc 4 Application t Insert data into the database and Bind Them to grid Pin
Member 1103238424-Aug-14 1:19
Member 1103238424-Aug-14 1:19 
AnswerRe: Sample Mvc 4 Application t Insert data into the database and Bind Them to grid Pin
Anurag Gandhi24-Aug-14 7:12
professionalAnurag Gandhi24-Aug-14 7:12 
AnswerRe: Sample Mvc 4 Application t Insert data into the database and Bind Them to grid Pin
Suraj Sahoo | Coding Passion16-Sep-14 19:32
professionalSuraj Sahoo | Coding Passion16-Sep-14 19:32 
QuestionGeneral Web Development Question Pin
Kevin Marois20-Aug-14 5:22
professionalKevin Marois20-Aug-14 5:22 
AnswerRe: General Web Development Question Pin
Anurag Gandhi22-Aug-14 8:59
professionalAnurag Gandhi22-Aug-14 8:59 
GeneralRe: General Web Development Question Pin
Kevin Marois24-Aug-14 7:52
professionalKevin Marois24-Aug-14 7:52 
GeneralRe: General Web Development Question Pin
Anurag Gandhi24-Aug-14 8:07
professionalAnurag Gandhi24-Aug-14 8:07 
GeneralRe: General Web Development Question Pin
Kevin Marois24-Aug-14 8:17
professionalKevin Marois24-Aug-14 8:17 
AnswerRe: General Web Development Question Pin
Richard MacCutchan22-Aug-14 21:14
mveRichard MacCutchan22-Aug-14 21:14 
AnswerRe: General Web Development Question Pin
Wombaticus24-Aug-14 1:22
Wombaticus24-Aug-14 1:22 
AnswerRe: General Web Development Question Pin
uspatel1-Sep-14 1:32
professionaluspatel1-Sep-14 1:32 
AnswerRe: General Web Development Question Pin
Nathan Minier5-Sep-14 3:57
professionalNathan Minier5-Sep-14 3:57 
AnswerRe: General Web Development Question Pin
Dominic Burford15-Sep-14 2:42
professionalDominic Burford15-Sep-14 2:42 
QuestionGoogle search - why does it do this? Pin
#realJSOP20-Aug-14 4:52
mve#realJSOP20-Aug-14 4:52 

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.