Click here to Skip to main content
12,405,543 members (60,835 online)
   

ASP.NET

 
AnswerRe: Issue in web farm scenario deployment ASP.NET Pin
Sandeep Mewara22-Jan-13 2:41
mvpSandeep Mewara22-Jan-13 2:41 
QuestionWebResponse Pin
pit's_world21-Jan-13 1:50
memberpit's_world21-Jan-13 1:50 
AnswerRe: WebResponse Pin
Ali Al Omairi(Abu AlHassan)21-Jan-13 4:05
memberAli 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
memberJassim 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
memberjkirkerx22-Jan-13 12:32 
QuestionPost and Get process ASP.NET MVC Pin
Patrik von Frieling20-Jan-13 5:10
memberPatrik von Frieling20-Jan-13 5:10 
AnswerRe: Post and Get process ASP.NET MVC Pin
deflinek21-Jan-13 3:23
memberdeflinek21-Jan-13 3:23 
Hi Patric.

It seems that what you described as "some business logic" is some common processing that you want to fire in both GET and POST methods. In that case you can refactor it as separate method.
If that logic is valid only inside that one controller you can make private method that is called by both Item() methods - private controller methods are not mapped to MVC actions.
If it is more application wide you can also consider refactoring it out to some helper class.

BTW - copy/paste should be banned in any development environment Wink | ;)

Regards,
Mariusz.
--
"My software never has bugs. It just develops random features."

QuestionResource files show empty content Pin
Ali Al Omairi(Abu AlHassan)19-Jan-13 23:19
memberAli Al Omairi(Abu AlHassan)19-Jan-13 23:19 
AnswerRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 1:18
mvpSandeep Mewara20-Jan-13 1:18 
GeneralRe: Resource files show empty content Pin
Ali Al Omairi(Abu AlHassan)20-Jan-13 1:51
memberAli Al Omairi(Abu AlHassan)20-Jan-13 1:51 
GeneralRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 3:01
mvpSandeep Mewara20-Jan-13 3:01 
QuestionViewState not working in UserControl Pin
Jassim Rahma19-Jan-13 5:29
memberJassim Rahma19-Jan-13 5:29 
AnswerRe: ViewState not working in UserControl Pin
jkirkerx19-Jan-13 18:35
memberjkirkerx19-Jan-13 18:35 
AnswerRe: ViewState not working in UserControl Pin
Richard Deeming21-Jan-13 2:07
memberRichard Deeming21-Jan-13 2:07 
QuestionHow can we export data into csv format in c#.net Pin
Er Atul Sharma18-Jan-13 23:31
memberEr 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
mvpSandeep Mewara19-Jan-13 5:54 
QuestionSQL Server error Pin
Pritam Sankar Roy18-Jan-13 18:31
memberPritam Sankar Roy18-Jan-13 18:31 
AnswerRe: SQL Server error Pin
Nandakishorerao18-Jan-13 21:39
memberNandakishorerao18-Jan-13 21:39 
AnswerRe: SQL Server error Pin
Shameel23-Jan-13 4:51
memberShameel23-Jan-13 4:51 
QuestionHow to asp:Literal with more..? Pin
Jassim Rahma18-Jan-13 3:19
memberJassim Rahma18-Jan-13 3:19 
AnswerRe: How to asp:Literal with more..? Pin
Parwej Ahamad18-Jan-13 7:13
memberParwej Ahamad18-Jan-13 7:13 
AnswerRe: How to asp:Literal with more..? Pin
Nandakishorerao18-Jan-13 21:46
memberNandakishorerao18-Jan-13 21:46 
QuestionFindControl not working in Gridview ItemTemplate of Button Pin
Member 974870717-Jan-13 19:42
memberMember 974870717-Jan-13 19:42 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pin
chester_it2118-Jan-13 6:16
groupchester_it2118-Jan-13 6:16 

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.


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