Super User
how to create and write data in a file in a specified directory
this post will show how to create a file in dotnetnuke module
directory and write some data in the file.you can use this
technique in asp.net application too -
how to get profile and membership data in dnn module
getting dnn user information from dotnetnuke module is
easy.
you can get dotnetnuke user's User Credentials
and Profile data by the following way -
how to read from a file according to querystring using Stream
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 case.here i get data from
a ashx file according to query string i pass to the file -
how to get the host name and Ip address of your website
how to implement paging for datalist control
I wanted paging for showing datalist items in pages.for
that i used pageddatasource.it's necessary very much.
following codes show how to add paging for datalist items -
how to use datalist commands
if you placed datalist command buttons as -
<asp:DataList ID="DataList1" DataKeyField="CommentId" runat="server"
OnItemCommand="DataList1_ItemCommand">
<ItemTemplate>
<asp:LinkButton ID="Edit" Text="Select" CommandName="Edit" runat="server" />
<asp:LinkButton ID="delete" Text="Approve" CommandName="Delete" runat="server" />
.......
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 edititemtemplate.to do that add a itemtemplate and
edititemtemplate in the datalist.also you have to add
command buttons and command event handlers -
how to add captcha in asp.net 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 -
using online paypal buy button for paypal payment
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.
how to show Gridview items details using DetailsView
GridView is the most common data representation
contol in asp.net.It's needed to show users the
items details when the item is selected.DetailsView
control can be used precisely to show the Gridview items
details.