Dim sql As String = ("Delete from Categories WHERE CategoryID in (" & +test & ")")
Amol 111
Posts
-
Whats error in the bold line -
customized reports with calendars and dropdown listTake a blank .rdlc (report1.rdlc). create .xsd file (say dsReport.xsd). Create datatable in dsReport (say dtReport).Include (or create manualy) fields required in the datatable,dtReport. Drag those fields in ur rdlc. in code behind
using Microsoft.Reporting.WebForms;
reportViewer1.Visible = true;
reportViewer1.ShowToolBar = true;
reportViewer1.SizeToReportContent = true;
reportViewer1.LocalReport.ReportPath = "report1.rdlc";
reportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
//Note:DisplayReport will be your method to get data based on your parameters with return type as datatable.
DataTable dtReportSource = DisplayReport(fromDate,todate,process);//Note schema for dtReport and dtReportSource should match.
//Note: name format of dataset and datatable in .xsd filereportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dsReport_dtReport", dtReportSource ));
-
Help on Grid ViewSearch for parent Child relation in gridview. also take a look at this Multilevel Nested Master/Detail Data Display Using GridView[^]
-
how to highlight newly inserted record in a gridview with paging=true?Assuming your first row of gridview is the last inserted record in design mode provide backcolor in SelectedRowStyle or in your CSS. then in ur insert function after Binding gridview write the below line
gridview1.SelectedIndex = 0;
-
Enable options according to button click [modified]WEBSITES are u sure or they are like page1.aspx,page2.aspx,page3.aspx.
-
How to put java script....try this
if (!IsPostBack)
{
TreeNode Parentnode = new TreeNode("Home");
TreeNode node = new TreeNode("Organization","","","'Organization.aspx","_blank");
//node.NavigateUrl = "javascript:window.open('Organization.aspx','mywindow','width=750,height=600');";
Parentnode.ChildNodes.Add(node);
TreeView1.Nodes.Add(Parentnode);
}