[RESOLVED] set keyword page on runtime

How can i set keyword page on runtime??


How can i set keyword page on runtime??

What do you mean by keyword Page? Page properties?

<meta name="keywords" content="">

//Framing Meta data
		HtmlMeta tag = new HtmlMeta();
		tag.Name = "keywords";
		tag.Content = "SF,SDF,SDF,SDF,SDF,SF,DSF,SF,SFD,SF,SF,DSF,SD,FDS content";
		System.Web.UI.HtmlControls.HtmlMeta tag1 = new HtmlMeta();
		tag1.Name = "description";
		tag1.Content = "your description";
		HtmlTitle Title = new HtmlTitle();
		Title.Text = "your title";

[RESOLVED] Insert and Delete - MultiLine textbox

Hi All,

I need a little help configuring this.

So, I have a textbox(txtCompany) and a button(btnAddCompany) above another multiline textbox(txtCompanyList) with an associated button (btnRemoveCompany) on the one aspx form.(C#)

Quite simply, I want to add individual companies to the multiline tb from txtCompany using the add button and remove them using the remove button (Obviously).

I know this is quite a trivial problem but I've only just begun programming, and I'm stumped,

Thanks for the help..

Instead of multiline textbox, can you use a ListBox?  What this will allow you to do is use something like: ListBox1.Items.FuindByValue() or FindByText() to search for items, and allow you to insert and remove items easier.

[RESOLVED] Wizard control space issue

Hi there,

I have a question. I have a wizard control on top of a datalist. By default I set visible to false. then the problem appears, the wizard control takes five lines to sixe lines of spaces. How can I eliminate the space when Wizard control is invisible?








Try keeping the Wizard Control in a panel and hide the panel instead. Make sure you don't have extra line breaks("<br/>") in your markup as well.

I found your claim surprising, so I tested it.  As I suspected, when you set visible to false, the control in question is not rendered to the client.  So I don't see how the wizrad control would take up any space at all.  I confirmed this with a quick test.

You must have something else going on.

You are right. It is the </br> in the markup within <div> outside the wizard control that takes up the spaces. So my issue is not the wizard control. Wizard control wont take up spaces when it is invisible, Thank you guys for all your suggestions.

[RESOLVED] Validate dropdownlists

I have 3 dropdownlists in my CreateUserWizard, and they contain date, month and year (users birthday), the poblem is that the wizard allows the user to be created without adding their birthday, and that throws of course an error because the wizard can't insert a invalid date in a datetime row. How can I force the user to choose their birthday in the dropdownlits, so it wont accept the first listitem "Choose" as an answer?

Hope you understand what I'm looking for here :)

Just in case you need to look at my dropdownlists, here they are:

<asp:DropDownList ID="DropDownList1"  runat="server" CssClass="box3" Width="52px" AutoPostBack="false">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
<asp:ListItem Value="5">5</asp:ListItem>
<asp:ListItem Value="6">6</asp:ListItem>
<asp:ListItem Value="7">7</asp:ListItem>
<asp:ListItem Value="8">8</asp:ListItem>
<asp:ListItem Value="9">9</asp:ListItem>
<asp:ListItem Value="10">10</asp:ListItem>
<asp:ListItem Value="11">11</asp:ListItem>
<asp:ListItem Value="12">12</asp:ListItem>
<asp:ListItem Value="13">13</asp:ListItem>
<asp:ListItem Value="14">14</asp:ListItem>
<asp:ListItem Value="15">15</asp:ListItem>
<asp:ListItem Value="16">16</asp:ListItem>
<asp:ListItem Value="17">17</asp:ListItem>
<asp:ListItem Value="18">18</asp:ListItem>
<asp:ListItem Value="19">19</asp:ListItem>
<asp:ListItem Value="20">20</asp:ListItem>
<asp:ListItem Value="21">21</asp:ListItem>
<asp:ListItem Value="22">22</asp:ListItem>
<asp:ListItem Value="23">23</asp:ListItem>
<asp:ListItem Value="24">24</asp:ListItem>
<asp:ListItem Value="25">25</asp:ListItem>
<asp:ListItem Value="26">26</asp:ListItem>
<asp:ListItem Value="27">27</asp:ListItem>
<asp:ListItem Value="28">28</asp:ListItem>
<asp:ListItem Value="29">29</asp:ListItem>
<asp:ListItem Value="30">30</asp:ListItem>
<asp:ListItem Value="31">31</asp:ListItem>

<asp:DropDownList ID="DropDownList2" runat="server" CssClass="box3" Width="68px" AutoPostBack="false">
<asp:ListItem Value="1">Januar</asp:ListItem>
<asp:ListItem Value="2">Februar</asp:ListItem>
<asp:ListItem Value="3">Marts</asp:ListItem>
<asp:ListItem Value="4">April</asp:ListItem>
<asp:ListItem Value="5">Maj</asp:ListItem>
<asp:ListItem Value="6">Juni</asp:ListItem>
<asp:ListItem Value="7">Juli</asp:ListItem>
<asp:ListItem Value="8">August</asp:ListItem>
<asp:ListItem Value="9">September</asp:ListItem>
<asp:ListItem Value="10">Oktober</asp:ListItem>
<asp:ListItem Value="11">November</asp:ListItem>
<asp:ListItem Value="12">December</asp:ListItem>

<asp:DropDownList ID="DropDownList3" runat="server" CssClass="box3" Width="54px">
<asp:ListItem Value="1970">1970</asp:ListItem>
<asp:ListItem Value="1971">1971</asp:ListItem>
<asp:ListItem Value="1972">1972</asp:ListItem>
<asp:ListItem Value="1973">1973</asp:ListItem>
<asp:ListItem Value="1974">1974</asp:ListItem>
<asp:ListItem Value="1975">1975</asp:ListItem>
<asp:ListItem Value="1976">1976</asp:ListItem>
<asp:ListItem Value="1977">1977</asp:ListItem>
<asp:ListItem Value="1978">1978</asp:ListItem>
<asp:ListItem Value="1979">1979</asp:ListItem>
<asp:ListItem Value="1980">1980</asp:ListItem>
<asp:ListItem Value="1981">1981</asp:ListItem>
<asp:ListItem Value="1982">1982</asp:ListItem>
<asp:ListItem Value="1983">1983</asp:ListItem>
<asp:ListItem Value="1984">1984</asp:ListItem>
<asp:ListItem Value="1985">1985</asp:ListItem>
<asp:ListItem Value="1986">1986</asp:ListItem>
<asp:ListItem Value="1987">1987</asp:ListItem>
<asp:ListItem Value="1988">1988</asp:ListItem>
<asp:ListItem Value="1989">1989</asp:ListItem>
<asp:ListItem Value="1990">1990</asp:ListItem>
<asp:ListItem Value="1991">1991</asp:ListItem>
<asp:ListItem Value="1992">1992</asp:ListItem>
<asp:ListItem Value="1993">1993</asp:ListItem>
<asp:ListItem Value="1994">1994</asp:ListItem>
<asp:ListItem Value="1995">1995</asp:ListItem>
<asp:ListItem Value="1996">1996</asp:ListItem>
<asp:ListItem Value="1997">1997</asp:ListItem>
<asp:ListItem Value="1998">1998</asp:ListItem>
<asp:ListItem Value="1999">1999</asp:ListItem>
<asp:ListItem Value="2000">2000</asp:ListItem>
<asp:ListItem Value="2001">2001</asp:ListItem>
<asp:ListItem Value="2002">2002</asp:ListItem>
<asp:ListItem Value="2003">2003</asp:ListItem>
<asp:ListItem Value="2004">2004</asp:ListItem>
<asp:ListItem Value="2005">2005</asp:ListItem>

Use 3 requiredfieldvalidators, and set the InitialValue property to "Choose", or maybe give the Choose item a value of, say -1, and set initialvalue to -1.

Thank you! It works now :)

[RESOLVED] How can I send an email from hosted site task

The host I use for our site lets us schedule a task, we can pointo the site and a file on the site. I'm not clear on how to make the file I point to actualy do something like run a stored procedure or send and smtp email or run some code in my app.

Can anyone offer any examples on how this can be done?

Generally, you can run code as a code-behind task in the initial page load. If you wanted to send an email upon opening a page or run a SP, something like this: 

protected void Page_Load(object sender, EventArgs e)
               // Your command code would go in here

That way, when you open up the page, it automatically runs whatever is in that block of Page_Load. Hope this helps you.

So if we simply point to the (e.g. runemail.aspx) file in the task, it will open the file and run the page load event at the designated time?

Thats about the size of it. I used to do this with SPs running against a remote DB. I would have a SP Call to the DB inside the page_load event and it would fire when opening the page.