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

  • Home
  • SEARCH
  • 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 6679701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:23:21+00:00 2026-05-26T04:23:21+00:00

I am creating a folder by generating a random string and I need to

  • 0

I am creating a folder by generating a random string and I need to get that string value to the textbox using javascript.

Here is my javascript Code:

<script type="text/javascript">
 var tempDir = randomString(8);
                document.getElementById("currentDirectory").value = tempDir;
                alert(tempDir);
</script>

This is the textbox where I need to display

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  • 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-26T04:23:22+00:00Added an answer on May 26, 2026 at 4:23 am

    I resolved it by simply declaring the control this way inside the body tag.

    ('<%= TextBox1.ClientID %>')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm programmatically creating a folder using C# and need to set the default view
How can I have it so Visual Studio doesn't keep re-creating this folder that
How to disable creating an '.idea' folder in Rubymine? It creates that folder after
I have a folder with numerous files that I need to copy to multiple
I made a commit about a month ago that involved me creating new folder
i create a site in a wampserver by creating a folder that include all
I have a python script using imaplib that connects to a gmail account and
Any code examples on how i must go about creating a folder say pics
I'm creating simple script to convert mp3 files using shell script. I decided to
I am currently creating a folder and writing a file to the folder that

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.