Click here to Skip to main content
15,886,689 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIssue in web farm scenario deployment ASP.NET Pin
mukeshgaharwar21-Jan-13 19:20
mukeshgaharwar21-Jan-13 19:20 
AnswerRe: Issue in web farm scenario deployment ASP.NET Pin
Sandeep Mewara22-Jan-13 2:41
mveSandeep Mewara22-Jan-13 2:41 
QuestionWebResponse Pin
pit's_world21-Jan-13 1:50
pit's_world21-Jan-13 1:50 
AnswerRe: WebResponse Pin
Ali Al Omairi(Abu AlHassan)21-Jan-13 4:05
professionalAli Al Omairi(Abu AlHassan)21-Jan-13 4:05 
Questioncolumn 'member_channel_name' does not belong to table Pin
Jassim Rahma20-Jan-13 9:57
Jassim Rahma20-Jan-13 9:57 
AnswerRe: column 'member_channel_name' does not belong to table Pin
Brij20-Jan-13 21:52
mentorBrij20-Jan-13 21:52 
JokeRe: column 'member_channel_name' does not belong to table Pin
jkirkerx22-Jan-13 12:32
professionaljkirkerx22-Jan-13 12:32 
QuestionPost and Get process ASP.NET MVC Pin
PatrikSkywalker20-Jan-13 5:10
PatrikSkywalker20-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:

C#
[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).

C#
[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 Pin
Deflinek21-Jan-13 3:23
Deflinek21-Jan-13 3:23 
QuestionResource files show empty content Pin
Ali Al Omairi(Abu AlHassan)19-Jan-13 23:19
professionalAli Al Omairi(Abu AlHassan)19-Jan-13 23:19 
AnswerRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 1:18
mveSandeep Mewara20-Jan-13 1:18 
GeneralRe: Resource files show empty content Pin
Ali Al Omairi(Abu AlHassan)20-Jan-13 1:51
professionalAli Al Omairi(Abu AlHassan)20-Jan-13 1:51 
GeneralRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 3:01
mveSandeep Mewara20-Jan-13 3:01 
QuestionViewState not working in UserControl Pin
Jassim Rahma19-Jan-13 5:29
Jassim Rahma19-Jan-13 5:29 
AnswerRe: ViewState not working in UserControl Pin
jkirkerx19-Jan-13 18:35
professionaljkirkerx19-Jan-13 18:35 
AnswerRe: ViewState not working in UserControl Pin
Richard Deeming21-Jan-13 2:07
mveRichard Deeming21-Jan-13 2:07 
QuestionHow can we export data into csv format in c#.net Pin
Er Atul Sharma18-Jan-13 23:31
Er Atul Sharma18-Jan-13 23:31 
AnswerRe: How can we export data into csv format in c#.net Pin
Sandeep Mewara19-Jan-13 5:54
mveSandeep Mewara19-Jan-13 5:54 
QuestionSQL Server error Pin
Pritam Sankar Roy18-Jan-13 18:31
Pritam Sankar Roy18-Jan-13 18:31 
AnswerRe: SQL Server error Pin
Nandakishore G N18-Jan-13 21:39
professionalNandakishore G N18-Jan-13 21:39 
AnswerRe: SQL Server error Pin
Shameel23-Jan-13 4:51
professionalShameel23-Jan-13 4:51 
QuestionHow to asp:Literal with more..? Pin
Jassim Rahma18-Jan-13 3:19
Jassim Rahma18-Jan-13 3:19 
AnswerRe: How to asp:Literal with more..? Pin
Parwej Ahamad18-Jan-13 7:13
professionalParwej Ahamad18-Jan-13 7:13 
AnswerRe: How to asp:Literal with more..? Pin
Nandakishore G N18-Jan-13 21:46
professionalNandakishore G N18-Jan-13 21:46 
QuestionFindControl not working in Gridview ItemTemplate of Button Pin
Kanwal Daud Gill17-Jan-13 19:42
Kanwal Daud Gill17-Jan-13 19:42 

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.