[Solved] How to disable RSS in ASP.NET

Look for something like this on the html template and remove it (don’t make a literal search of the entire tag since title and href will be different) <link rel=”alternate” type=”application/rss+xml” title=”RSS” href=”https://stackoverflow.com/questions/15400046/url” /> 2 solved How to disable RSS in ASP.NET

[Solved] ERROR: Cannot convert method group ‘CopyToDataTable’ to non-delegate type ‘System.Data.DataTable’. Did you intend to invoke the method?

CopyToDataTable is a method, you need to add the parenthesys to the method name dtChoice_2 = dtChoice.Select(“QuestionID = ‘” + QNo + “‘”).CopyToDataTable(); ^^^ 2 solved ERROR: Cannot convert method group ‘CopyToDataTable’ to non-delegate type ‘System.Data.DataTable’. Did you intend to invoke the method?

[Solved] ASP.NET form with Submit and Cancel Button [closed]

Add ValidationGroup on ImageButton ID=”Submit”: <asp:ImageButton ID=”Submit” runat=”server” OnClick=”submitClick” ImageUrl=”~/Styles/images/submit-btn.png” ValidationGroup=”AddSchoolValidationGroup” CausesValidation=”true” /> 0 solved ASP.NET form with Submit and Cancel Button [closed]

[Solved] How to Save profile account in database when I click the save button? [closed]

Error 31 Cannot implicitly convert type ‘System.Web.UI.WebControls.DropDownList’ to ‘string’ Error 34 Cannot implicitly convert type ‘string’ to ‘System.Web.UI.WebControls.DropDownList’ Exactly as I’ve said in the comments. You can’t use dropdownlists like this. DropDownList has a property for accessing the currently selected value string selectedItemValue = dropDownListInstance.SelectedValue; Or maybe: string selectedItemValue = dropDownListInstance.SelectedItem.Text; 1 solved How to … Read more

[Solved] My code return cannot implicitly convert int to bool

You can’t test multiple values this way, you have to specify the test value each time: CssClass = (idee.IdTypeEtatIdee == (int)EnumTypeEtatIdee.example? “example” : (idee.IdTypeEtatIdee == (int)EnumTypeEtatIdee.exampletwo ? “Aletude” : (idee.IdTypeEtatIdee == (int)EnumTypeEtatIdee.examplethree? “Encours” : (idee.IdTypeEtatIdee == (int)EnumTypeEtatIdee.examplefour ? “examplefour ” : (idee.IdTypeEtatIdee == (int)EnumTypeEtatIdee.examplefive ? “examplefive ” : “null”))))) You could instead use a switch … Read more

[Solved] Display table values in textboxes [closed]

try something like this…. using (SqlConnection con = new SqlConnection(strConnect)) { con.Open(); using (SqlCommand com = new SqlCommand(“SELECT FirstName, LastName, EmailId, MobileNUmber FROM myTable WHERE id=@ID”, con)) { com.Parameters.AddWithValue(“@ID”, iD); DataTable dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(com); da.Fill(dt); txtFirstName.Text = dt.Rows[0][“FirstName”]; txtName.Text = dt.Rows[0][“LastName”]; } } 3 solved Display table values in … Read more

[Solved] ASP.NET: Could anyone provide some C# paging codes in Repeater or ListView controls for me to learn [closed]

Here is a pager control that I created to drop into the PagerTemplate of a GridView. It’s not the most complicated stuff, but it shows how a pager control can ‘see’ the grid that it belongs to and render a dropdown to jump to a specific page. DataPager.ascx <%@ Control Language=”C#” AutoEventWireup=”true” EnableViewState=”true” CodeFile=”DataPager.ascx.cs” Inherits=”Resources_Controls_DataPager” … Read more

[Solved] asp.net web api c# interface dataprovider

In your interface you have it defined as Task<IEnumerable<TabMain>> Gettabs(); but you implement it like this public async Task<IEnumerable<TabMain>> GetTabs() C# is a case sensitive language, so you need to either change your implementation method name or your interface method name. I would change the interface method name to GetTabs to go with the standard … Read more