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:677896
More Search Options
RSS Available
Matching Posts
trim string
Hi I'm trying to do : upName = upName.Trim() in the code below but it doesn't appear to be doing anything. any ideas? If (fileupload1.HasFile) Then lblError.Text = "" 'Check to make sure the file to upload has a picture file format extention If (CheckFileType(fileupload1.FileName)) Then Dim newWidth As Integer = bmpW Dim newHeight As Integer = bmpH 'Use the uploaded filename without the '.' extension Dim upName As String = Mid(fileupload1.FileName, 1, (InStr(fileupload1
Posted to
Getting Started
(Forum)
by
ajw
on 11/2/2009
selecting different sql command based on db entry
the reader is from another datareader earlier in code.The sql command is being changed successfully but i'm getting an error of (see under code): My code: If reader("ParentPageID") Is Nothing Then SqlDataSource2.SelectCommand = "SELECT PageID, PageName, ParentPageID, PageOrder FROM(Pages) WHERE (ParentPageID = @PageID) ORDER BY PageOrder" Else SqlDataSource2.SelectCommand = "SELECT PageID, PageName, ParentPageID, PageOrder FROM(Pages) WHERE (ParentPageID = @ParentPageID
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
ajw
on 11/1/2009
gridview different row colours depending on db value
Hi, I want to highlight rows in a gridview depending on a db entry. If ParentPageID = 1 then colour the row in blue for example Thanks Andy
Posted to
Data Presentation Controls
(Forum)
by
ajw
on 11/1/2009
Re: gridview different row colours depending on db value
Yeah there are some really cool color names too- like 'goldenrod'... One of bill's own. http://www.opinionatedgeek.com/DotNet/Tools/Colors/default.aspx Protected Sub parentPagesGridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then 'determine the value of the UnitsInStock field If (DataBinder.Eval(e.Row.DataItem, _ "ParentPageID").ToString
Posted to
Data Presentation Controls
(Forum)
by
ajw
on 11/1/2009
declarative dropdownlist binding with conditions
Hi, I want to put a condition of 'if not null' on this: http://www.opinionatedgeek.com/DotNet/Tools/Colors/default.aspx Parent Page:<br /> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2" DataTextField="PageName" DataValueField="PageID" Height="20px" Width="300px" Text='<%# Bind("ParentPageID") %>'> </asp:DropDownList> Is that possible? Thanks Andy
Posted to
Web Forms
(Forum)
by
ajw
on 11/1/2009
Re: selecting different sql command based on db entry
(Pages) shouldn't have been in brackets.
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
ajw
on 11/1/2009
exporting stored procs to remote server using sql server management studio 08
Hi, I want to export stored procs to remote server. I'm using sqlserver management studio 08 .Can anyone point me to some good articles on this or shed some light. Thanks Andy
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
ajw
on 10/31/2009
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
Hi folks, I know this is going to be pretty basic. I'm uploading my site onto the client's remote server and getting: Where could this problem be coming from? Thanks Andy.# I've removed the user and password ;) connection string: <add name="hallam-cmsConnectionString" connectionString="Data Source=localhost;database=****;Integrated Security=True;uid=****;password=****;Pooling=False" providerName="System.Data.SqlClient"/> Server Error in '/'
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
ajw
on 10/31/2009
limited characters displayed
hi I've got a repeater as below. I want to limit the length of Page Content so it only shows an excerpt. Would I do that here or in the SQL command? Thanks Andy <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <p> <asp:LinkButton ID="LinkButton3" runat="server" PostBackUrl='<%# String.Format("~/Admin/page.aspx?PageID={0}", Eval("PageID")) %>' Text='<
Posted to
Data Presentation Controls
(Forum)
by
ajw
on 10/31/2009
Re: Object reference not set to an instance of an object.
that actually worked, you're a genius Thanks Andy
Posted to
Getting Started
(Forum)
by
ajw
on 10/31/2009
Page 1 of 53 (523 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Fishbowl for Facebook
WindowsClient:
Free Embeddable Fonts for your WPF Applications
ASP.NET:
Program Manager Position on the ASP.NET PM team
Channel 10:
Microsoft Teams Up with Nielsen
Channel 10:
What Azure Looks Like
ASP.NET:
Orchard team looking for a new developer
Channel 10:
Student Discount on Office 2008 for Mac Now Available
WindowsClient:
Surface SDK 1.0 SP1 supports XNA Game Studio 3.0 and later
WindowsClient:
TestAPI 0.4 Released
Channel 9:
Using the SharePoint Business Data Connectivity Designer in VS 2010
Channel 9:
10-4 Episode 36: Windows Server AppFabric and Workflow Services Lab
WindowsClient:
New WPF Features: DatePicker\Calendar\VSM\Datagrid
Channel 9:
Corrinne Yu: Principal Engine Architect, Halo Team Microsoft
TechNet Edge:
IT Pro Momentum y Evidencias
Channel 10:
Xbox Goes Social with Facebook, Twitter, and Zune Integration
ASP.NET:
Enabling the ASP.NET Ajax script loader for your own scripts
ASP.NET:
Building High Performance Web Applications
WindowsClient:
RIA Services: A DomainService IS A WCF Service – Add Service Reference
Silverlight:
LIDNUG: Online chat with me Monday Nov 23rd
ASP.NET:
Recent Podcasts
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online