Click here to Skip to main content
15,898,924 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCSS element parser Pin
econner9-Dec-06 9:24
econner9-Dec-06 9:24 
AnswerRe: CSS element parser Pin
g00fyman10-Dec-06 1:53
g00fyman10-Dec-06 1:53 
GeneralRe: CSS element parser Pin
econner10-Dec-06 7:14
econner10-Dec-06 7:14 
GeneralRe: CSS element parser Pin
econner10-Dec-06 7:22
econner10-Dec-06 7:22 
GeneralRe: CSS element parser Pin
g00fyman10-Dec-06 12:31
g00fyman10-Dec-06 12:31 
GeneralRe: CSS element parser Pin
econner10-Dec-06 14:12
econner10-Dec-06 14:12 
GeneralRe: CSS element parser Pin
econner10-Dec-06 16:52
econner10-Dec-06 16:52 
QuestionASP.net form tampering is not possible? Pin
Genbox9-Dec-06 5:49
Genbox9-Dec-06 5:49 
Hi.

I've made a sample ASP.net 2.0 page to demonstate form tampering. But the problem is that i can't get it to work. (normally that should be a good thing).

This is my ASP.net page:

<form id="form1" runat="server">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="value1">value1</asp:ListItem>
<asp:ListItem Value="value2">value2</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="Make postback" />
</form>

and my C# backend page:

protected void Page_Load(object sender, EventArgs e)
{
Response.Write(DropDownList1.Text);
}

Now, the problem is that when i edit the source of the HTML site that the browser displays, and press the submit button, the newly created value dont get registered on the server as it's supposed to (form tampering). I had already disabled EventValidation as i figured that it would throw me an exception because the HTML source would have changed on the postback.

The result i get instead is that the page postbacks and selects the first item in the DropDownList1 instead of the item i created client-side (in the HTML)

Do you guys have a solution to this? any help would be nice.
AnswerRe: ASP.net form tampering is not possible? Pin
Guffa9-Dec-06 7:26
Guffa9-Dec-06 7:26 
GeneralRe: ASP.net form tampering is not possible? Pin
Genbox11-Dec-06 1:44
Genbox11-Dec-06 1:44 
AnswerRe: ASP.net form tampering is not possible? Pin
Guffa11-Dec-06 2:52
Guffa11-Dec-06 2:52 
GeneralRe: ASP.net form tampering is not possible? Pin
Genbox11-Dec-06 9:22
Genbox11-Dec-06 9:22 
Questionlogin Question Pin
amirafouad219-Dec-06 4:31
amirafouad219-Dec-06 4:31 
AnswerRe: login Question Pin
Genbox9-Dec-06 6:34
Genbox9-Dec-06 6:34 
AnswerRe: login Question Pin
ednrgc11-Dec-06 2:12
ednrgc11-Dec-06 2:12 
QuestionAlert Messages in Asp.net ATLAS Pin
www.suniltvl.in9-Dec-06 1:51
www.suniltvl.in9-Dec-06 1:51 
AnswerRe: Alert Messages in Asp.net ATLAS Pin
ednrgc11-Dec-06 2:17
ednrgc11-Dec-06 2:17 
Questionfetching web menu item Pin
mohd imran abdul aziz9-Dec-06 0:03
mohd imran abdul aziz9-Dec-06 0:03 
QuestionSession management Pin
R.Palanivel9-Dec-06 0:00
R.Palanivel9-Dec-06 0:00 
AnswerRe: Session management Pin
Hussein Madani Ghomi9-Dec-06 1:44
Hussein Madani Ghomi9-Dec-06 1:44 
GeneralRe: Session management Pin
R.Palanivel10-Dec-06 19:58
R.Palanivel10-Dec-06 19:58 
Questionproblem in c# Pin
Imran Khan Pathan8-Dec-06 23:45
Imran Khan Pathan8-Dec-06 23:45 
GeneralRe: problem in c# Pin
Imran Khan Pathan9-Dec-06 0:15
Imran Khan Pathan9-Dec-06 0:15 
AnswerRe: problem in c# Pin
Dominic Pettifer9-Dec-06 1:58
Dominic Pettifer9-Dec-06 1:58 
QuestionHow To Create a Class in asp.net 2.0(vb.net) with OBJECT POOLING ? Pin
Hussein Madani Ghomi8-Dec-06 23:13
Hussein Madani Ghomi8-Dec-06 23:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.