Click here to Skip to main content
15,887,683 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How do I assign Session value to label in Asp.net? Pin
F-ES Sitecore23-Apr-15 22:37
professionalF-ES Sitecore23-Apr-15 22:37 
QuestionUse of LastOrDefault() Pin
Member 1096876723-Apr-15 0:16
Member 1096876723-Apr-15 0:16 
AnswerRe: Use of LastOrDefault() Pin
Richard Deeming23-Apr-15 2:05
mveRichard Deeming23-Apr-15 2:05 
QuestionHow to encrypt message in WCF by writing code Pin
Tridip Bhattacharjee22-Apr-15 22:05
professionalTridip Bhattacharjee22-Apr-15 22:05 
AnswerRe: How to encrypt message in WCF by writing code Pin
Richard MacCutchan22-Apr-15 23:28
mveRichard MacCutchan22-Apr-15 23:28 
AnswerRe: How to encrypt message in WCF by writing code Pin
Gerry Schmitz24-Apr-15 16:08
mveGerry Schmitz24-Apr-15 16:08 
QuestionMultiple page redirection in ASP.NET WebApi Pin
Abdul Shakoor p22-Apr-15 20:34
Abdul Shakoor p22-Apr-15 20:34 
Questiondefault gridview listing not showing on page Pin
spirospap22-Apr-15 14:30
spirospap22-Apr-15 14:30 
I have the following:

<asp:linkbutton id="LinkButton1" runat="server" onclick="LinkButton1_Click">Find Project :
<asp:textbox id="FindProject" runat="server" text="" cssclass="submit">
<asp:SqlDataSource ID="MySqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:MyConnectionString %>" 

SelectCommand="SELECT * from myTable
       WHERE Active= 'True'
       AND myTable.Project = COALESCE(NULLIF(@FindProject, ''), myTable.Project)">
    &lt;SelectParameters>
    <asp:ControlParameter ControlID="FindProject" Name="FindProject"
        PropertyName="Text" />
    &lt;/SelectParameters>

<asp:gridview id="GridView1" runat="server" datasourceid="MySqlDataSource1" ...="">
...


The SQL is simple and works ok with all of the values below in SSMS:

--declare @FindProject varchar(20) = 'A_Project'
--declare @FindProject varchar(20) = NULL
declare @FindProject varchar(20) = ''

select * from MyTable
WHERE Active = 'True'
AND MyTable.Project = COALESCE(NULLIF(@FindProject, ''), MyTable.Project )

Currently I can find an individual record with the linkbutton and FindProject textbox, it works ok

I want the page to show all records when the page is initially loaded, which it doesn't, it's just an empty list.
AnswerRe: default gridview listing not showing on page Pin
Richard Deeming23-Apr-15 2:00
mveRichard Deeming23-Apr-15 2:00 
GeneralRe: default gridview listing not showing on page Pin
spirospap23-Apr-15 12:34
spirospap23-Apr-15 12:34 
Questionasp.net, c# Pin
Member 1124536521-Apr-15 16:28
Member 1124536521-Apr-15 16:28 
QuestionASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 7:48
indian14320-Apr-15 7:48 
AnswerRe: ASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 10:20
indian14320-Apr-15 10:20 
Questionquestion Pin
yousfi amina19-Apr-15 0:20
yousfi amina19-Apr-15 0:20 
AnswerRe: question Pin
Richard Andrew x6419-Apr-15 13:00
professionalRichard Andrew x6419-Apr-15 13:00 
QuestionHow to write to fileOutputStream mapped to physical file c# Pin
Tridip Bhattacharjee17-Apr-15 10:04
professionalTridip Bhattacharjee17-Apr-15 10:04 
QuestionRe: How to write to fileOutputStream mapped to physical file c# Pin
jkirkerx17-Apr-15 13:04
professionaljkirkerx17-Apr-15 13:04 
AnswerRe: How to write to fileOutputStream mapped to physical file c# Pin
Tridip Bhattacharjee18-Apr-15 7:48
professionalTridip Bhattacharjee18-Apr-15 7:48 
AnswerRe: How to write to fileOutputStream mapped to physical file c# Pin
jkirkerx19-Apr-15 12:09
professionaljkirkerx19-Apr-15 12:09 
QuestionMake image appear after div, and next dive appear after image Pin
indian14316-Apr-15 9:29
indian14316-Apr-15 9:29 
AnswerRe: Make image appear after div, and next dive appear after image Pin
jkirkerx16-Apr-15 13:24
professionaljkirkerx16-Apr-15 13:24 
QuestionBulk insert using table value parameter hangs my application Pin
Malikdanish15-Apr-15 21:04
professionalMalikdanish15-Apr-15 21:04 
AnswerRe: Bulk insert using table value parameter hangs my application Pin
jkirkerx16-Apr-15 8:58
professionaljkirkerx16-Apr-15 8:58 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
Malikdanish16-Apr-15 9:04
professionalMalikdanish16-Apr-15 9:04 
GeneralRe: Bulk insert using table value parameter hangs my application Pin
jkirkerx16-Apr-15 10:41
professionaljkirkerx16-Apr-15 10:41 

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.