.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

i need to know is 30 minite past or not

Posted By:      Posted Date: October 17, 2010    Points: 0   Category :ASP.Net
 

hi

i have 2 dateTime value

1st value is current datetime and  2nd value is some datetime

now i need to know is 30 minite past or not

can u help me?

thanks




View Complete Post


More Related Resource Links

Unit Testing SharePoint - Past, Present, and Sporm

  
As I described in SharePoint: The Wild West of Software Development there is a serious problem when you develop for SharePoint: ensuring quality through unit testing is really, really hard. And that's where a new open source tool just released today called sporm (SharePoint Object Relational Mapper) comes in. While sporm provides many benefits besides simplified unit testing I wanted to focus on this topic first, because sporm's approach, which models the entity framework in the way it supports POCO's, is a unique feature not available with other SharePoint tools like LINQ to SharePoint.

Gridview extends past edge of div and page when editing users

  

I have a gridview pulling all data from one user. This gridview has an edit button and when that is clicked the gridview becomes too wide for the div/screen and I get a scroll bar. Since this gridview can only have one user in it anyway is it possible to display each field on seperate lines instead?



Videos from My Past Presentations

  
Shawn Weisfeld has recorded several presentations that I've been fortunate enough to present at various times.  Shawn also stalks other active community speakers with that camera of his.  Check out the complete list on the INETA Champs live site at http://www.inetachamps.com/Live.  That's more than enough video content to fill a Saturday night or skip the Monday night football. Here is a list of my presentations at http://www.inetachamps.com/Live/Presentation/Speaker/26   Nuts and Bolts in XAML Part 1 - 7/6/2010http://www.inetachamps.com/Live/Presentation/ViewVideo/110 Nuts and Bolts in XAML Part 2 - 8/3/2010http://www.inetachamps.com/Live/Presentation/ViewVideo/122 Working with Data in Silverlight - 6/18/2010http://www.inetachamps.com/Live/Presentation/ViewVideo/106 Understanding Databinding with XAML in WPF and Silverlight - 3-2-2010http://www.inetachamps.com/Live/Presentation/ViewVideo/36http://www.inetachamps.com/Live/Presentation/ViewVideo/37http://www.inetachamps.com/Live/Presentation/ViewVideo/38

HttpWebRequest Form Authentication Not Getting Past Login Page

  
Hey Guys,I am trying to use HTTPWebRequest to login to a site and then retrieve the page after login. However, it seems as if I can't get past the login. I also investigated with Fiddler and tried mimicking Fiddler almost completely and still no luck.Any idea what I am doing wrong?Thanks,Mohammed    Dim webRequest As HttpWebRequest Dim responseReader As StreamReader Dim responseData As String Dim postData As String = "login=testexpert@yahoo.com&password=testexpert" Dim cookies As CookieContainer = New CookieContainer() Dim requestWriter As StreamWriter Try 'post form data to page strUrl = "https://www.ideeli.com/login" webRequest = HttpWebRequest.Create(strUrl) webRequest.Method = WebRequestMethods.Http.Post webRequest.ContentType = "application/x-www-form-urlencoded" webRequest.CookieContainer = cookies webRequest.ContentLength = postData.Length requestWriter = New StreamWriter(webRequest.GetRequestStream) requestWriter.Write(postData) requestWriter.Close() 'recieve cookie webRequest.GetResponse().Close() 'now we send the cookie webRequest = HttpWebRequest.Create("http://www.ideeli.com") webRequest.CookieContainer = cookies responseReader = New StreamReader(webRequest.GetResponse.GetResponseStream()) responseData = responseReader.ReadToEnd() res

lalith: Please help i am crying from past 1week : problem is: Report from 'DISCO Document' is 'Ro

  

The document at the url http://spd:16841/_vti_bin/UserGroup.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'http://spd:16841/_vti_bin/UserGroup.asmx' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.
- Report from 'DISCO Document' is 'Root element is missing.'.
- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.
- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.

 

one of biggest sad in my life is above error which i am not getting correct solution from microsoft.


