TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vikas Singh
1.3k
414
15.2k
How to use Delegates in my code ?
Jul 23 2020 7:35 AM
How can i call my Getcountry() mothod using delegates in my code Please help
public delegate void Country();
public delegate void State(int countryid);
public partial class ManualOrder : System.Web.UI.Page
{
#region[Properties]
Method objmethod = new Method();
DataSet ds;
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
#region [Bind Data]
public void GetCountry()
{
DataSet ds = new DataSet();
ds = Method.CountryForShip(); //this is my static country method which i use in method class
ddlcountry.DataSource = ds.Tables[0];
ddlcountry.DataTextField = "country";
ddlcountry.DataValueField = "country";
ddlcountry.DataBind();
ddlcountry.Items.Insert(0, new ListItem("Select Country", "9999"));
}
}
Reply
Answers (
1
)
Error after publishing MVC app
@EditorFor validates error for empty text in asp.net mcv?