16,018,949 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 8454063 (Top 18 by date)
Member 8454063
28-Dec-13 23:18pm
View
"ICollection<httppostedfilebase> FileUpload900 " get some images . i want to check every item is image or not . my first code works for " HttpPostedFileBase File128 " correctly . but dose not work for "ICollection<httppostedfilebase>" . i don't know how can i browse it's items and check them .
Member 8454063
28-Dec-13 11:48am
View
no , i trace my code . it gets image . _value is not null . but _value as HttpPostedFileBase is null . why?
Member 8454063
26-Sep-13 14:23pm
View
i wanna news
Member 8454063
12-Sep-13 10:33am
View
no it dose not work . i changed all code . put just one field . alert(xhr.status); is executed and shows 0 . so i changed code to below. now, althoghe dose not show Error and 0, but wil pass username null to controller like before .
function saveMyModel() {
var url = '@Url.Action("Save", "Home")';
$.post(url, {
username: ‘jack’
}, function (data) {
if (data)
alert("ok");
else
alert("Error ");
});
}
Member 8454063
12-Sep-13 7:16am
View
Pooja Dhanani thanks , is it possible you see my updated question?
Member 8454063
2-Sep-13 9:04am
View
thanks . but i use enttiy framwork
Member 8454063
2-Sep-13 8:01am
View
yes .your guess is true. i'm coding entity framwork
Member 8454063
20-Aug-13 2:52am
View
i use codefirst. and these are in Mapping . yes these are class
Member 8454063
20-Aug-13 1:34am
View
i updated question . i wanna some fields in tbl_order and tbl_basket.for example m => m.tbl_order.TypeOfSpend . i used html.BeginForm before of @model MyProject.Models.ViewModelX but it dose not know fields
Member 8454063
17-Aug-13 13:44pm
View
in table i have username(FK) , id_Product(FK) ,Star , IP
Member 8454063
17-Aug-13 13:32pm
View
Deleted
in table i have username , id_Product(FK) ,NumebrOfStar , IP
Member 8454063
8-Aug-13 5:54am
View
hi my good friends.
i used using (SqlConnection connection = new SqlConnection(SharedDll.Connections.ConnectionString()))
{...
}
and it worked . thanks
Member 8454063
7-Aug-13 9:46am
View
i used @Html.ValidationMessage("username") and it worked . but when i have server side error and client side error together , it just shows clientside error . @Html.ValidationMessage("username") alone works , but when i have forexample email required error , it doesn't show .
Member 8454063
6-Aug-13 13:38pm
View
hello Ramanathan Kannappan
i did your answer. i put a hiddenfor and filled my field in model .but hiddenfor get null .
@Html.HiddenFor(m => m.id_city, new { @id = "hidMyModelid_city" })
$(document).ready(function () {
jQuery('#MyCombo').change(function(){
var str = document.getElementById('Mycombo').value;
var str1 = str.split(", ", 1).toString();
$.ajax({
url: 'someaction',
data: { countryy: str1 },
cache: false,
type: 'GET',
success: function (result) {
$('#hidMyModelid_city').val(result);
}
});
});
});
Member 8454063
6-Aug-13 2:17am
View
as you see , i put alert(thrownError);
and it shows "not found" .
and alert(xhr.status) shows 404 .
i think problem is ajax part . i installed firebug , i don't know do right or not, but when i put breakpoint on ajax part, shows seccuss . although it's script pannel says :"Script Panel was inactive during page load"
i don't know what's my ajax problem .
Member 8454063
4-Aug-13 10:42am
View
yes i know . for example i know when i set JsonRequestBehavior on AllowGet , its open for Hijacking .
but how can i solve it?
public ActionResult MyAction(string str)
{
var result = MYClass.GetNumber(str);
return Json(result, JsonRequestBehavior.AllowGet);
}
Member 8454063
2-Aug-13 6:10am
View
ok , but can i set results returned from my controller action to a field in my model?
for example in my model , i have a id field . can i set result to it?
Member 8454063
31-Jul-13 15:11pm
View
no it dose'nt work .
Show More