"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Thursday, July 28, 2011

SimplyAsp.net Now on facebook

Greeting to all my readers!!!

SimplyAsp.net Now on facebook. Follow us on new way. All the post published in blog will updated on Fb pages. Be update with us by submitting LIKE button on FB. 

Stay Tune...

Have a nice day... 'N happy Coding :)

Tuesday, July 26, 2011

Fileupload in asp.net c#

Hi *.*,
2 day's before i got a mail from one of reader regarding fileupload control in asp.net.He had certain needs also...
  • Upload file to particular folder
  • Get extension of file(Before Uploading)
  • Save file in custom name
  • Get Size of the file
  • Server side and Client side validation

Thursday, July 21, 2011

Get Selected RadioButtonList Value using JavaScript in ASP.Net


At times, there will be need to get the selected or checked RadioButtonList value from javascript to do some validations on client side.
The following javascript will help us to do that.  

<script language="javascript" type="text/javascript">      
        function GetRDBValue()
        {
            var radio = document.getElementsByName('rdbGender');
            for (var i = 0; i < radio.length; i++)
            {
                if (radio[i].checked)
                {
                    alert(radio[i].value);
                 }
            }
        }
</script>

<asp:RadioButtonList ID="rdbGender" runat="server">
            <asp:ListItem Text="Male" Value="1"></asp:ListItem>
            <asp:ListItem Text="Female" Value="2"></asp:ListItem>           
</asp:RadioButtonList>

Stay Tune...
 Have a nice day... 'N happy Coding :)

Saturday, July 16, 2011

Check IE compactability of your website using Microsoft VDC

Hi *.*,
For designers IE is a worst nightmare :( . Formally he fixed one version as standard and on other version show a message not compatible (getting bail early) .Anyway Microsoft has provided VHD’s (Virtual Hard Disk) with Windows set up with the specified version of Internet Explorer.

Friday, July 15, 2011

Some Interview Question

Hi,
Last day had an interview, a top class one i ever had. Here i'm sharing some among them.


1:what are the advantages of asynchronous web page programming

Answer:
A. asynchronous web page programming improves application''s efficiency

B. asynchronous web page programming reduces page rendering time


2: For what file types IIS passes request to aspnet_isapi.dll

Answer:
A.File types for which IIS passes request to aspnet_isapi.dll are
.aspx,.asmx etc

B.File types for which IIS does not passes request to aspnet_isapi.dll are
.jpeg .png ,.html etc


3.how to set the title of the page dynamically from Code behind in ASP.NET C#

Answer:
A.Page.Header.Title = "New Title";
can be used to set the title of the page dynamically from Code behind in ASP.NET C#.

4.What is meant by intelligent load balancing in web farm in ASP.NET

Answer:
By intelligent load balancing in web farm in ASP.NET we mean "always send a request from a given client to same server to which the first request from that client was sent".Note that in web farm a web application request load is shared by more than one server.

5.How to encrypt view state using web.config in ASP.NET

Answer:
To encrypt view state using web.config in ASP.NET use the tag
<pages viewStateEncryptionMode = "Always"/>


There are lot more stuff but i can't recollect all of them :(

Stay Tune...
Have a nice day... 'N happy Coding :)

Monday, July 11, 2011

The :first-letter Pseudo-element

In my last post i shared abt  :first-line Pseudo-element, Today abt :first-letter Pseudo-element.
The "first-letter" pseudo-element is used to add a special style to the first letter of a text:

Sunday, July 10, 2011

The :first-line Pseudo-element

It a CSS Style tip.The "first-line" pseudo-element is used to add a special style to the first line of a text.First line depend on Window Size and Break point Not the next Dot (.).

Wednesday, July 6, 2011

XML Character Entities

XML pays special attention to a few specific characters, such as & and < and >...
On XAML 
<Button ... >
<Click Me>
</Button>. 
This would not work,The solution is to replace the offending characters with entity
references—specific codes that the XAML parser will interpret correctly

Here’s the corrected markup that uses the appropriate character entities:
<Button ... >
&lt;Click Me&gt;
</Button>

Special Character
Character Entity
Less than ( < )
&lt;
Greater than ( > )
&gt;
Ampersand ( & )
&amp;
Quotation Mark ( “ )
&quot;





Have a nice day... 'N happy Coding :)