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 593489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:51:04+00:00 2026-05-13T15:51:04+00:00

I want to Use only the HTML Controls on my page. For that i

  • 0

I want to Use only the HTML Controls on my page. For that i want to use some text boxes and a HTML select(List box) and a Submit button for Post Event.
The Code is as follows:

<script type="text/javascript">

    function dropdown(mySel) {
        var myWin, myVal;
        myVal = mySel.options[mySel.selectedIndex].value;
        if (myVal) {
            if (mySel.form.target) myWin = parent[mySel.form.target];
            else myWin = window;
            if (!myWin) return true;
            myWin.location = myVal;
        }
        return false;
    }

</script>

This Java Script i am using for the HTML Select List.
The Rest of the Code are As follows:

<form action="feedback.aspx" method="post" onsubmit="return dropdown(this.feeds)">
<h1>
    Let us know your inconvenience for the following Listing:
</h1>
<table>
    <tr>
        <td>
            <b>Type : </b>
        </td>
        <td>
            <asp:Label ID="lbltype" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <b>ID : </b>
        </td>
        <td>
            <asp:Label ID="lblID" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <b>Title: </b>
        </td>
        <td>
            <asp:Label ID="lblTitle" runat="server"></asp:Label>
        </td>
    </tr>
</table>
<table>
    <tr>
        <td>
            User ID:
        </td>
        <td>
            <input type="text" name="txtUserid" />
        </td>
    </tr>
    <tr>
        <td>
            Name:
        </td>
        <td>
            <input type="text" name="txtName" />
        </td>
    </tr>
    <tr>
        <td>
            Contact:
        </td>
        <td>
            <input type="text" name="txtContact" />
        </td>
    </tr>
    <tr>
        <td>
            Email:
        </td>
        <td>
            <input type="text" name="txtemail" />
        </td>
    </tr>
</table>
<br />
<table cellpadding="5" cellspacing="5" width="500px">
    <tr>
        <td style="width: 400px">
            <b>Please Select the given option </b>
        </td>
    </tr>
    <tr>
        <td style="width: 400px">
            <select name="feeds">
                <option value="">Choose an Option...</option>
                <option value="">Option1</option>
                <option value="">Option2</option>
                <option value="">Option3</option>
            </select>
        </td>
    </tr>
    <tr>
        <td style="width: 400px">
            <b>Write your Comment Here: </b>
            <br />
            <textarea id="TextArea" name="txtcomment" cols="45" rows="5"></textarea>
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <Efextra:Captcha ID="Captcha1" runat="server" TabIndex="29" ValidationErrorMessage="Verification Code"
        ValidationGroup="Feeds" ValidationText="*"></Efextra:Captcha>
    <tr>
        <td>
            <input type="submit" value="Submit FeedBack" validationgroup="Feeds" />
        </td>
    </tr>
</table>
</form>

I have a XML document having the following Format:

<?xml version="1.0" encoding="utf-8" ?>
<Feedback>
<Options>
  <ID>0</ID>
  <option>[Select your option]</option>
 </Options>
 <Options>
  <ID>1</ID>
  <option>I got Incomplete/wrong information posted here.</option>
 </Options>
 <Options>
  <ID>2</ID>
  <option>The Content is not in Proper Format.</option>
 </Options>
 <Options>
  <ID>3</ID>
  <option>How can get the similar type of properties?</option>
 </Options>
 <Options>
  <ID>4</ID>
  <option>This Listing is Sold and Still Displaying here.</option>
 </Options>
 <Options>
  <ID>5</ID>
  <option>I can not send SMS for this Listing.</option>
 </Options>
 <Options>
  <ID>6</ID>
  <option>I can not get the Contact Information of the owner of this post.</option>
 </Options>
 <Options>
  <ID>7</ID>
  <option>My problem is not given here!</option>
 </Options>
</Feedback>

Now what i ahve to do is:
When Page load it checks whether the user is registered or not, if he/She is a registered user, the first four field [User ID, Name, Contact, Email] can be be loaded itself.
for this my code behind file assigns value like this:

User FeedUser = Propertywala.User.GetAuthUser();
Txt1.Text=Feeduser.UserID; and so on..

If he/she is not a registered user then User will get this field blank and i will get fetch all the filled values through Page.Request().

Second Issue is that i want to load the Option of select box from XML file which is above.
I am a newbie to this code and flow. so please anybody can help me doing this.

