Thursday, November 9, 2023

collapse show bootstrap 5

 https://www.w3schools.com/bootstrap5/bootstrap_collapse.php


https://getbootstrap.com/docs/5.0/components/collapse/?#usage


https://www.w3schools.com/bootstrap/bootstrap_ref_js_collapse.asp


https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_ref_js_collapse_simple&stacked=h


https://getbootstrap.com/docs/5.2/components/collapse/


https://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-collapse.php


https://getbootstrap.com/docs/4.0/components/collapse/

https://www.w3schools.com/bootstrap5/tryit.asp?filename=trybs_collapsible_in&stacked=h

https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=creating-collapsible-element-via-data-attributes

How to remove underline from link - a href

Use style 

  text-decoration: none;

<a onclick="OpenManageJavaModal();" href="javascript:void(0);" style=" text-decoration: none;">Download Java Setup

                                        </a>

How to download a file from a href without opening it - Direct Downloading

 Use download attribute on a href

 <a title="Digital Signature User Manual" href="Download/DigitalSignature/Signer-UserManual.pdf" style=" text-decoration: none;" download>Download User Manual for Digital Signature

                                        </a>


href:- https://www.w3schools.com/tags/att_a_download.asp

Wednesday, November 8, 2023

ASP.NET Repeater - Cards Bootstrap

<asp:DataList runat="server" ID="repeaterInbox1" RepeatColumns="3" RepeatDirection="Horizontal">

            <ItemTemplate>

            <div class="card" style="width: 18rem;">

             <div "card-body">

                    <h5 class="card-title"><%#Eval("ApplicationId") %></h5>

                    <h6 class="card-subtitle mb-2 text-muted"><%#Eval("Subject") %>

                        

                    </h6>

                 <p class="card-text" ><%#Eval("FromUserName") %></p>

                 <p class="card-text"><%#Eval("ReceivedDate") %></p>

            </div>

        </div>

                </ItemTemplate>

            </asp:DataList>    

       

Monday, November 6, 2023

How to get select- 0 in dropdown list from database select query as first row - 0th index sql server

 ALTER PROCEDURE [dbo].[RPT_GetCrimeCategory]  

AS

BEGIN

-- SET NOCOUNT ON added to prevent extra result sets from

-- interfering with SELECT statements.

SET NOCOUNT ON;

select LKSCOMPLAINTSOURCE.LookupID, LKSCOMPLAINTSOURCE.Description from dbo.Lookup LKSCOMPLAINTSOURCE WITH(NOLOCK)where  LKSCOMPLAINTSOURCE.LookupCategory = 126

union 

select 0, 'Select'

END