Tags » ASP. NET

NHibernate to handle search and paging from stored procedure

Basically my task is to create a page that display data in grid, able to filter (search), and print the data I retrieve from a stored procedure using NHibernate. 578 more words


Open new pop up window on href click . Then prind window.

@media print {
.noprint {
display: none !important;

<a id=”lnkPrintReceipt” class=”link” onclick=”javascript:window.open(‘../../admin/Reciept.aspx?Id=216&Type=TY’,’PaymentReceipt’,’width=800,height=500,toolbar=0,scrollbars=1′)” target=”_blank” style=”cursor: pointer; text-decoration: none;”>PMT0311</a>

<div class=”btn”>
<input type=”submit” name=”ctl01″ value=”Print Receipt” onclick=”javascript: window.print();” class=”btn_blue no-print”>


Loading Sequence of Master Page, Contents Page and User Control in ASP.NET

In this article I will show the loading process sequence of a Master Page that contains a Contents Page and that Contents Page has a User Control. 401 more words


Operation is not valid due to the current state of the object.

Error : Operation is not valid due to the current state of the object.

When there is a postback with large number of form fields such error occurs. 55 more words


how to create your own log-in page in asp.net

this code will help you to create your own authentication page in asp using your own database.

you need username text box and password text box with button to send the information to C# 312 more words


Add Connection string to web.config

To add connecting string you need to add this code to your web.config

<add name=”ApplicationServices” connectionString=”data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true” providerName=”System.Data.SqlClient” />
<add name=” name of the connection ” connectionString=”Server= this should be the server  ;Database=name of the database ;User ID=name of the user ;Password=the password for that user” providerName=”System.Data.SqlClient” /> 14 more words


How to Generate a Runtime PDF in Landscape Page Mode in ASP.Net

I will explain here how to generate a runtime PDF in landscape page mode using Visual Studio Ultimate 2015 Preview.

Briefly, I will generate the runtime PDF using ITextSharp. 338 more words