Cannot get past max message sixe limit-- {"The remote server returned an unexpected response: (400)

  

Hi,

I keep getting a HTTP 400 exception whenver I try to send a large message.

My service contains a messageContract that consists of 3 int32s and 1 stream (Regular stream, not memorystream or any other derrivative of stream)

When I send a messageContract that has the 3 ints and 48837 bytes on the stream, the sending and recieving work. When I set it to 48838 bytes, however, I get the following error:

 System.ServiceModel.ProtocolException was caught
  Message=The remote server returned an unexpected response: (400) Bad Request.
  Source=mscorlib
  StackTrace:
    Server stack trace:
       at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   

Can't get past "turn customErrors mode=Off" page.

  
I'm getting the infamous runtime error page.  I do have customErrors mode set to Off.  What else can I try?

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <cus

Count the number of times a SP ran in the past?

  

I am trying to see how many times a set of 50 sp's ran on my prod server. The idea is to remove the ones not being used anymore and clean the unused sps. My environment is Sql Server 2005 sp3

I did a basic search online and found out that sys.dm_exec_query_stats does a good job in giving the cout but only if the cache has not been flushed out. How do i know when was the last time the cache was flushed out in my sql server? Also what do they mean by cache being flushed out?

Is there a better way to capture all my sp execution counts on SQL Server 2005 other than running a server side trace?


Total sales past 12 months

  

Hi

I want to do something as simple as Adding the previous 12 months sales to a row.

My tablix report is suppose to look something like this:

Year Filter: 2010

Months:           Months Sales           Sales Past 12 months
Jan                    12345                        67890
Feb                    23456                        78901
Mar                    34567                        89012
And so on

So ... in the third column, Sales Past 12 months, say for Mar 2010, the Sum should be something like:
Sales Mar 2010 + Sales Feb 2010 + Sales Jan 2010 + ... + Sales Apr 2009 = 89

SQL agent jobs(inside guests) are struck with their past readings

  

Under HyperV - turning off host with guests running, they are saved with no dataloss. However on restarting the HOST, SQL agent jobs(inside guests) are struck with their past readings as seen in JobActivity Monitor and none of the jobs are running automatically unless you; (a) delete and recreate the schedule. (b) manually run the jobs at once. (c) restart the agent service. [So] Is there some thing available for a fix on this. (tested on SQL 9 SP3 & 10). Guest machines are going for SavedState but there should be something in SQL Server to update the detail (timings) for job execution.


yup

SQL agent jobs(inside guests) are struck with their past readings

  
Under HyperV - turning off host with guests running, they are saved with no dataloss. However on restarting the HOST, SQL agent jobs(inside guests) are struck with their past readings as seen in JobActivity Monitor and none of the jobs are running automatically unless you; (a) delete and recreate the schedule. (b) manually run the jobs at once. (c) restart the agent service. [So] Is there some thing available for a fix on this. (tested on SQL 9 SP3 & 10)
yup

IE problem with copy past from Excel to IE

  

Hello, guys

Im having a problem with ie only, firefox , chrome and opera work fine if i copy some values from a column an excel an past to a textbox,

but at IE is pasting just first value .....


Disable past date, showing URL in gridview and validate generated number

  

Hi,

I've got 3 problems and I can't find the solution so that's why I'm here.
1. I've got a calander for adding a product to my shop. How can I make sure that you can't select a date in the past?
2. I have a gridview, and I have added a hyperlinkfield in access. When I'm filling up my gridview it doesn't show a link, it shows this:
example= www.Groezrock.be#http://www.Groezrock.be#
3. I've added a label and a textbox on my guestbook page. It says "Please fill in the number in the textbox -label that generates 4 random number- txtbox.
For filling up the textbox I use this code:


        Dim randObj As New Random
        lblVraag.Text = (randObj.Next(1001, 10000).ToString)

The problem is, when I fill in the number, it always gives me the validation error "Numbers don't match" which I added myself.

        If txtnumbers.Text = lblnumbers.Text Then
            ...
        Else
            lblFout.Text = "Numbers don't match."

End If


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend