Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7034547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:11:57+00:00 2026-05-28T01:11:57+00:00

I have following manual code to open the URLs: <select type=text name=sel_veh id=Select1 runat=server

  • 0

I have following manual code to open the URLs:

<select type="text" name="sel_veh" id="Select1" runat="server"  onchange="window.open('http://appsrv01.shakarganj.com.pk:7778/reports/rwservlet?reptest&report=eth_fleet_dtl&veh_num='+ sel_veh.value,'mywindow4');" language="javascript" onclick="return sel_veh_onclick()" style="font-size: 10pt">
    <option value="">Please Select</option>
    <option value="01-01-12">01-Jan</option>
    <option value="01-02-12">02-Jan</option>
    <option value="01-02-12">03-Jan</option>
    <option value="01-02-12">04-Jan</option>
</select>

I have this select list with hard-coded date values. The problem is that when date changes, I have to update the code with new dates. Is there any way in C# that I can add values to this select list by c3 code dynamically that date values should auto change with system date?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:11:57+00:00Added an answer on May 28, 2026 at 1:11 am

    Yes, you can. if you’re looking into a more coder-friendly control, use the DropDownList control

    if you’re using a <select />, you can add items by

    Select1.Items.Add("01-01-12","01-Jan");
    

    for example

    if you’re using a DropDownList, you can add items by

    dropDownList1.Items.Add(new ListItem("01-Jan", "01-01-12"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following piece of code taken from the PHP manual on the
I have the following Java code: String query = Select 1 from myTable where
I have the following code: public function createNewGuide($userID,$guideName) { $sql = INSERT INTO myTable(name,
I have the following PHP code: echo ' <td id='.$metaso['semanaventa'].'td1><form id='.$metaso['semanaventa'].'form name='.$metaso['semanaventa'].'form class=dinamic action=compromiso_funciones.php
Say, I have the following C++ code. First I create a manual waitable timer
I have the following code, copied from the Python manual: import logging LOG_FILENAME =
I have the following code: (define (get-data) (define port (open-input-file ../data/problem11.txt)) (define field 0)
I have the following code to upload a file to the server. For some
I have the following client code: |>! OnClick (fun _ _ -> Server.CreateBug input.Value
I have the following code: <?php $stmt = $db->prepare(select * from products where `price`=:price

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.