Click here to Skip to main content
15,899,935 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Build Deploment Package Error Pin
ahmed zidane11-Sep-12 14:37
ahmed zidane11-Sep-12 14:37 
QuestionASP.Net Pin
Habib00711-Sep-12 5:05
Habib00711-Sep-12 5:05 
AnswerRe: ASP.Net Pin
Pete O'Hanlon11-Sep-12 5:54
mvePete O'Hanlon11-Sep-12 5:54 
AnswerRe: ASP.Net Pin
Sandeep Mewara11-Sep-12 5:56
mveSandeep Mewara11-Sep-12 5:56 
AnswerMessage Closed Pin
11-Sep-12 18:36
kianurieves11-Sep-12 18:36 
GeneralRe: Cache property Pin
Pete O'Hanlon11-Sep-12 22:59
mvePete O'Hanlon11-Sep-12 22:59 
QuestionHttpMethod and PostBack Testing Pin
KaptinKrunch11-Sep-12 4:47
KaptinKrunch11-Sep-12 4:47 
AnswerRe: HttpMethod and PostBack Testing Pin
Eddy Vluggen11-Sep-12 5:30
professionalEddy Vluggen11-Sep-12 5:30 
I ain't no web-programmer, but sounds like homework, and I know where the documentation is, so shouldn't be too hard to come up with something. Let's try.

HttpRequest.HttpMethod[^]
Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client.
Docs also state it's a String, so the first part of the evaluation looks correct. The English implies that the Request was a POST action on the server.

IsPostBack looks like a property, not a method. Guess it must be part of the Page[^].
Gets a value that indicates whether the page is being rendered for the first time or is being loaded in response to a postback.
Ah, interesting. So, the block would be executed if:
  • It's being POST-ed
  • It's not a postback (meaning, the page is being rendered the first time)

The action is determined in the Form;
HTML
<form name="input" action="html_form_action.asp" method="post">
..and that is why I kinda like MSDN. Hope this helps a bit Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: HttpMethod and PostBack Testing Pin
KaptinKrunch11-Sep-12 6:06
KaptinKrunch11-Sep-12 6:06 
GeneralRe: HttpMethod and PostBack Testing Pin
Eddy Vluggen11-Sep-12 7:12
professionalEddy Vluggen11-Sep-12 7:12 
AnswerRe: HttpMethod and PostBack Testing Pin
jkirkerx11-Sep-12 8:53
professionaljkirkerx11-Sep-12 8:53 
QuestionCrystal Report Pin
komalridda11-Sep-12 0:42
komalridda11-Sep-12 0:42 
AnswerRe: Crystal Report Pin
Sandeep Mewara11-Sep-12 6:01
mveSandeep Mewara11-Sep-12 6:01 
Questionhow to show data like Pin
UDTWS10-Sep-12 23:27
UDTWS10-Sep-12 23:27 
AnswerRe: how to show data like Pin
KaptinKrunch11-Sep-12 4:48
KaptinKrunch11-Sep-12 4:48 
Generalasp.net Pin
nachiketcode10-Sep-12 4:14
nachiketcode10-Sep-12 4:14 
AnswerRe: asp.net Pin
R. Giskard Reventlov10-Sep-12 6:21
R. Giskard Reventlov10-Sep-12 6:21 
AnswerRe: asp.net Pin
Rahul Rajat Singh10-Sep-12 18:24
professionalRahul Rajat Singh10-Sep-12 18:24 
GeneralRe: asp.net Pin
Raghu KT12-Sep-12 2:11
Raghu KT12-Sep-12 2:11 
Suggestionhow to make thousandsepartor format in asp.net Pin
Developer879-Sep-12 21:18
Developer879-Sep-12 21:18 
GeneralRe: how to make thousandsepartor format in asp.net Pin
Abhinav S9-Sep-12 22:06
Abhinav S9-Sep-12 22:06 
QuestionHow to connect remote analysis services using visual studio code Pin
Member 82128998-Sep-12 3:16
Member 82128998-Sep-12 3:16 
QuestionEntity Framework is returing same entity for all foregn key values Pin
indian1437-Sep-12 8:19
indian1437-Sep-12 8:19 
AnswerRe: Entity Framework is returing same entity for all foregn key values Pin
Pete O'Hanlon7-Sep-12 8:46
mvePete O'Hanlon7-Sep-12 8:46 
GeneralRe: Entity Framework is returing same entity for all foregn key values Pin
indian1437-Sep-12 10:37
indian1437-Sep-12 10:37 

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.