| <telerik:GridBoundColumn DataField="DOB" EmptyDataText="&nbsp;" |
| HeaderText="DOB" SortExpression="DOB" UniqueName="DOB" |
| DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" |
| HtmlEncode="false"> |
| <HeaderStyle Wrap="False" /> |
| </telerik:GridBoundColumn> |
<div id="radDock1" class="raddock RadDock_Gray rdCollapsed span-6" style="width:300px;">
RadTreeView1.AjaxUrl = "http://" + Request.ServerVariables["SERVER_NAME"].ToString() +
":" + Request.ServerVariables["SERVER_PORT"].ToString() + Request.CurrentExecutionFilePath;
VPN software doesn't convert URL's in javascripts and
"whalecomb6cde8cb45a6deaaa6897890b9294a9f08f85c/whalecom0"
Hi,
I have a radComboBox on a webform. The web form also has an aspNet button that does a postback on click. When the postback occurs the combo box loses it’s formatting. See screen cast that shows the issue:
http://screencast.com/t/9UrhH8Gb
Can you please let me know how to fix this?
| <head runat="server"> | |
| <title></title> | |
| <script type="text/javascript"> | |
| function cclose() { | |
| alert(); | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <form id="form1" runat="server"> | |
| <telerik:RadScriptManager ID="ScriptManager1" runat="server"> | |
| </telerik:RadScriptManager> | |
| <telerik:RadWindow ID="RadWindow1" runat="server" | |
| OnClientClose="cclose" | |
| Visible="true" | |
| VisibleOnPageLoad="true" | |
| Skin="Office2007" | |
| KeepInScreenBounds="true" | |
| NavigateUrl="http://google.de"> | |
| </telerik:RadWindow> | |
| </form> | |
| </body> |
Protected
Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim Title, Abstract, Comments As String
Dim Display As Integer
Dim NewsDate As Date
Title =
Me.rtxtTitle.Text
Abstract =
Me.redAbstract.Text
Dim strAbstract = Abstract.Substring(0, Abstract.Length - 1)
Comments =
Me.redComments.Text
Dim strComments = Comments.Substring(0, Comments.Length - 1)
NewsDate =
Me.rdtpNews.DbSelectedDate
If Me.chkDisplayYN.Checked = True Then
Display = 1
Else
Display = 0
End If
'Populate the datatable
Dim sConnString As String = ConfigurationManager.ConnectionStrings("PU89").ConnectionString
Dim objConnection As New SqlClient.SqlConnection(sConnString)
Dim strSQL As String = "INSERT INTO tblNews (Title,Display,BDate,Abstract,Comments)" & _
" VALUES ('" & Title & "', '" & Display & "', '" & NewsDate & "', '" & strAbstract & "', '" & strComments & "');"
Dim dbComm As New SqlClient.SqlCommand(strSQL, objConnection)
Dim iID As Integer
Try
objConnection.Open()
iID = dbComm.ExecuteScalar()
Catch ex As Exception
Response.Write(ex.Message)
Response.End()
Finally
If objConnection.State = ConnectionState.Open Then
objConnection.Close()
End If
End Try
End Sub
This method works for short blocks of text with no special characters. When I try to enter the complete text (copied from a webpage and pasted into the RadEditor) I get syntax errors:
"Incorrect syntax near 's'. Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon."
Thanks,
Shelley
