Click here to Skip to main content
       

ASP.NET

 
QuestionIssue in web farm scenario deployment ASP.NET Pinmembermukeshgaharwar21-Jan-13 19:20 
AnswerRe: Issue in web farm scenario deployment ASP.NET PinmvpSandeep Mewara22-Jan-13 2:41 
QuestionWebResponse Pinmemberpit's_world21-Jan-13 1:50 
AnswerRe: WebResponse PinmemberAli Al Omairi(Abu AlHassan)21-Jan-13 4:05 
Questioncolumn 'member_channel_name' does not belong to table PinmemberJassim Rahma20-Jan-13 9:57 
AnswerRe: column 'member_channel_name' does not belong to table PinmentorBrij20-Jan-13 21:52 
JokeRe: column 'member_channel_name' does not belong to table Pinmemberjkirkerx22-Jan-13 12:32 
QuestionPost and Get process ASP.NET MVC PinmemberPatrik von Frieling20-Jan-13 5:10 
Hello *,
I aked my question a few days ago on stack overflow but I'am not lucky with the one answer. Perhaps, someone can help me here.
 
My first controller method is:
 
[HttpGet]
public ActionResult Item()
 
In this method, I have some business logic like retrieve the user id with sql or watch out if a user has the permission to see some regions on the view or whatever.
I used bool variables in my viewbag and get these data with razor.
It's only one case..
 
Now, the user is going to fill data in a form, will make a post and then I call the same method, but with a [HttpPost()] flag (I saw it in many tutorials).
 
[HttpPost]
public ActionResult Item(FormCollection formCollection)
 
Ok, now I can collect the values out of the form and can work with them.
BUT if this function is ready, it gives as standard View() back and I can't made the business logic like in the Get() method or must I really copy/pase all these stuff or get it in a own function and call it two times?
 
Here is a link to my stack overflow question, perhaps you unterstand me better with that:
 
Stack Overflow question
 
Best regards, Patrik
AnswerRe: Post and Get process ASP.NET MVC Pinmemberdeflinek21-Jan-13 3:23 
QuestionResource files show empty content PinmemberAli Al Omairi(Abu AlHassan)19-Jan-13 23:19 
AnswerRe: Resource files show empty content PinmvpSandeep Mewara20-Jan-13 1:18 
GeneralRe: Resource files show empty content PinmemberAli Al Omairi(Abu AlHassan)20-Jan-13 1:51 
GeneralRe: Resource files show empty content PinmvpSandeep Mewara20-Jan-13 3:01 
QuestionViewState not working in UserControl PinmemberJassim Rahma19-Jan-13 5:29 
AnswerRe: ViewState not working in UserControl [modified] Pinmemberjkirkerx19-Jan-13 18:35 
AnswerRe: ViewState not working in UserControl PinmemberRichard Deeming21-Jan-13 2:07 
QuestionHow can we export data into csv format in c#.net PinmemberEr Atul Sharma18-Jan-13 23:31 
AnswerRe: How can we export data into csv format in c#.net PinmvpSandeep Mewara19-Jan-13 5:54 
QuestionSQL Server error PinmemberPritam Sankar Roy18-Jan-13 18:31 
AnswerRe: SQL Server error PinmemberNandakishorerao18-Jan-13 21:39 
AnswerRe: SQL Server error PinmemberShameel23-Jan-13 4:51 
QuestionHow to asp:Literal with more..? PinmemberJassim Rahma18-Jan-13 3:19 
AnswerRe: How to asp:Literal with more..? PinmemberParwej Ahamad18-Jan-13 7:13 
AnswerRe: How to asp:Literal with more..? PinmemberNandakishorerao18-Jan-13 21:46 
QuestionFindControl not working in Gridview ItemTemplate of Button PinmemberMember 974870717-Jan-13 19:42 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 13 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid