15,904,153 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 Javascript questions
View Visual Basic questions
View Python 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 Ranjeet Patel (Top 60 by date)
Ranjeet Patel
3-Nov-14 2:54am
View
See if you know, that the database can have .mdf file detachable. You can use this file to store in a particular folder and give the connection string to that file and then you can use that file as you use the server database to store the data. remember If that file is deleted from client machine your whole data will be deleted.
Ranjeet Patel
28-Oct-14 6:27am
View
Where do you want to keep your database. Is it on client machine or you have some centralized server. If client side you can have database.mdf file and keep your database structure in that.
Ranjeet Patel
15-Oct-14 7:28am
View
See if you write [HtppPost] on the top of the action method
Ranjeet Patel
11-Sep-14 7:14am
View
did you just put a question here and forget about to come back and look for the answer..?
Ranjeet Patel
10-Sep-14 5:14am
View
What have you tried till yet. could you please paste your code snippet here.
There are many ways to achieve this
1) you can use Web Grid as per below link
http://stackoverflow.com/questions/22194716/paging-in-mvc-5
2) PM> Install-Package MVC4.Paging find on google how to use this, you can follow below link
http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/sorting-filtering-and-paging-with-the-entity-framework-in-an-asp-net-mvc-application
Ranjeet Patel
10-Sep-14 5:06am
View
where you want to take the text of the dropdown. in client side if you want use jQuery if you want to send the text behind the page then use model in mvc.
Ranjeet Patel
9-Sep-14 1:31am
View
do you want me to copy and paste the code? The similar code can help him. hi just need to put his own variables and objects. and there are other solutions also provided. he can refer that too...
Ranjeet Patel
5-Sep-14 1:45am
View
as you know we don't know what is in your mind. how you are implementing..? so whenever you ask any question first you have to clear all the things. so any one can give answer in one shot...
Ranjeet Patel
1-Sep-14 9:29am
View
finally I googled and find out this link see if it helps
http://stackoverflow.com/questions/1444592/determine-clients-computer-name
Ranjeet Patel
1-Sep-14 9:10am
View
Did you get any error?
Ranjeet Patel
1-Sep-14 9:09am
View
Great
Ranjeet Patel
1-Sep-14 8:59am
View
@item.lastUpdate.ToString("MM/dd/yyyy") try this line once
I know the formate would be different but at least try this, then you can think on the date format
Ranjeet Patel
1-Sep-14 8:53am
View
item.lastUpdate.ToString("MM/dd/yyyy") and check if this is correct
Ranjeet Patel
1-Sep-14 8:48am
View
did you try upper row?
Ranjeet Patel
1-Sep-14 1:09am
View
Directly can not give answers without seeing the code. But I can say by seeing the error you are passing any wrong parameter in your web application or in the database.
Can you put the code here where the error is coming...
Ranjeet Patel
29-Aug-14 3:56am
View
I think you need to modify your tags from MVC C# add your HP Fortify in your question tags.. becausue this tool only some people are aware.. As I am not aware of this tool.
Ranjeet Patel
28-Aug-14 7:42am
View
I am in strange... because this should work as you are saying that it worked in localhost..
there is nothing to do with https://
and I fill that TempData is not currently used in you code. though this is my view.
Ranjeet Patel
26-Aug-14 3:38am
View
in your question many things are confusing me.
1) the page should refresh on the selecting the select Item or not.?
2) the page is being refreshed because you are writing the below line
var x = $("#SelectItem option:selected").val();
In my view replace the line with
var x = $("#SelectItem").val();
Ranjeet Patel
25-Aug-14 7:00am
View
Then you can do one thing.. this is extra solution.. because what i know about jQuery is is automatically shows the model in middle of the screen. but you can give one css class in your division.. which should have the property position : Center..
possitionCenter is your class which should have possession: center propery
<div id="dialog-confirm" class="possitionCenter" style="display: none">
<p>
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
Are you sure to delete?
</p>
</div>
Ranjeet Patel
25-Aug-14 5:18am
View
did you try with removing the comment on the //modal: true,
Ranjeet Patel
25-Aug-14 5:12am
View
Not being clear can you update your question with the code sample
Ranjeet Patel
25-Aug-14 5:00am
View
Yes that's true.. sometime it happens what the interviewer ask they even don't know the solutions. and they want it from you
Ranjeet Patel
22-Aug-14 3:48am
View
You probably just need to register the DLL with Windows using regsvr32.exe. Then you should be able to add it in VS. From the command line, run
regsvr32.exe sms.dll
Ranjeet Patel
4-Aug-14 5:37am
View
Thanks, I will see If I am missing some closing tags.
Ranjeet Patel
4-Aug-14 3:12am
View
It seems difficult to do by coding what you have asked, because if the moster don't provide any service by which you can get access to there database. then you would not be able to take all the data enter in there website. still if you want then you can write script to login in monster and copy paste the data into your application. that is the only way I can tell.
Ranjeet Patel
4-Aug-14 2:50am
View
Can you please explain how you are storing the image in the database. because somebody can only store the path where the image is stored and somebody convert the image in binary and stores in the image column.
Ranjeet Patel
4-Aug-14 2:43am
View
You can use jQuery post method to update the data also. just pass the Id of the list view element you want to update.
Ranjeet Patel
4-Aug-14 2:36am
View
Thanks for your solution. As I mentioned that I have checked that the session value is not null. in my question.. Now I got the solution. but Thanks a lot for your attention.
Ranjeet Patel
4-Aug-14 2:35am
View
Hi Thanks for your comment. I got the solution. I will past the solution. Problem was with my database column size.
Ranjeet Patel
24-Jul-14 2:51am
View
what error you are getting ???
Any way you try this below code in your view. it might help
<script type="text/javascript">
$(document).ready(function () {
$("#drporganisation").change(function () {
var myurl= '@Url.Action("ActionName", "ControlerName")';
mydata= {drporganisation: $(this).val()}
$.ajax({
url: myurl,
type: "GET",
data: mydata,
success: function(text){
var your_object = JSON.parse(text);
$.each(your_object , function(k, item) {
$('.Department') // here pass the id or class of your control
.append($("<option></option>")
.attr("value", item.MOD_ID)
.text(item.Name));
});
},
error: function(){
//alert('Ошибка javascript');
},
dataType : "html"
});
});
});
});
</script>
Ranjeet Patel
23-Jul-14 9:18am
View
I think you can add as much as you want.
Ranjeet Patel
23-Jul-14 5:01am
View
I want that when I select an organisation at that time department and grade drop down list should be populated, if I select 2nd organisation depend on that organisation department and grade drop down should be changed?
This is what you wrote in your question.
so the code you wrote in controller is not as you write the question.
your method should return both the department and Grade at a time.
first you clear one thing
what is your need. you want to select the organization and want to get the result accordingly in Grade and Department
or you want to select the organization and then the department will fill then selection on the Department the Grade should be coming in the dropdown. (if this is the requirement then your action method are quite correct)
be in touch..
Ranjeet Patel
22-Jul-14 6:23am
View
I think he wrote purposefully, He got frustrated with the code. so he used double meaning.. ! Yes it happens when we are in trouble. but better you tell us what you tried and what you need..?
Ranjeet Patel
22-Jul-14 6:16am
View
So use as you want. what problem you are facing..? we can use same model as many view or partial view you want..
http://www.itexico.com/blog/bid/97516/How-to-Creating-a-Web-App-with-ASP-NET-MVC-using-C-RAZOR-and-Visual-Studio
Ranjeet Patel
22-Jul-14 6:14am
View
Really cool... ha ha ha
Ranjeet Patel
22-Jul-14 1:37am
View
You can have many ways .. try to use jQuery onchange event.. to put a flag in any hidden field and get the flag in your C# code. that the control value is changed
Ranjeet Patel
21-Jul-14 9:38am
View
So you are using the DAL.Insertion method which is static method but It should return a parameter jobId(but you are not returning any thing) that you can use. go to the Insertion method and use the objSQLCommand.Parameters["@JobID"].Value.ToString() there.
Ranjeet Patel
21-Jul-14 8:58am
View
Hi Again :)
Make a json in this way and return in the action result.
var result= {
Department: [
{ name : 'name 1', value : 'value 1'},
{ name : 'name 2', value : 'value 2'}
....
],
Grade: {
...
},
};
then access it in below way
$.getJSON( 'some url', function( result) {
//Do something with data
});
You can then access the data directly with result.Department and Result.Grade.
then assign the result as we assign in dropdown result.
Ranjeet Patel
18-Jul-14 5:30am
View
Try this link
http://forums.asp.net/t/1601495.aspx?+CS1061+System+Data+SqlClient+SqlDataReader+does+not+contain+a+definition+for+Item+and+no+extension+method+Item+accepting+a+first+argument+of+type+System+Data+SqlClient+SqlDataReader+could+be+found+are+you+missing+a+using+directive+or+an+assembly
Ranjeet Patel
16-Jul-14 7:56am
View
http://forums.asp.net/t/1934215.aspx?Using+jQuery+ajax+to+call+asmx+webservice+methods
in this link some example you can get. try to make your own service.
Ranjeet Patel
14-Jul-14 8:31am
View
See that means your service is not working... so any client can not use your service.
make sure that your service is accessible and running always.
Ranjeet Patel
14-Jul-14 3:27am
View
http://localhost:3031/WS_HTML/Service1.asmx/Validate/UserName=test&Password=test
http://localhost:3031/WS_HTML/Service1.asmx/Validate/UserName=test/Password=test
Try to run both the upper links and verify if one of those works, It works then
$.ajax({
ServiceCallID: 1,
from this line try to remove the ServiceCallID:1, and see if any luck..
Ranjeet Patel
14-Jul-14 2:13am
View
I did you try to write your controller and action name in URL and see if your controller is getting called.
Ranjeet Patel
25-Jun-14 7:46am
View
Here is a suggestion for you. You make your own grid and take all the property in your model.
and then take one more propery isEditable. you can set it true or false by your requirement by C# code or jquery code too.
Ranjeet Patel
25-Jun-14 7:42am
View
Not full information but please see the below link it might help you
http://stackoverflow.com/questions/20762923/how-to-avoid-system-data-entity-infrastructure-dbupdateexception
Ranjeet Patel
25-Jun-14 7:40am
View
This may be because the path you have given for log file is not in the server. or may be the permission issue.
Ranjeet Patel
25-Jun-14 7:22am
View
I would suggest it to move it to the other file. because in global.asax file I have never seen anybody to use inherit.
And what do you mean by sending mail at given time ? please explain.
you can put your sending email code in separate class and call the class whenever you want to send the mail.
Ranjeet Patel
20-Jun-14 7:58am
View
I think you should verify that the same code is written on the other servers too. because it happens only because of code. you should use to sent the <, > in a string by @Html.Raw if you are using MVC.net of if you are using asp.net then find the alternatives Thanks,
Ranjeet Patel
19-Jun-14 5:36am
View
What error you are getting..? If possible please put you code snippets... that might help.
Ranjeet Patel
19-Jun-14 5:30am
View
See SharathKumaar you don't have a date. you only have month and year. so if you want in dd/mm/yyyy the system doesn't know which date you want..
but if you want in some other format like yyyy/mm or yyyy/mmm then I can help..
A DateTime value doesn't know about a format - it's just a date and a time. You can create a new DateTime value with the relevant information:
DateTime expiry = new DateTime(Convert.ToInt32(ddExpYear),
Convert.ToInt32(ddExpMonth),
1);
... but how that is "saved" is entirely up to you. If you give us more information, we may be able to help you more. You can format it to a string easily enough:
string formatted = expiry.ToString("yyyy/MM");
... but that may not be what you're after.
Ranjeet Patel
19-Jun-14 4:48am
View
Hi you do not have date in your string.. so It might give some issue. otherwise you can use convert.ToDateTime("04/05/2014");
Ranjeet Patel
10-Jun-14 3:52am
View
Hi Thanks for reply...! I found out the problem, Image path was correct.. The solution I am adding here
Ranjeet Patel
9-Jun-14 7:52am
View
Hi Nandhini.. you open your visual studio in 2 window. in one you open service and make press F5 in this way it will work. and in other window open your code which will use your service(where you want to add the service reference) then add in the same way as you tried earlier.
Ranjeet Patel
30-May-14 3:32am
View
it seems you are running in local host. If yes do one check, Just copy the URL of the service in other browser and check whether the service is in running mode.
The thing is when you add the service it should be in running mode always.
Ranjeet Patel
29-May-14 10:59am
View
I want to use windows authentication. no anonymous use should use my application..! so I thought of converting it into intranet application so that no one outside my company can use it.
If my question is not clear then please let me know.
Ranjeet Patel
29-May-14 10:41am
View
Its difficult to say. because did not post the code Html. But I can tell that the full page may be posted back. If you are posting back a small part of your page then put the radio buttons outside the post back section of code.
Ranjeet Patel
29-May-14 7:04am
View
See If it is running locally at that time your Service should be in running mode. I meant to say that you should run through your visual studio in other instance and your client should use it.
Ranjeet Patel
29-May-14 6:57am
View
It should be a desktop or windows phone application? I am a bit confused..?
Ranjeet Patel
29-May-14 6:40am
View
If you will put your jQuery and HTML code then It would be easy to give answers
Ranjeet Patel
15-May-14 2:48am
View
Yes it worked but the demand is the session should not time out ever...
The error log only shows the message as time out.
Show More