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:876405
More Search Options
RSS Available
Matching Posts
Select Query + order By + union
Hi, I am having a query like this select UserId , LoginName + '(' + Name + ')' as LoginName from dbo . UserProfile where UserId not in( 1 ) and Status = 'ACTIVE' union select UserId , LoginName + '(' + Name + ')' + '(Inactive)' as LoginName from dbo . UserProfile where UserId not in( 1 ) and status = 'INACTIVE' I need to oderby the result based on LoginName. Wut shud I do??
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
chanakya01
on 7/6/2009
Filed under: Union, SELECT query, Order By
Re: Select Query from another Query
Select from (select UserId , LoginName + '(' + Name + ')' as LoginName from dbo . UserProfile where UserId not in( 1 ) and Status = 'ACTIVE' union s elect UserId , LoginName + '(' + Name + ')' + '(Inactive)' as LoginName from dbo . UserProfile where UserId not in( 1 ) and status = 'INACTIVE' ) order by LoginName
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
chanakya01
on 7/6/2009
Re: Checkbox and Checkbox list values
Replace your CheckBoxList code in aspx code as... <asp:CheckBoxList id= "cbProofreading_Editing" TextAlign= "Right" OnSelectedIndexChanged= "Check" runat= "server" > <asp:ListItem Value="True">Yes</asp:ListItem> <asp:ListItem Value="False">No</asp:ListItem> </asp:CheckBoxList>
Posted to
Web Forms
(Forum)
by
chanakya01
on 7/2/2009
Re: How to only allow certain rows of gridview to have Delete..
Replace your gridview code in aspx as below. This will do. <asp:GridView ID= "gvInvolves" runat= "server" AllowSorting= "True" AutoGenerateColumns= "False" DataKeyNames= "InvolvesID" Width= "750px" OnRowDataBound="gvInvolves_RowDataBound" >
Posted to
Getting Started
(Forum)
by
chanakya01
on 7/2/2009
Re: session id issue
In which part of your application you are facing this problem?? Where you are storing the session and retrieving back?? And where you are displaying the details based on the session value?? Give some code sample so that I can get a clear idea...
Posted to
State Management
(Forum)
by
chanakya01
on 7/2/2009
Re: How to structure this query?
Select ItemName from Items where Date in ( Select MAX ( Date ) from Items group by ItemName ) This will solve your need. Try this.
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
chanakya01
on 7/2/2009
Re: Checkbox and Checkbox list values
If it's a bit datatype then u can store only 0 or 1.. If you want to store as true or false then you can store as string in nvarchar datatype.. Note that the value store dwill be a string not a bool because there is no datatype like bool in SQl as in C#
Posted to
Web Forms
(Forum)
by
chanakya01
on 7/2/2009
Re: how can I check if number field is empty ?
check if(book.price==0) { //Code for steps to be done if there is no value in book.price } Because Null is only for string datatype and for int,decimal etc its 0.
Posted to
ASP.NET MVC
(Forum)
by
chanakya01
on 7/2/2009
Re: Assigning validation group to autogenerated buttons
In your code behind page give btnName.ValidationGroup="ValidationGroupName";
Posted to
Web Forms
(Forum)
by
chanakya01
on 7/2/2009
Re: how can I check if number field is empty ?
Where you have declared book.price?? Have you changed its value anywhere?? Try initializing it to 0.
Posted to
ASP.NET MVC
(Forum)
by
chanakya01
on 7/2/2009
Page 1 of 7 (65 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online