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


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Passing SqlServer2008 time datatype using DataNavigateURLFormatString

Posted By: Linda     Posted Date: January 26, 2011    Points:2   Category :ASP.Net
I am passing several variables using a gridview and an objectdatasource. All of the fields are working correctly with the exception of the time datatype. I also have dates and had to use {0:d} (changing the zero to the number of the field containing the date). I tried using {0:t} but this does not work.
Please help me!

Here is an example of what IS working:

<asp:HyperLinkField DataNavigateUrlFields="WPSer,EmpID,EmpFirstName,EmpLastName,ReqDate,ReqReason,EmpDigSign,EmpDate,SupvFirstName,SupvLastName"
DataNavigateUrlFormatString="~/DisplayForSignature.aspx?WPS={0}&amp;EID={1}&amp;EFN={2}&amp;ELN={3}&amp;RD={4:d}&amp;RR={5}&amp;EDS={6}&amp;ED={7:d}&amp;SFN={8}&amp;SLN={9}"
DataTextField="WPSer" NavigateUrl="~/DisplayForSignature.aspx" />


Thank you in advance for any help you can provide!
Linda

Responses

No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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