15,888,610 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 dorababu407 (Top 45 by date)
dorababu407
18-Mar-15 9:23am
View
@Kornfeld Eliyahu Peter,thank you .
dorababu407
18-Mar-15 9:09am
View
yes it is Legal paper in US, what Document Size need to be taken for this legal paper in Code ?
dorababu407
23-Jan-15 8:59am
View
ok
dorababu407
23-Jan-15 8:56am
View
@RyanDev: thank you, i used SaveFileDialog it works for me
dorababu407
23-Jan-15 8:39am
View
File.Copy can only copy from source to destination file. it cannot download .
i want to open a Dialog to save file in user defined location.
dorababu407
3-Jan-15 0:33am
View
@Raul lloc : Thank you , i implemented your suggestion , SQL lite with Wcf .
dorababu407
31-Dec-14 4:16am
View
My application should scan tickets without internet it's a client requirement. so i need to get online data to local database.
dorababu407
30-Dec-14 11:42am
View
i used array objects only, but not as output parameter
dorababu407
30-Dec-14 11:13am
View
i tried previously by passing multiple images as array of objects but not as output parameter. i tried this solution before i posted question here but not succeed.
dorababu407
6-Nov-14 0:04am
View
I think i have left that issue. i had done my work on my backup code.
please check this link it may be helpful.
http://forums.asp.net/t/1133305.aspx?FatalExecutionEngineError+was+detected
dorababu407
11-Sep-14 9:45am
View
below solution works for me except in firefox.
http://www.codeproject.com/Tips/154801/How-to-end-user-session-when-browser-closed
dorababu407
10-Sep-14 3:00am
View
yes , i thought the same , it is for checking closing the browser using X button.
but it is not working , i checked in chrome, firefox and IE10,11.
dorababu407
9-Sep-14 13:37pm
View
i put window.onbeforeunload in one of my view page, when i click other page it is logging out.
i need to call ajax post method on browser close only , not by clicking other links.
dorababu407
9-Sep-14 13:34pm
View
one issue.
i used your code without if condition [if (window.event.clientX < 0||window.event.clientY < 0)], works fine. by adding if condition not working, condition is not satisfying. what is that
window.event.clientX ,window.event.clientX
dorababu407
9-Sep-14 8:05am
View
Thank you. works fine
dorababu407
26-Aug-14 3:42am
View
Lazy Load is delays loading of images in long web pages. my application home page is not long. but it has slider images taking time to load.
https://www.bumpdocs.com/
dorababu407
25-Aug-14 13:26pm
View
IS there anything to add in config file ?
can u provide complete code snipppt
dorababu407
11-Aug-14 8:48am
View
i am observing these method executes continuously
SignalR: Attempting to connect to 'http://www.test.com/signalr/poll?transport=longPolling&connectionToken=v…22name%22%3A%22chat%22%7D%5D&messageId=B%2C0%7CC%2C0%7CD%2C0%7CE%2C0&tid=5' using longPolling
dorababu407
27-Mar-14 2:52am
View
i did it , but same error occurs
dorababu407
21-Jan-14 8:17am
View
hi Griff,
i changed my code using filter, this time i applied Gzip compression through Coding by adding CompressFilter.cs class in App_start folder and then i add [CompressFilter] in Controllers.
First time i did Gzip compression using Web.config by adding Gzip.dll in <system.weserver> tag,
But it did't worked.
dorababu407
21-Jan-14 7:43am
View
Deleted
hi Christian,
i just apply Gzip compression through coding(using MVC4), by adding CompressFilter.cs class in App_start folder by following this link.
http://stackoverflow.com/questions/17040788/gzip-compression-from-code
Gzip Compression is working fine in LocalHost, after online uploaded the code its not working in shared hosting.
Is there anything need to change in web.config file in online ?
plz help me
dorababu407
21-Jan-14 4:55am
View
Deleted
both the applications are done shared hosting
dorababu407
21-Jan-14 2:56am
View
hi,
i applied Gzip Compression in my web.config file in Shared hosting, but it is not working(Gzip compression is not enable). i did same for my another site web.config(it is also shared hosting) but it is working fine.
i don't know what the difference between them. i used Visual Studio 2010 mvc4 for first one, Visual studio 2012 for second one, is that cause any difference?
plz help me
dorababu407
17-Jan-14 7:30am
View
thanks for rply.
i just follow the link and change my global.asax page, Is that enough to decrease the page load time, i does'nt see time difference page loading
dorababu407
24-Dec-13 8:12am
View
i just see about SignalR Concept, i think it is not useful for me, becoz it sends all Admin post to all customers. i just want face to face chat( Admin - Customer) chat. chat conversation of one customer will not be see by other customers.Registered customers only allowed to chat.
dorababu407
7-Dec-13 4:09am
View
yes, its working fine now.
you are not slow and you are good in managing time by answering questions and doing your work.
Thank you..
can i have your EmailId ?
dorababu407
7-Dec-13 2:09am
View
Thank you, for spending lot of time for my questions . its really helpful.
Do u have any blog? if there please give me URL
dorababu407
6-Dec-13 13:15pm
View
Here is the link for Results of my query
https://www.dropbox.com/s/zibpn3ptq0keaws/ZipCodes.txt
i think query calculating distance not exactly from given ZipCode,
that's why it showing distance very large values
please check it once
dorababu407
6-Dec-13 13:08pm
View
ya, i tried it but it shows the same error:
Invalid column name 'distance' .
why the distances is showing above 600 km from a given every Zipcode?
dorababu407
6-Dec-13 12:57pm
View
Deleted
here is the link for my database table script:
https://www.dropbox.com/s/3bnle4pyj0lnaub/ZIP.sql
dorababu407
6-Dec-13 12:56pm
View
just for know forgot about WHERE and HAVING.
i just removed the distance comparasion in the query.
Now iam getting results all Zipcodes and distances from the ZipCode i given.
whatever the Zip Code i am giving it shows distnace in above 500 km.
here is the query:
SELECT zipcode, ( 3959 * acos( cos( radians(94595) ) * cos( radians(latitude ) ) * cos( radians(longitude)
- radians(94595) ) + sin( radians(94595) ) * sin( radians(latitude ) ) ) ) AS distance
FROM dbo.ZIP
here i gave Zipcode as 94595, in the results it showing distance 11355 km for the behind zipcode 94596.
dorababu407
6-Dec-13 12:42pm
View
Deleted
here is the link for my database table script:
https://www.dropbox.com/s/3bnle4pyj0lnaub/ZIP.sql
dorababu407
6-Dec-13 12:39pm
View
Sql Server 2008R2
dorababu407
6-Dec-13 12:30pm
View
if having clause is used, it shows error:
Invalid column name 'distance'
here is the same query with having clause
SELECT zipcode, ( 3959 * acos( cos( radians(94595) ) * cos( radians(latitude ) ) * cos( radians(longitude)
- radians(94595) ) + sin( radians(94595) ) * sin( radians(latitude ) ) ) ) AS distance
FROM dbo.ZIP HAVING distance < 25 ORDER BY distance ASC
dorababu407
6-Dec-13 12:25pm
View
Deleted
please help me to know the problem.. i am searching for this last two days.
dorababu407
6-Dec-13 12:17pm
View
same query i write it again becoz of HAVING clause is not worked for
distance comparision(HAVING distance < 25).
here is the query
SELECT zipcode, ( 3959 * acos( cos( radians(94595) ) * cos( radians(latitude ) ) * cos( radians(longitude)
- radians(94595) ) + sin( radians(94595) ) * sin( radians(latitude ) ) ) ) AS distance
FROM dbo.ZIP
dorababu407
6-Dec-13 12:08pm
View
i just changed the type latitude/longitude to decimal(9,6). i got result for your command, but i think it was not accurate, because it showing distance above 600 miles.
here is the cmd
SELECT zipcode, ( 3959 * acos( cos( radians(94595) ) * cos( radians(latitude ) ) * cos( radians(longitude)
- radians(94595) ) + sin( radians(94595) ) * sin( radians(latitude ) ) ) ) AS distance
FROM dbo.ZIP where (( 3959 * acos( cos( radians(94595) ) * cos( radians(latitude ) ) * cos( radians(longitude )
- radians(94595) ) + sin( radians(94595) ) * sin( radians(latitude ) ) ) ) < 7500) ORDER BY distance ASC
dorababu407
6-Dec-13 11:52am
View
what is 3959 in the query?
dorababu407
6-Dec-13 9:37am
View
our values for latitude and longitudes are in vachar type, can you please suggest me how to convert them from varchar to geography or how to query the varchar type values with the above query. we are not even able to run the sql query. it is giving invalid columns as my datatype are in varchar type. please let me know a solution to the problem. Thanks
dorababu407
6-Dec-13 6:29am
View
how can we write command for convert given radius to latitude and longitude .
my input is ZipCode and Radius(km) only.
in my database table has four fields, 1)ZIPCode 2)latitude 3) longitude 4)StateAbbreviation
how can i write code for this ? plz help me
dorababu407
24-Oct-13 6:45am
View
i check my code using break point, i think here problem is progress bar is unable to show UI status when data downloading from SQL to XML. after data downloaded i write some code to excute(to kill sometime) at that time progress bar occurs shows.
dorababu407
23-Oct-13 13:54pm
View
hi phil.o,
thnks for rply.
here in BeginInvoke method i was unable to assign value to progressbar.
it was showing Error " Cannot convert Lambda expression to 'System.delegate' becoz it is non=delegate type"
dorababu407
7-Oct-13 13:05pm
View
hi Tejas Vaishnav ,thanks for rply.
i got solution after refer this link
http://stackoverflow.com/questions/7740693/big-issue-in-converting-string-to-datetime-using-linq-to-entities.
Convert.ToDateTime does,t works. i just done Date comparision in foreach loop after getting data from database using link query.
here is my code
public ActionResult UserCommonPage()
{
DateTime PresentDate = DateTime.Now.Date;
DateTime EndDate;
IEnumerable<usercommonpagemodel> Data = (from e in _repository.EventInfo
where e.WasEventLive == true
select new UserCommonPageModel
{
EndDate = e.EndDate,
EventEndDate = e.EndDate,
EventInfoId = e.EventInfoID,
EventTitle = e.EventTitle,
VenueName = e.VenueName,
EventLogoURL = e.EventLogo,
EventDescription = e.EventDescription,
EventStartDate = e.StartDate,
}).ToList();
List<usercommonpagemodel> obj = new List<usercommonpagemodel>();
int Count = Data.Count();
foreach (var item in Data)
{
EndDate = Convert.ToDateTime(item.EndDate);
if (EndDate.Date >= PresentDate.Date)
{
obj.Add(item);
}
}
return View(obj);
}
dorababu407
5-Oct-13 4:39am
View
hi Tejas Vaishnav,
thanks for rply, here is my code.
iam trying to get records only EndDate is greater than PresentDate using Linq Query in MVC4.
DateTime PresentDate = DateTime.Now.Date;
var EventDetails = (from e in _repository.EventInfo
where e.WasEventLive == true && e.EndDate < PresentDate
select new UserCommonPageModel
{
EventInfoId = e.EventInfoID,
EventTitle = e.EventTitle,
EventEndDate = e.EndDate
}).ToList();
return View(EventDetails);
dorababu407
19-Jun-13 11:03am
View
hi saguptamca, thks for rply
i checked the values are correct, data binding is fine, but filter of my last column(IsTicketValidated) not working after grid rebinding.
Show More