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" />
.......
using connectionstring of configuration file in pages
Written by Super Usernormally we define connectionstrings under
<connectionStrings> tag in the web.config
file.membership providers use that
connectionstring.what if we needed to use
the connectionstring in asp.net pages?.
It is needed to check whether your website is
available or down.It's better you create a WPF
application to check that.you can also check
status periodically besides checking status on
a button click.the following program shows how
to check the website status by clicking a button -
for creating own exception class,you have to derive your class
from System.Exception class.also you have to implement all
constructors which base class implements.to create own
exception class follow the requirements/recommendations
below-
how to create and write data in a file in a specified directory
Written by Super Userthis 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 -