Defining Nullable parameter of a method

Filed in .Net Leave a comment

Most of the times we need to pass null parameter to method especially when parameter is buy generic cialis 20mg integer. At this if your parameter is not very necessary you think how you can pass null to it so you can define nullable parameter in method signature through below technique;

public DataSet GetPKByStatusId(short[] intpkStatusId, Nullable<Int32> intPageNo, Nullable<Int32> intMaxRecordOnPage, Nullable<Boolean> bolExcludeExpiredHoldPKs)

{

//Write you logic here

}

Not Getting ReadOnly/Disabled textbox value on server side ASP.Net

Filed in .Net Leave a comment

 

Problem:

I am not able to get values of a textbox which is readonly on server side when click submit.

Values in the textbox fills from the date picker control.

Solution:

First of all don’t disabled or readonly textbox from design view. Add the below code on page load. 

txtExiprationDate.Attributes.Add(“readonly”“readonly”);

 

TOP