Super User

Super User

if you want to read get/read data from a file according to
querystring using StreamReader then following codes will
help you.It is very useful in some i get data from
a ashx file according to query string i pass to the file -

following method will return the host name/domain name -
Wednesday, 16 January 2013 13:56

how to implement paging for datalist control

I wanted paging for showing datalist items in pages.for
that i used's necessary very much.
following codes show how to add paging for datalist items -

Wednesday, 16 January 2013 13:15

how to use datalist commands

if you placed datalist command buttons as -

<asp:DataList ID="DataList1" DataKeyField="CommentId" runat="server"
<asp:LinkButton ID="Edit" Text="Select" CommandName="Edit" runat="server" />
<asp:LinkButton ID="delete" Text="Approve" CommandName="Delete" runat="server" />

Wednesday, 16 January 2013 13:54

how to edit,update,delete items in DataList

If you used itemtemplate for items in datalist control then
you can easily delete,edit and then update items
using do that add a itemtemplate and
edititemtemplate in the datalist.also you have to add
command buttons and command event handlers -

Tuesday, 15 January 2013 13:56

how to add captcha in page

A CAPTCHA is a program which tells whether its user
is human or computers.

follow the steps below to add captcha in your web form
easily -

you can use online paypal buy button in your page
for receiving online paypal payment.when users click
this buy button they will enter in payment page
for payment.

GridView is the most common data representation
contol in's needed to show users the
items details when the item is selected.DetailsView
control can be used precisely to show the Gridview items

Monday, 14 January 2013 13:56

how to use verbatim string

verbatim string is a string which is interpreted
by the compiler exactly as it is written, meaning
that even if the string spans multiple lines
or keeps escape characters,etc.

Monday, 14 January 2013 13:55

what is ViewState in

ASP.NET controls automatically keep their data
when page is sent to the server in response to
events (like a user clicking a button).
this persistence of data is called view state