Thanks in Advance.

  • 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-13T15:51:05+00:00Added an answer on May 13, 2026 at 3:51 pm

    Finally i did it without using a single asp control. I solved the problem like this:

    <form name="feedback" action="FeedBack.aspx">
    <h1>
        Let us know your inconvenience for the following Listing:
    </h1>
    <table>
        <%if (IsUserLoggedIn) %>
        <%{ %>
        <tr>
            <td>
                <b>User ID:</b>
            </td>
            <td>
                <input type="text" value="<%=VisitingUser.UserIdn%>" size="30" readonly="readonly" />
            </td>
        </tr>
        <tr>
            <td>
                <b>Name:</b>
            </td>
            <td>
                <input type="text" value="<%=VisitingUser.FullName%>" size="30" readonly="readonly" />
            </td>
        </tr>
        <tr>
            <td>
                <b>Contact:</b>
            </td>
            <td>
                <input type="text" value="<%=VisitingUser.MobileNumber %>" size="30" readonly="readonly" />
            </td>
        </tr>
        <tr>
            <td>
                <b>Email:</b>
            </td>
            <td>
                <input type="text" value="<%=VisitingUser.PrimaryEmail%>" size="30" readonly="readonly" />
            </td>
        </tr>
        <%} %>
        <%else%>
        <%{ %><tr>
            <td>
                <h3>
                    Enter the Folowing details to submit the Feedback:
                </h3>
            </td>
        </tr>
        <tr>
            <td>
                Name:
            </td>
            <td>
                <input type="text" name="txtName" />
            </td>
        </tr>
        <tr>
            <td>
                Contact:
            </td>
            <td>
                <input type="text" name="txtContact" />
            </td>
        </tr>
        <tr>
            <td>
                Email:
            </td>
            <td>
                <input type="text" name="txtEmail" />
            </td>
        </tr>
        <%} %>
    </table>
    <br />
    <%if (int.TryParse(Request.QueryString["property"], out Property)) %>
    <%{ %>
    <%Propertywala.Property prp = new Propertywala.Property(Property);%>
    <%if (prp.OwnerId > 0) %>
    <%{ %>
    <table>
        <tr>
            <td>
                <b>Property ID :</b>
            </td>
            <td>
                <%=Property.ToString() %>
            </td>
        </tr>
        <tr>
            <td>
                <b>Property Title :</b>
            </td>
            <td>
                <%=prp.AutoGeneratedTitle %>
            </td>
        </tr>
    </table>
    <%} %>
    <%} %>
    <%else if (int.TryParse(Request.QueryString["project"], out Project)) %>
    <%{ %>
    <%Propertywala.Project prj = new Propertywala.Project(Project);%>
    <%if (prj.UserId > 0) %>
    <%{ %><table>
        <tr>
            <td>
                <b>Project ID : </b>
            </td>
            <td>
                <%=Project.ToString() %>
            </td>
        </tr>
        <tr>
            <td>
                <b>Project Title : </b>
            </td>
            <td>
                <%=prj.Title %>
            </td>
        </tr>
    </table>
    <%} %>
    <%} %>
    <table cellpadding="5" cellspacing="5" width="500px">
        <tr>
            <td style="width: 400px">
                <b>Please Select the given option </b>
            </td>
        </tr>
        <tr>
            <td style="width: 400px">
                <select name="feeds">
                    <%foreach (System.Xml.XmlNode xNode in FeedXmlList)%>
                    <%{ %>
                    <option value="<%=xNode.ChildNodes[1].InnerText%>">
                        <%=xNode.ChildNodes[1].InnerText%></option>
                    <%} %>
                </select>
            </td>
        </tr>
        <tr>
            <td style="width: 400px">
                <b>Write your Comment Here: </b>
                <br />
                <textarea name="txtcomment" cols="45" rows="5"></textarea>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <Efextra:Captcha ID="Captcha1" runat="server" TabIndex="29" ValidationErrorMessage="Verification Code"
            ValidationGroup="Feeds" ValidationText="*"></Efextra:Captcha>
        <tr>
            <td>
                <input type="submit" value="Submit FeedBack" />
            </td>
        </tr>
    </table>
    </form>
    

    And finally in Code behind file i just put some required condition and fetch all the html values through request.form, like this:

    if (Request.HttpMethod.ToLower() == "post" && Request.Form.Count > 0)
        {
            if (!string.IsNullOrEmpty(Request.Form["feeds"]) || !string.IsNullOrEmpty(Request.Form["txtcomment"]))
            {
                if (!string.IsNullOrEmpty(Request["property"]) || !string.IsNullOrEmpty(Request["project"]))
                {
                    if (IsUserLoggedIn||(!IsUserLoggedIn && !string.IsNullOrEmpty(Request["txtName"]) && !string.IsNullOrEmpty(Request["txtContact"]) && !string.IsNullOrEmpty(Request["txtEmail"])))
                    {
                        if (Request.Form["feeds"] != "[Select your option]")
                        {
                            Mail(Request.Form["feeds"], Request.Form["txtcomment"]);
                        }
                        else
                        {
                            Common.ClientMessage("Select the Option and Retry to Submit the feeds.", CommonConsts.AlertType.info);
    
                        }
                    }
                    else
                    {
                        Common.ClientMessage("Unregistered user must fill their name and Contact Details!", CommonConsts.AlertType.info);
                    }
                }
            }
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to save an high-score for local use only. A single int, that
I want to create a vb.net project that I will use to only hold
I'm coding up a page where I only want to use raw JavaScript code
I have a HTML page that I want to display in a WebBrowser control,
I want to use this SQL query to get only the records between 8
For testing purposes I want to use Jetty 8 to serve only static content.
I want to use jquery autocomplete in a foreach loop. When using ids, only
I want to limit the use of phpsessid cookie only for secure connections during
I want use javascript setInterval function to achieve a box rotate animate effect, I
We have a server control that we want to use in our .net MVC

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.