or
| <span id="spanBasketHelp" class="help"><a id="aBasketHelp" href="#" title="Click for Help" accesskey="h">Help</a></span></h2> | |
| <telerik:RadToolTip ID="radHelpToolTip" runat="server" | |
| width="300px" | |
| ShowEvent="OnClick" | |
| RelativeTo="Element" | |
| Animation="Resize" | |
| TargetControlId="aBasketHelp" | |
| IsClientID="true" | |
| Sticky="true" | |
| Position="TopLeft" | |
| Skin="Web20" > | |
| <div>Your Basket is like a real basket in a store. It contains all the items you have selected for purchase. As you add things to your Basket, your total will be updated so you always know exactly how much you are spending."</div> | |
| </telerik:RadToolTip> |
| <telerik:RadComboBox Height="132px" | |
| ID="ComboBox1" | |
| Skin="Web20" | |
| Font-Size="8.3pt" | |
| Font-Names="Tahoma" | |
| Runat="server" | |
| Sort="Ascending" | |
| OnClientSelectedIndexChanged="LoadComboBox2" | |
| > | |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> | |
| </telerik:RadComboBox> |
ComboBox2 aspx code
| <telerik:RadComboBox Height="132px" | |
| ID="ComboBox2" | |
| Runat="server" | |
| Skin="Web20" | |
| Font-Size="8.3pt" | |
| Font-Names="Tahoma" | |
| EmptyMessage="-Select MSA-" | |
| Sort="Ascending" | |
| OnItemsRequested="ComboBox2_ItemsRequested" | |
| OnClientSelectedIndexChanged="LoadComboBox3" | |
| > | |
| <CollapseAnimation Type="OutQuint" Duration="200" /> | |
| </telerik:RadComboBox> |
| <telerik:RadComboBox Height="132px" | |
| ID="ComboBox3" | |
| Runat="server" | |
| Skin="Web20" | |
| Font-Size="8.3pt" | |
| Font-Names="Tahoma" | |
| Width="200px" | |
| EmptyMessage="-Select Building-" | |
| Sort="Ascending" | |
| OnItemsRequested="ComboBox3_ItemsRequested" | |
| > | |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> | |
| </telerik:RadComboBox> |
| <script language="javascript" type="text/javascript"> | |
| function LoadComboBox2(combo, eventarqs) | |
| { | |
| var combo2 = $find("<%=ComboBox2.ClientID %>"); | |
| combo2.set_text("-Select-"); | |
| var combo3 = $find("<%=ComboBox3.ClientID %>"); | |
| combo3.set_text("-Select-"); | |
| var item = eventarqs.get_item(); | |
| if (item.get_index() > 0) | |
| { | |
| combo2.requestItems(item.get_value(), false); | |
| } | |
| else | |
| { | |
| } | |
| } | |
| function LoadComboBox3(combo, eventarqs) | |
| { | |
| var combo2 = $find("<%=ComboBox2.ClientID %>"); | |
| var combo3 = $find("<%=ComboBox3.ClientID %>"); | |
| combo3.set_text("-Select-"); | |
| var item = eventarqs.get_item(); | |
| if (item.get_index() > 0) | |
| { | |
| combo3.requestItems(item.get_value(), false); | |
| } | |
| else | |
| { | |
| } | |
| } | |
| </script> |
| protected void ComboBox2_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) | |
| { | |
| string oldSelectedValue = ComboBox2.SelectedValue; | |
| Database db = DatabaseFactory.CreateDatabase(); | |
| DbCommand command= db.GetStoredProcCommand("StoredProcedure"); | |
| db.AddInParameter(command, "ParamName", DbType.String, e.Text.Trim()); | |
| ComboBox2.DataTextField = "FieldName"; | |
| ComboBox2.DataValueField = "MSA"; | |
| using (DbDataReader reader = (DbDataReader)db.ExecuteReader(command)) | |
| { | |
| ComboBox2.DataSource = reader; | |
| ComboBox2.DataBind(); | |
| } | |
| foreach (RadComboBoxItem item in ComboBox2.Items) | |
| { | |
| itemitem.ToolTip = item.Text.Trim(); | |
| } | |
| ComboBox2.Items.Insert(0, new RadComboBoxItem("-Select-")); | |
| RadComboBoxItem olditem = ComboBox2.FindItemByValue(oldSelectedValue); | |
| if (olditem != null) | |
| { | |
| olditem.Selected = true; | |
| } | |
| } | |
| protected void ComboBox3_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) | |
| { | |
| string oldSelectedValue = ComboBox3.SelectedValue; | |
| Database db = DatabaseFactory.CreateDatabase(); | |
| DbCommand command= db.GetStoredProcCommand("StoredProcedure"); | |
| db.AddInParameter(command, "ParamName", DbType.String, e.Text.Trim()); | |
| ComboBox3.DataTextField = "FieldName"; | |
| ComboBox3.DataValueField = "FieldName"; | |
| using (DbDataReader reader = (DbDataReader)db.ExecuteReader(command)) | |
| { | |
| ComboBox3.DataSource = reader; | |
| ComboBox3.DataBind(); | |
| } | |
| foreach (RadComboBoxItem item in ComboBox3.Items) | |
| { | |
| itemitem.ToolTip = item.Text.Trim(); | |
| } | |
| ComboBox3.Items.Insert(0, new RadComboBoxItem("-Select-")); | |
| RadComboBoxItem olditem = ComboBox3.FindItemByValue(oldSelectedValue); | |
| if (olditem != null) | |
| { | |
| olditem.Selected = true; | |
| } | |
| } |
document.write()
Since Radticker do not encode html how for me to get this solve?
Since i have to get text ads from javascript