Click here to Skip to main content
12,239,805 members (54,826 online)
   

ASP.NET

 
Questionhow to use ckeditor in asp.net? Pin
Daxiii23-Jan-13 1:09
memberDaxiii23-Jan-13 1:09 
AnswerRe: how to use ckeditor in asp.net? Pin
mark merrens23-Jan-13 6:31
membermark merrens23-Jan-13 6:31 
AnswerRe: how to use ckeditor in asp.net? Pin
Sandeep Mewara23-Jan-13 9:20
mvpSandeep Mewara23-Jan-13 9:20 
Questionhow resize this image before uploading Pin
Jassim Rahma22-Jan-13 9:44
memberJassim Rahma22-Jan-13 9:44 
AnswerRe: how resize this image before uploading Pin
jkirkerx22-Jan-13 13:25
memberjkirkerx22-Jan-13 13:25 
AnswerRe: how resize this image before uploading Pin
Richard Deeming23-Jan-13 2:53
memberRichard Deeming23-Jan-13 2:53 
QuestionIssue in web farm scenario deployment ASP.NET Pin
mukeshgaharwar21-Jan-13 20:20
membermukeshgaharwar21-Jan-13 20:20 
AnswerRe: Issue in web farm scenario deployment ASP.NET Pin
Sandeep Mewara22-Jan-13 3:41
mvpSandeep Mewara22-Jan-13 3:41 
QuestionWebResponse Pin
pit's_world21-Jan-13 2:50
memberpit's_world21-Jan-13 2:50 
AnswerRe: WebResponse Pin
Ali Al Omairi(Abu AlHassan)21-Jan-13 5:05
memberAli Al Omairi(Abu AlHassan)21-Jan-13 5:05 
Questioncolumn 'member_channel_name' does not belong to table Pin
Jassim Rahma20-Jan-13 10:57
memberJassim Rahma20-Jan-13 10:57 
AnswerRe: column 'member_channel_name' does not belong to table Pin
Brij20-Jan-13 22:52
mentorBrij20-Jan-13 22:52 
JokeRe: column 'member_channel_name' does not belong to table Pin
jkirkerx22-Jan-13 13:32
memberjkirkerx22-Jan-13 13:32 
QuestionPost and Get process ASP.NET MVC Pin
Patrik von Frieling20-Jan-13 6:10
memberPatrik von Frieling20-Jan-13 6: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 Pin
deflinek21-Jan-13 4:23
memberdeflinek21-Jan-13 4:23 
QuestionResource files show empty content Pin
Ali Al Omairi(Abu AlHassan)20-Jan-13 0:19
memberAli Al Omairi(Abu AlHassan)20-Jan-13 0:19 
AnswerRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 2:18
mvpSandeep Mewara20-Jan-13 2:18 
GeneralRe: Resource files show empty content Pin
Ali Al Omairi(Abu AlHassan)20-Jan-13 2:51
memberAli Al Omairi(Abu AlHassan)20-Jan-13 2:51 
GeneralRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 4:01
mvpSandeep Mewara20-Jan-13 4:01 
QuestionViewState not working in UserControl Pin
Jassim Rahma19-Jan-13 6:29
memberJassim Rahma19-Jan-13 6:29 
AnswerRe: ViewState not working in UserControl Pin
jkirkerx19-Jan-13 19:35
memberjkirkerx19-Jan-13 19:35 
AnswerRe: ViewState not working in UserControl Pin
Richard Deeming21-Jan-13 3:07
memberRichard Deeming21-Jan-13 3:07 
QuestionHow can we export data into csv format in c#.net Pin
Er Atul Sharma19-Jan-13 0:31
memberEr Atul Sharma19-Jan-13 0:31 
AnswerRe: How can we export data into csv format in c#.net Pin
Sandeep Mewara19-Jan-13 6:54
mvpSandeep Mewara19-Jan-13 6:54 
QuestionSQL Server error Pin
Pritam Sankar Roy18-Jan-13 19:31
memberPritam Sankar Roy18-Jan-13 19:31 
AnswerRe: SQL Server error Pin
Nandakishorerao18-Jan-13 22:39
memberNandakishorerao18-Jan-13 22:39 
AnswerRe: SQL Server error Pin
Shameel23-Jan-13 5:51
memberShameel23-Jan-13 5:51 
QuestionHow to asp:Literal with more..? Pin
Jassim Rahma18-Jan-13 4:19
memberJassim Rahma18-Jan-13 4:19 
AnswerRe: How to asp:Literal with more..? Pin
Parwej Ahamad18-Jan-13 8:13
memberParwej Ahamad18-Jan-13 8:13 
AnswerRe: How to asp:Literal with more..? Pin
Nandakishorerao18-Jan-13 22:46
memberNandakishorerao18-Jan-13 22:46 
QuestionFindControl not working in Gridview ItemTemplate of Button Pin
Member 974870717-Jan-13 20:42
memberMember 974870717-Jan-13 20:42 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pin
chester_it2118-Jan-13 7:16
groupchester_it2118-Jan-13 7:16 
QuestionRe: FindControl not working in Gridview ItemTemplate of Button Pin
Nandakishorerao18-Jan-13 22:48
memberNandakishorerao18-Jan-13 22:48 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pin
Kanwal Daud Gill21-Jan-13 21:23
memberKanwal Daud Gill21-Jan-13 21:23 
GeneralRe: FindControl not working in Gridview ItemTemplate of Button Pin
Nandakishorerao21-Jan-13 21:49
memberNandakishorerao21-Jan-13 21:49 
QuestionTracking Emails Pin
Jaison Joe17-Jan-13 18:49
memberJaison Joe17-Jan-13 18:49 
Questionhow to redirect in a url? Pin
Jassim Rahma17-Jan-13 10:42
memberJassim Rahma17-Jan-13 10:42 
AnswerRe: how to redirect in a url? Pin
Parwej Ahamad18-Jan-13 8:17
memberParwej Ahamad18-Jan-13 8:17 
GeneralRe: how to redirect in a url? Pin
Jassim Rahma18-Jan-13 8:36
memberJassim Rahma18-Jan-13 8:36 
GeneralRe: how to redirect in a url? Pin
Parwej Ahamad18-Jan-13 18:23
memberParwej Ahamad18-Jan-13 18:23 
AnswerRe: how to redirect in a url? Pin
Rekhash19-Jan-13 0:01
memberRekhash19-Jan-13 0:01 
QuestionHow to add KML file to google Map using javascript in asp.net Pin
Trivikramarao Vurubandi17-Jan-13 1:40
memberTrivikramarao Vurubandi17-Jan-13 1:40 
QuestionExport data in Excel(xlsx) without using Excel Object from Datatable. Pin
mca_rameshkumar16-Jan-13 23:00
membermca_rameshkumar16-Jan-13 23:00 
AnswerRe: Export data in Excel(xlsx) without using Excel Object from Datatable. Pin
chester_it2118-Jan-13 7:52
groupchester_it2118-Jan-13 7:52 
QuestionButton or ImageButton? Pin
Jassim Rahma16-Jan-13 10:40
memberJassim Rahma16-Jan-13 10:40 
AnswerRe: Button or ImageButton? Pin
jkirkerx16-Jan-13 13:40
memberjkirkerx16-Jan-13 13:40 
QuestionGoogle Translate vb.net Pin
DotNetFellow15-Jan-13 23:31
memberDotNetFellow15-Jan-13 23:31 
AnswerRe: Google Translate vb.net Pin
Sandeep Mewara16-Jan-13 3:57
mvpSandeep Mewara16-Jan-13 3:57 
Questionunzipping file in host ? Pin
jojoba201115-Jan-13 18:59
memberjojoba201115-Jan-13 18:59 
AnswerRe: unzipping file in host ? Pin
Vani Kulkarni16-Jan-13 3:44
memberVani Kulkarni16-Jan-13 3:44 

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.160426.1 | Last Updated 28 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid