or
| <WebServiceSettings Path="http://www.myurl.nl/ServicePath/MyService.asmx" |
| ResourcePopulationMode="ServerSide" /> |
| Invalid URI: A port was expected because of there is a colon (':') present but the port could not be parsed |
| <asp:LinkButton ID="lkbIntroText" runat="server">Intro Text</asp:LinkButton> |
| <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="lkbIntroText" |
| PopupControlID="PopUpPanel" BackgroundCssClass="modalBackground" DropShadow="true" |
| DynamicServicePath="SurveyIntroText.asmx" DynamicServiceMethod="GetSurveyIntroText" |
| DynamicControlID="RadEditor1" OkControlID="lbtOK" OnOkScript="onOk()"> |
| </cc1:ModalPopupExtender> |
| <asp:Panel ID="PopUpPanel" runat="server" CssClass="modalPopup"> |
| <asp:Panel ID="pnlWindowHeader" runat="server" CssClass="modalTop"> |
| <div style="padding: 2px; height: 16px;"> |
| <asp:Literal ID="ltlLabel" runat="server"></asp:Literal> |
| <asp:LinkButton ID="lbtOK" runat="server" Text="[ x ]" Style="height: 15px; float: right; |
| text-decoration: none;" /> |
| </div> |
| </asp:Panel> |
| <div class="space20px"> |
| </div> |
| <div> |
| <asp:Label ID="test" runat="server"></asp:Label> |
| <telerik:RadEditor ID="RadEditor1" runat="server" ToolbarMode="ShowOnFocus" ToolsFile="~/App_Data/RadControls/ConfigXML/default.xml" |
| Height="200"> |
| <CssFiles> |
| <telerik:EditorCssFile Value="~/EditorContentArea.css" /> |
| </CssFiles> |
| </telerik:RadEditor> |
| </div> |
| <div style="text-align: center;"> |
| <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /> |
| <asp:Button ID="btnCancel" runat="server" Text="Cancel" CausesValidation="false" /> |
| <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="button_delete" |
| CausesValidation="false" /> |
| </div> |
| </asp:Panel> |
| <%@ WebService Language="C#" Class="SurveyIntroText" %> |
| using System; |
| using System.Web; |
| using System.Data; |
| using System.Data.SqlClient; |
| using System.Web.Services; |
| using System.Web.Services.Protocols; |
| using Carswell.Web.Student.Modules.Survey; |
| [WebService(Namespace = "http://tempuri.org/")] |
| [System.Web.Script.Services.ScriptService] |
| public class SurveyIntroText : System.Web.Services.WebService { |
| [WebMethod] |
| public string GetSurveyIntroText() |
| { |
| SurveyResultsDb oS = new SurveyResultsDb(); |
| SqlDataReader dr = oS.GetSurveyIntroText(30); |
| if (dr.HasRows) |
| { |
| dr.Read(); |
| return dr["IntroText"].ToString(); |
| } |
| else |
| { |
| return ""; |
| } |
| } |
| } |


| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NumericTextBox.aspx.cs" Inherits="WebApplication.NumericTextBox" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager ID="radScriptManager" runat="server"></telerik:RadScriptManager> |
| <telerik:RadNumericTextBox runat="server" ID="radNumericTextBox" NumberFormat-DecimalDigits="2" Type="Number" MaxValue="401.33"></telerik:RadNumericTextBox> |
| <asp:Label ID="label" runat="server"></asp:Label> |
| <asp:Button ID="button" runat="server" /> |
| </div> |
| </form> |
| </body> |
| </html> |
| public partial class NumericTextBox : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if(Page.IsPostBack) |
| { |
| label.Text = radNumericTextBox.Value.ToString(); |
| } |
| } |
| } |