Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:612296
More Search Options
RSS Available
Matching Posts
Re: how to get the value of individual element by XPathNodeIterator
How about using the following instead: strExpression = "/NewDataSet/Table1[VdkVgwKey='" + key_ + "']/Title ";
Posted to
XML and XmlDataSource Control
(Forum)
by
JasonFollas
on 8/16/2006
Re: Maintaining a single connection to the database. Is it necessary?
A Connection object in .NET code does not become an actual database connection until the moment that you execute Connection.Open(). At that time, ADO.NET will look in its pool of real connections (behind the scenes) to see if there are any that exist but are not in use. If so, it will utilize the lingering connection. Otherwise, it will try to create a new connection to the database. When you do a Connection.Close(), ADO.NET will release the lock on the connection in its pool, but will keep the real
Posted to
Visual Studio 2005
(Forum)
by
JasonFollas
on 8/15/2006
Re: Compilation Error Generating XML from Database
To me, it still sounds like the page is trying to process the script as VB.NET and not C#. Do you have a @Page directive at the top of the ASPX file? That lets you specify a language. For example, something like: <% @ Page Language ="C#" AutoEventWireup ="true" CodeFile ="Default.aspx.cs" Inherits ="_Default" %>
Posted to
XML and XmlDataSource Control
(Forum)
by
JasonFollas
on 8/15/2006
Re: format number as a percent without rounding?
One solution (with 'd' being the number 0.99998) string .Format( "{0:P2}" , Math .Truncate(d*10000) / 10000)
Posted to
Web Forms
(Forum)
by
JasonFollas
on 8/15/2006
Re: Compilation Error Generating XML from Database
Language mismatch? Your "sub" declaration is in VB.NET, but all of the code is C#. sub Page_Load(Sender As Object, E As EventArgs)
Posted to
XML and XmlDataSource Control
(Forum)
by
JasonFollas
on 8/15/2006
Re: MS SQL Basics: Insert into multiple tables at once.
Is Schedule supposed to represent timeslots for when Courses can take place (so that a Course has a Schedule)? Or is Schedule a collection of Courses (so that a Schedule has a Course)? Either way, I would think that you need to insert a Foreign Key into the child table that contains the Primary Key value from the parent table. For instance, let's assume that you intend for Course for have a Schedule: Schedule ================================ ScheduleID uniqueidentifier (PK) Time datetime Course
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
JasonFollas
on 8/15/2006
Re: DateDiff question
DateTime d1 = DateTime.Parse( "10/9/06 12:22:23" ); DateTime d2 = DateTime.Parse( "10/09/05 11:22:11" ); TimeSpan ts = (d2 - d1).Duration(); // Absolute value of timespan string duration = string .Format( "{0} hours, {1} minutes, {2} seconds" , ts.Hours, ts.Minutes, ts.Seconds); if (ts.Days != 0) duration = ts.Days.ToString() + " days, " + duration; Console.WriteLine(duration);
Posted to
Getting Started
(Forum)
by
JasonFollas
on 8/14/2006
Re: Multiple attribute value
If the first @pk attribute value is indeed an empty string, as you show in your sample XML, then it would make sense that your xmn30[0].InnerText would not put anything into the textbox (because it's only showing the value of your NodeList element #0, which would be an empty string). Have you tried with xmn30[1].InnerText (or, as I would prefer for attributes, xmn30[1].Value )?
Posted to
XML and XmlDataSource Control
(Forum)
by
JasonFollas
on 8/14/2006
Re: How to Use integers in XML Declaration
Your "Industry" field did not have a @maxlength attribute, so an empty string would have been inserted into the "asp:TextBox" control. You'll need to conditionally insert the attribute depending on whether it exists in your XML or not, sort of like the following: < xsl:if test= "@type='text'" > < asp:TextBox id= "{@name}" runat= "server" > < xsl:if test= "@maxlength" > < xsl:attribute name= "maxlength" > < xsl:value-of select= "@maxlength" /> </ xsl:attribute >
Posted to
XML and XmlDataSource Control
(Forum)
by
JasonFollas
on 8/14/2006
Re: XML + Namespace + Datalist !Good
Your problem inspired me to look for a XPath-only solution and blog about it: http://jasonf-blog.blogspot.com/2006/08/xmldatasource-xpath-workaround-for.html
Posted to
XML and XmlDataSource Control
(Forum)
by
JasonFollas
on 8/11/2006
Page 1 of 17 (169 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online