crystal report in VS 2010 not showing report in production environment

Filed in .Net Leave a comment

Copy C:\inetpub\wwwroot\aspnet_client on your website root

Main buy cialis tabs folder is C:\inetpub\wwwroot\aspnet_client\system_web

Getting Key value from web.config asp.net

Filed in .Net Leave a comment

System.Configuration.ConfigurationManager.AppSettings["MinOrderAmtForFreeShipping"])

How to assign a nullable parameter into not nullable

Filed in .Net Leave a comment

The profile paramerter is defined nullable whereas my method GetAddressesByAId must require an integer.

objBillAddresses = objCustomerProxy.GetAddressesByAId(Profile.BillIdCheckOut.GetValueOrDefault(0));

Defining a Nullable type parameter in Profile.config/Web.config

Filed in .Net Leave a comment

<add name = “ShipIdCheckOut” type=”System.Nullable`1[System.Int32]” allowAnonymous=”true”/>

Redirect to last page in asp.net

Filed in .Net Leave a comment

if (!IsPostBack)

{

ViewState[Constants.ViewState.ReferUrl] = Request.UrlReferrer.ToString();

}

protected void btnSignIn_Click(object sender, ImageClickEventArgs e)

{

if (this.SignIn())

{

if (ViewState[Constants.ViewState.ReferUrl] != null)

{

Response.Redirect(ViewState[Constants.ViewState.ReferUrl].ToString(), false);

}

}

}

http://www.dotnetcurry.com/ShowArticle.aspx?ID=89

String Concatenation in gridview Template column using Eval

Filed in .Net Leave a comment

Text=’<%# “Receipt Id# : ” + Eval(“SId”) %>’

This is only possible in Eval method, doesn’t work in Bind.

 

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode

Filed in .Net | ASP.Net Configuration Leave a comment

We have a dotnet web site which is built on framework 4.0 and is running over windows 2008 R2 server.

Today we added an application role to the server and defined framework 3.5 to be installed alongwith that. After doing this we suddenly started receiving the below error:

Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceMode…..

After doing some googling I found the solution which suggests that register the asp.net again with the appropriate version so I registered the asp.net (using aspnet_regiis -i command in the v4.0 folder of the dotnet framework) and that resolved my problem.

Found the solution at : 

gridview Row merging asp.net

Filed in .Net Leave a comment

Nice article at below link

http://csharpdotnetfreak.blogspot.com/2009/07/merge-gridview-cells-columns-aspnet.html

Disable copy paste in textbox asp.net

Filed in .Net | Javascript Leave a comment

<asp:TextBox ID=”txtEmailAddress2″ runat=”server” MaxLength=”50″ oncut=”return false;” onpaste=”return false;” oncopy=”return false;” onkeydown=”return disableCtrlKeyCombination(event);”></asp:TextBox>

<script type=”text/javascript”>

function disableCtrlKeyCombination(e) {

key = e.which;     //firefox

if (e.ctrlKey) {

return false;

}

}

</script>

Getting values from label, hiddenfield in javascript for IE, Firefox

Filed in .Net | Javascript Leave a comment

var tot;

//Get cialis super active controls as below

var subTotals = document.getElementById(‘<%= lblSubTotals.ClientID %>’);

var promocodetype = document.getElementById(‘<%= hdnPromoCodeType.ClientID %>’);

if (document.all) {//IE

var pc = promocodetype.value;

tot = subTotals.innerText;

}

else{//Fire Fox

tot = subTotals.textContent;

}

TOP