
asp.net (19)
asp.net tips
using asp.net membership Probvider you can easily
make a user login using username and password and redirect to
default or any page by the following way -
I have given many interviews on c#,asp.net jobs and
went through the questions.here i am posting,It may
help you -
in some way these codes will help you very much if you need
to know file extension.
method below returns true if extension are any of the following -
HttpCookie is a very good way to store small amount of data
in asp.net application/website.you can access cookie value in
any page once set in a page.cookie can stay for long time in the
user's computer.
keeping and using application settings in web.config file
Written by Super Userin asp.net application or website </appSettings>
section in web.config is used to store application
setting to be used.you can keep settings in this
section as -
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 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 -
how to assign specific role when user registers
Written by Super Userusing asp.net membership provider user
registration is done by the CreateUserWizard
control in the Register.aspx page.
following is the list of online websites which
contain online books,a lot of study material-