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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:53:15+00:00 2026-05-25T02:53:15+00:00

I am using a button to do postback <asp:Button ID=SendButton Enabled=True Width=70 runat=server PostBackUrl='<%#

  • 0

I am using a button to do postback

 <asp:Button ID="SendButton" Enabled="True" Width="70" runat="server" PostBackUrl='<%# Eval("GroupName", "SendMessage.aspx?GroupName={0}") %>' Text='Send'></asp:Button>

to send the GroupName to SendMessage.aspx page. But I feel it is vulnerable to attack, something like spoofing (correct me if i am wrong).

http://localhost:40092/SurelyK/SendMessage.aspx?GroupName=Acc

The Url contains the groupname which can be changed by attackers
How can I prevent my website from such attack. give me some suggestions pls.

  • 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-25T02:53:16+00:00Added an answer on May 25, 2026 at 2:53 am

    The usual method to protect against this is to validate your inputs on the server side, where malicious clients can’t do anything. If you see an invalid group name on the server, you can just return a page saying so, rather than performing whatever processing you would for a valid group name.

    If you don’t expect the values to change, then you can store the data either in ViewState (which is encrypted) or in the Session (which is stored on the server, and is inaccessible to clients.)

    Given that you have a button for submitting this information, though, I think proper server-side validation is the correct path.

    As well, if you haven’t secured this page by requiring authentication and authorization, then you should of course do so as well, so that only users you know and trust can access the page regardless.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the javascript code below which disables an asp.net button during page postback.
I have an asp:button with an onclick property that posts back to the server.
I have an asp button that is used to upload images (using uploadify) and
I got a problem with a button control in asp.net webforms. After using mvc
In my ASP.NET applications, I have a server-side HTML select control. <select id=CompanyDropDown runat=server
Well i have a asp.net page where i have a button that im using
Right now I am using a ASP.NET TreeView with checkboxes enabled in my page,
I am using asp.net 3.5 with c#.I want to invoke button click event inside
i am using this way to bind ASP.NET GridView Without postback. i want to
I know that ASP.NET controls such as the button have the postback event model.

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.