Click here to Skip to main content
15,888,113 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Close window? Pin
SeMartens14-Apr-09 22:58
SeMartens14-Apr-09 22:58 
Questionz-index Problem Pin
Niungareamit14-Apr-09 21:45
Niungareamit14-Apr-09 21:45 
Questiongridview validation not working within upadate panel Pin
Abhishek Rana14-Apr-09 21:37
Abhishek Rana14-Apr-09 21:37 
QuestionAbout the multiple instances of same form Pin
Abhishek Rana14-Apr-09 21:31
Abhishek Rana14-Apr-09 21:31 
AnswerRe: About the multiple instances of same form Pin
Christian Graus14-Apr-09 22:13
protectorChristian Graus14-Apr-09 22:13 
GeneralRe: About the multiple instances of same form Pin
Abhishek Rana14-Apr-09 22:22
Abhishek Rana14-Apr-09 22:22 
GeneralRe: About the multiple instances of same form Pin
binarymax15-Apr-09 4:52
binarymax15-Apr-09 4:52 
Questionhow to change the filter expresion at runtime ? Pin
md_azy14-Apr-09 20:32
md_azy14-Apr-09 20:32 
Hi,

<asp:SqlDataSource ID="grid_source" runat="server" ConnectionString="Data Source=db;Initial Catalog=faq;User ID=sa;Password=mercury"
ProviderName="System.Data.SqlClient"
SelectCommand="SELECT [c_empcode], [c_name], [c_designation], [c_department], [c_emailid], [c_reportingPerson], [c_passwd], [n_status] FROM [Employee_Mst] where n_deleted =0"
OnSelecting="grid_source_Selecting"

FilterExpression="c_name like '{0}%' and c_department like '{1}%' " >


<FilterParameters>
<asp:ControlParameter Name="c_name" ControlID="txtname" PropertyName="Text" />
<asp:ControlParameter Name="c_department" ControlID="txtdepart" PropertyName="Text" />
</FilterParameters>

</asp:SqlDataSource>

This is my sqldatasource in that i used filter expression for filtering data . if txtdepart textbox is empty means its
not filtering records according to what i entered in txtname texbox .if i am entering some datas in all two textbox's then its
showing filtered records . can anyone tell me the solution for this ?

also i need how to change the filter expresion at runtime according to these textboxes values .


Thanks in advance
AnswerRe: how to change the filter expresion at runtime ? Pin
Christian Graus14-Apr-09 21:05
protectorChristian Graus14-Apr-09 21:05 
Questionobject tag problem Pin
naveen attri14-Apr-09 20:23
naveen attri14-Apr-09 20:23 
AnswerRe: object tag problem Pin
Christian Graus14-Apr-09 21:08
protectorChristian Graus14-Apr-09 21:08 
GeneralRe: object tag problem Pin
naveen attri14-Apr-09 22:42
naveen attri14-Apr-09 22:42 
Questionsql problem Pin
ptvce14-Apr-09 19:25
ptvce14-Apr-09 19:25 
AnswerRe: sql problem Pin
Abhijit Jana14-Apr-09 19:35
professionalAbhijit Jana14-Apr-09 19:35 
AnswerRe: sql problem Pin
Vimalsoft(Pty) Ltd14-Apr-09 23:16
professionalVimalsoft(Pty) Ltd14-Apr-09 23:16 
GeneralRe: sql problem Pin
ptvce14-Apr-09 23:42
ptvce14-Apr-09 23:42 
GeneralRe: sql problem Pin
Vimalsoft(Pty) Ltd14-Apr-09 23:44
professionalVimalsoft(Pty) Ltd14-Apr-09 23:44 
GeneralRe: sql problem Pin
ptvce15-Apr-09 0:41
ptvce15-Apr-09 0:41 
GeneralRe: sql problem Pin
Vimalsoft(Pty) Ltd15-Apr-09 0:49
professionalVimalsoft(Pty) Ltd15-Apr-09 0:49 
GeneralRe: sql problem Pin
ptvce15-Apr-09 0:59
ptvce15-Apr-09 0:59 
GeneralRe: sql problem Pin
Vimalsoft(Pty) Ltd15-Apr-09 1:06
professionalVimalsoft(Pty) Ltd15-Apr-09 1:06 
GeneralRe: sql problem Pin
ptvce15-Apr-09 1:22
ptvce15-Apr-09 1:22 
GeneralRe: sql problem Pin
Vimalsoft(Pty) Ltd15-Apr-09 1:47
professionalVimalsoft(Pty) Ltd15-Apr-09 1:47 
QuestionShow Custom Event Pin
mehrdadc4814-Apr-09 19:20
mehrdadc4814-Apr-09 19:20 
QuestionHandle print event of ReportViewer Pin
mehrdadc4814-Apr-09 19:15
mehrdadc4814-Apr-09 19:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.