Apr 28, 2012

How to show fileupload on apple browser

Recently i was facing problem in fileupload on ipad or Apple OS , i searched a lot on the net., but did not get any solution. The only answer which i got was that Apple file System doesn't allow access to fileupload control.

So finally i checked my asp.net Web Application on apple's macbook and it's supports and allow to upload files.


During the search i found that may be usefull link for file upload on iPhone.

http://picupapp.com/scratchpad.html
http://asp.net.bigresource.com/Mobiles-upload-file-not-working-for-IPad-IPhone--mbuXPbNLH.html

----------------------------------------------------------------------------------

Apr 17, 2012

Simply Hide and show in javascript








Use below images ..




====================== ASPX Script =======================



<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">

    <table style="width: 308px; background-color: cadetblue">
        <tr>
            <td style="height: 30px">
                <img id="img1" src="Images/gvCollapsedButton.png" onClick="return Fun1();" />
                <asp:Label  ID="Button1" runat="server" Text="click on me to Expand / Collapse" OnClientClick="return Fun1();" /></td>
        </tr>
        <tr>
            <td>
     
     
    <div id ="MyDiv" style="background-color: #ccffff; width: 300px; height: 59px; display: none;">
        <br />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UserName : &nbsp;
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div>
            </td>
        </tr>
    </table>


</form>
</body>


<script type="text/javascript" language="javascript" >

// global variable
var status= "close";


// ============== Script to hide and show ....
function Fun1()
{
    if (status=="close")
    {
        document.getElementById("MyDiv").style.display = 'block';
        document.getElementById("img1").src= 'Images/gvExpandedButton.png';
        status="open";
    }
    else
    {      
        document.getElementById("MyDiv").style.display = 'none';
         document.getElementById("img1").src= 'Images/gvCollapsedButton.png';
        status="close";
    }
 
    return false;  
}

//=====================
</script>

</html>
==============================================================


Apr 2, 2012

Show Images dynamically in asp.net


<asp:sqlDataSource ID="ImgSqlDataSource" SelectCommand="SELECT imageName, 
imageUrl FROM tblImages" />

<asp:Repeater id="cdcatalog" runat="server">
    <HeaderTemplate>
        <table>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td><img src="<%#Container.DataItem("imageUrl")%>" /></td>
        </tr>
        <tr>
             <td><%#Container.DataItem("imageUrl")%></td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
</asp:Repeater>

============================
IN Source Code PAge...

onPageLoad provide ImgSqlDataSource to the repeter Control.

Mar 10, 2012

VistaDB is an Embedded SQL Database Engine for .Net

VistaDB is the only .Net embedded database that allows you to Xcopy a single DLL for both 32 and 64 bit runtime support.  Want ClickOnce deployment for your .Net application?  VistaDB requires zero config on the client.  No more worries about COM deployment for the database engine!  Even our database files are built for ease of deployment - a single database file with no external logs or complex permissions.

No need to bother your hosting provider for special access, no services to run.



Full integration within Visual Studio Standard or Higher



Work with Visual Studio 2008 and 2010


VistaDB has full Visual Studio integration giving you the familiar tools you need to be productive quickly, including full Server Explorer integration.   Developers who have used other desktop databases in Visual Studio will be able to immediately start working with VistaDB.

What is the use of n-tier architecture and 3-tier architecture?

how to implement 3-tier architecture in asp.net using c#. 3-Tier architecture is also called layered architecture. Some people called it ...