Click here to Skip to main content
15,892,697 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Log In Control with Ajax Pin
Not Active11-May-10 1:37
mentorNot Active11-May-10 1:37 
GeneralRe: Log In Control with Ajax Pin
kushMuchaal11-May-10 1:45
kushMuchaal11-May-10 1:45 
GeneralRe: Log In Control with Ajax Pin
Not Active11-May-10 2:28
mentorNot Active11-May-10 2:28 
AnswerRe: Log In Control with Ajax Pin
saini arun11-May-10 1:46
saini arun11-May-10 1:46 
GeneralRe: Log In Control with Ajax Pin
kushMuchaal11-May-10 1:49
kushMuchaal11-May-10 1:49 
GeneralRe: Log In Control with Ajax Pin
Not Active11-May-10 2:34
mentorNot Active11-May-10 2:34 
Questionhow to display an image from folder when there is no image in database Pin
developerit10-May-10 22:10
developerit10-May-10 22:10 
AnswerRe: how to display an image from folder when there is no image in database Pin
Dinesh Mani10-May-10 23:01
Dinesh Mani10-May-10 23:01 
My assumptions -
* Default image is also in the database
* BranchId is numeric
* Default image has the least possible BranchId say 0

Alter the query like so -

SELECT top 1 imgleft1 FROM tblImages WHERE BranchId in (@BranchId, @Default) order by BranchId desc


Add this line to the code

cmd.Parameters.AddWithValue("@Default", 0);


Now if the BranchId is available then that image would be displayed, else the default image would be displayed.

HTH!
QuestionHow to Hide A GridView Column in a Visual Web Developer project Pin
grafiksinc10-May-10 21:16
grafiksinc10-May-10 21:16 
AnswerRe: How to Hide A GridView Column in a Visual Web Developer project Pin
Pranay Rana10-May-10 23:04
professionalPranay Rana10-May-10 23:04 
GeneralRe: How to Hide A GridView Column in a Visual Web Developer project Pin
grafiksinc11-May-10 1:21
grafiksinc11-May-10 1:21 
AnswerRe: How to Hide A GridView Column in a Visual Web Developer project Pin
Dinesh Mani10-May-10 23:07
Dinesh Mani10-May-10 23:07 
GeneralRe: How to Hide A GridView Column in a Visual Web Developer project Pin
grafiksinc11-May-10 1:23
grafiksinc11-May-10 1:23 
AnswerRe: How to Hide A GridView Column in a Visual Web Developer project Pin
Dinesh Mani11-May-10 1:59
Dinesh Mani11-May-10 1:59 
AnswerRe: How to Hide A GridView Column in a Visual Web Developer project Pin
HimansuSekharPati12-May-10 2:40
HimansuSekharPati12-May-10 2:40 
AnswerRe: How to Hide A GridView Column in a Visual Web Developer project Pin
grafiksinc16-May-10 13:11
grafiksinc16-May-10 13:11 
Questionopen source Pin
mylogics10-May-10 21:00
professionalmylogics10-May-10 21:00 
AnswerRe: open source Pin
Michel Godfroid10-May-10 22:40
Michel Godfroid10-May-10 22:40 
QuestionPrint in report wizard Pin
4anusha410-May-10 19:34
4anusha410-May-10 19:34 
QuestionWebsite project type to Web application project type NO ONE-CLICK SOLUTION POSSIBLE [modified] Pin
fjparisIII10-May-10 18:12
fjparisIII10-May-10 18:12 
AnswerRe: Website project type to Web application project type Pin
Abhijit Jana10-May-10 18:33
professionalAbhijit Jana10-May-10 18:33 
GeneralRe: Website project type to Web application project type Pin
fjparisIII11-May-10 8:40
fjparisIII11-May-10 8:40 
GeneralRe: Website project type to Web application project type Pin
fjparisIII11-May-10 13:25
fjparisIII11-May-10 13:25 
Questioncan't find html text formatting for my CMS , how can i find it ???? Pin
Med7at10-May-10 16:32
Med7at10-May-10 16:32 
AnswerRe: can't find html text formatting for my CMS , how can i find it ???? Pin
Michel Godfroid10-May-10 22:59
Michel Godfroid10-May-10 22:59 

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.