vijay

welcome Netizen

welcome Netizen
Hi folks this site Share Basic Knowledge in .NET, DotNet, C#,DOT NET CODE, ASP.NET, VB.NET, DOT NET TRICKS,Dotnetcode,Android and Latest Technology Articles in VB,Android and ASP.NET

Friday, September 16, 2011

How to upload 5mb or more file size using upload control in asp.net


HI..i want to share the small tips ..to upload maximum amount file in upload control..
Normally by default you can upload minimum 3mb or 4mb file size..Suppose you want to upload more number size file then you can do some coding in web.config file…
<system.web>
  <sessionState timeout="20"/>
  <httpRuntime executionTimeout="240" maxRequestLength="8192" />
    </system.web>

Here it will upload up to 8MB file size…
I hope this helpful to all….

Wednesday, September 14, 2011

Captcha Control for ASP.net


                Hi…I want to share the captcha control usage and How to get and use the control…

CAPTCHA terms for Completely Automated Public Turing Test To Tell Computers and Humans Apart
Now google has provides own captch a control, if you have an website you can easily get free captch control from the following links…



signup using google account and get the dll file and coding for your site…

After sign up you have to register your domain and they will provide public key and private key for your site.Those keys you have to add when using captcha control..
Then You can get three type of file from Download…
Recaptcha.dll
Recaptcha.dll.refresh
Recaptcha.pdb

Instead of using some other captcha the google captcha give more security and easy to integrate to your website……

CAPTCHAs have several applications for practical security..

Preventing Comment Spam in Blogs
Protecting Website Registration
Preventing Dictionary Attacks
Search Engine Bots
Worms and Spam.

I hope this one helpful to all

Post your comments here 

Monday, September 5, 2011

Create a link button at runtime in asp.net


Hi..
In this article I will explain about to create a control dynamically asp.net..It’s very simple process to learn  and create a control in Dynamic….
First you have to decide where we have to create a link button at what position..After decide the position to add one div tag in that position. Now we are going to add a control in the div tag.
Write the following code to create a link button….

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        Dim btn As New LinkButton
        btn.ID = "btn"
        btn.Text = "Click Me"
        AddHandler btn.Click, AddressOf btn_Click
        Me.dpan.Controls.Add(btn)’Dpan as div tag name
    End Sub

After creating a control..also we make click event for the control after click the button code will execute…Follow the below code…creating click event………
Private Sub btn_Click(ByVal sender As Object, ByVal e As EventArgs)
        Response.Write("Button is clicked")
End Sub

I hope this one helpful to all ………