|
asp:panel renders to a div. Use style property to assign position arguments like :
<asp:Panel ID="pnl" runat="server" Style="left: 100; top: 500; background-color:Red; border: solid 1; padding: 10; position:absolute;">
This is a panel</asp:Panel>
to do your job.
|
|
|
|
|
Thanks 4 the help, but a new problem is occured...
when logging as single user things are working fine..., means the position is perfect and as required.
But when im logging as ADMIN than all panels get mixed up... why???
|
|
|
|
|
Check the Client HTML it renders when you login using Admin. this might help you on what is wrong with Admin.
|
|
|
|
|
i want develop a excel like interface in my asp.net page. can anyone help me to do this.... or is there any open source excel like gridview available.i did search google but did not find anything such like that.
Thanks
tbhattacharjee
|
|
|
|
|
Use Gridview with Textbox as Template Field. Or you can use table for that . What is the actual purpose ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
thanks for your help. cheers
tbhattacharjee
|
|
|
|
|
<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Visitor.aspx.cs" Inherits="SMS.Visitor" Title="VisitorForm" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link type="text/css" rel="Stylesheet" href="_assets1/css/panel.css" />
<link type="text/css" rel="Stylesheet" href="_assets1/css/pager.css" />
<link type="text/css" rel="Stylesheet" href="_assets1/css/grid.css" />
<link type="text/css" rel="Stylesheet" href="_assets1/css/filter.css" />
<style type="text/css">
#demo
{
font-size: small;
}
.panel .header .content H2
{
font-size: 12pt;
font-weight: bold;
color: #fff;
padding: 12px 0px 0px 8px;
margin: 0;
float: left;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<div id="processMessage" style="display: none">
<img alt="Loading" src="images/loading.gif" />
content loading...</div>
</ProgressTemplate>
</asp:UpdateProgress>
</div>
<script type="text/javascript">
function pageLoad(sender, args) {
var autoComplete = $find('autoCompleteTotal');
autoComplete.add_populating(function() {
// use the filter as the context key
autoComplete.set_contextKey($get('<%= this.ddlFilterTotal.ClientID %>').value);
});
autoComplete.add_itemSelected(function() {
// force the panel to refresh
__doPostBack('<%= this.updPanelTotal.ClientID %>', '');
});
}
</script>
<asp:UpdatePanel ID="updPanelTotal" runat="server">
<ContentTemplate>
<asp:ObjectDataSource ID="odsTotalStudents" runat="server" SelectMethod="Select"
TypeName="SMS.Visitor" OnSelecting="Selecting">
<SelectParameters>
<asp:Parameter Name="propertyName" Type="String" />
<asp:Parameter Name="propertyValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:Panel ID="Panel1" runat="server">
<table width="100%">
<tr>
<td>
Name
</td>
<td>
<asp:TextBox ID="txt_VisitorName" runat="server" MaxLength="50"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txt_VisitorName"
FilterType="Custom,UppercaseLetters,LowercaseLetters" Enabled="True">
</cc1:FilteredTextBoxExtender>
<asp:RequiredFieldValidator ID="rfv_ConsultedDate" runat="server"
ControlToValidate="txt_VisitorName" Display="None"
ErrorMessage="Enter visitor name" ToolTip="Please enter date"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="vce_rfv_ConsultedDate" TargetControlID="rfv_ConsultedDate" HighlightCssClass="validatorCalloutHighlight" runat="server">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td>
Whoom to meet
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" MaxLength="50"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TextBox1"
FilterType="Custom,UppercaseLetters,LowercaseLetters" Enabled="True">
</cc1:FilteredTextBoxExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" Display="None"
ErrorMessage="Enter whom to meet" ToolTip="Please enter date"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" TargetControlID="RequiredFieldValidator1" HighlightCssClass="validatorCalloutHighlight" runat="server">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td>
Room no
</td>
<td>
<asp:TextBox ID="txt_RoomNo" runat="server" MaxLength="50"></asp:TextBox>
<asp:Button ID="btn_Search" runat="server" Text="Search"
onclick="btn_Search_Click" CausesValidation="False" />
</td>
</tr>
<tr>
<td>
Vehicle no
</td>
<td>
<asp:TextBox ID="txt_VehicalNo" runat="server" MaxLength="9"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TextBox1"
FilterType="Numbers,Custom,UppercaseLetters,LowercaseLetters" Enabled="True"/>
</td>
</tr>
<tr>
<td>
In-time
</td>
<td>
<asp:TextBox ID="txt_InTime" runat="server" MaxLength="8"></asp:TextBox>
<cc1:MaskedEditExtender ID="txtSecStart_MaskedEditExtender" runat="server" TargetControlID="txt_InTime"
MaskType="Time" AcceptAMPM="true" Mask="99:99" MessageValidatorTip="true">
</cc1:MaskedEditExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox1" Display="None"
ErrorMessage="Enter visitor name" ToolTip="Please valid date"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" TargetControlID="RequiredFieldValidator2" HighlightCssClass="validatorCalloutHighlight" runat="server">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr valign="top">
<td>
Purpose
</td>
<td >
<asp:TextBox ID="txt_Purpose" runat="server" Height="130px"
TextMode="MultiLine" Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
</td>
<td align="left">
<asp:Button ID="btnSubmit" runat="server" Text="Submit"
onclick="btnSubmit_Click" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel"
CausesValidation="False" />
<asp:Button ID="Button1" runat="server" style="display:none" Text="Button" />
<asp:Button ID="Button2" runat="server" style="display:none" Text="Button" />
</td>
</tr>
</table>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button1"
PopupControlID="Panel2" CancelControlID="Button2" BackgroundCssClass="modalBackground"
DropShadow="true" BehaviorID="mdl">
</cc1:ModalPopupExtender>
<asp:Panel ID="Panel2" runat="server" Style="display: none; background-color: White;
border-width: 2px; border-color: Black; border-style: solid; padding: 20px;">
<table width="100%">
<tr>
<td>
</td>
<td align="right">
<asp:LinkButton ID="LinkButton1" runat="server">Close</asp:LinkButton>
</td>
</tr>
</table>
<div id="dlg" class="panel" style="width: 436px">
<div class="header" style="cursor: default">
<div class="outer">
<div class="inner">
<div class="content">
<h2>
</h2>
<div class="filter">
<asp:DropDownList ID="ddlFilterTotal" runat="server">
<asp:ListItem Text="First Name" Value="firstname" />
<asp:ListItem Text="Last Name" Value="lastname" />
<asp:ListItem Text="Room No" Value="class_section" />
</asp:DropDownList>
<asp:TextBox ID="txtFilter" runat="server" autocomplete="off" OnTextChanged="FilterChanged" />
<cc1:AutoCompleteExtender ID="txtFilter_AutoCompleteExtender" runat="server" DelimiterCharacters=""
Enabled="True" ServicePath="" TargetControlID="txtFilter" ServiceMethod="GetCompletionList"
UseContextKey="true" ContextKey="test" MinimumPrefixLength="1" BehaviorID="autoCompleteTotal"
CompletionListCssClass="autocomplete_list" CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlighted_listitem">
</cc1:AutoCompleteExtender>
<asp:ImageButton ID="btnClear" runat="server" AlternateText="Remove Filter" ImageUrl="~/images/clear.gif"
OnClick="ClearFilter" Height="16px" Width="16px" />
</div>
</div>
</div>
</div>
</div>
<div class="body">
<div class="outer">
<div class="inner">
<div class="content">
<asp:ListView ID="lvCustomers" runat="server" class="grid" DataSourceID="odsTotalStudents"
onitemcommand="lvCustomers_ItemCommand">
<LayoutTemplate>
<table id="customers" runat="server" cellspacing="0" border="0">
<tr>
<th>
<asp:LinkButton ID="btnSortLastName" runat="server" Text="First name" CommandName="Sort"
CommandArgument="lastname" />
</th>
<th>
<asp:LinkButton ID="btnSortFirstName" runat="server" Text="Last name" CommandName="Sort"
CommandArgument="lastname" />
</th>
<th>
<asp:LinkButton ID="btnBlockName" runat="server" Text="Block" CommandName="Sort"
CommandArgument="Block name" />
</th>
<th>
<asp:LinkButton ID="LinkButton2" runat="server" Text="Roomno" CommandName="Sort"
CommandArgument="Room no" />
</th>
<th>
</th>
</tr>
<tr id="itemPlaceholder" runat="server" />
<tr class="pager">
<td colspan="6">
<div class="container">
<asp:DataPager ID="pager" runat="server" PageSize="5">
<Fields>
<asp:TemplatePagerField OnPagerCommand="PagerCommand">
<PagerTemplate>
<div class="command">
<asp:ImageButton ID="btnFirst" runat="server" CommandName="First" ImageUrl="~/images/first.gif"
AlternateText="First Page" ToolTip="First Page" />
<asp:ImageButton ID="btnPrevious" runat="server" CommandName="Previous" ImageUrl="~/images/prev.gif"
AlternateText="Previous Page" ToolTip="Previous Page" />
</div>
<div class="command">
<asp:TextBox ID="txtSlider" runat="server" Text='<%#
Container.TotalRowCount > 0
? Math.Ceiling(((double)(Container.StartRowIndex + Container.MaximumRows) / Container.MaximumRows))
: 0
%>' AutoPostBack="true" OnTextChanged="CurrentPageChanged" Style="visibility: hidden" />
<cc1:SliderExtender ID="slider" BehaviorID="slider" runat="server" TargetControlID="txtSlider"
Orientation="Horizontal" Minimum="1" Maximum='<%# Math.Ceiling((double)Container.TotalRowCount / Container.MaximumRows) %>'
TooltipText='<%# "Page {0} of " + Math.Ceiling ((double)Container.TotalRowCount / Container.MaximumRows).ToString() + " (" + Container.TotalRowCount + " items)" %>' />
</div>
<div class="command">
<asp:ImageButton ID="btnNext" runat="server" CommandName="Next" ImageUrl="~/images/next.gif"
AlternateText="Next Page" ToolTip="Next Page" />
<asp:ImageButton ID="btnLast" runat="server" CommandName="Last" ImageUrl="~/images/last.gif"
AlternateText="Last Page" ToolTip="Last Page" />
</div>
<br />
<div class="info">
Page <b>
<%# Container.TotalRowCount > 0 ? Math.Ceiling(((double)(Container.StartRowIndex + Container.MaximumRows) / Container.MaximumRows)) : 0 %>
</b>of <b>
<%# Math.Ceiling((double)Container.TotalRowCount / Container.MaximumRows)%>
</b>(<%# Container.TotalRowCount %>
items)
</div>
</PagerTemplate>
</asp:TemplatePagerField>
</Fields>
</asp:DataPager>
</div>
</td>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr id="row" runat="server" class='<%# Container.DataItemIndex % 2 == 0 ? "row" : "altrow" %>'>
<td>
<asp:Label ID="lbl_FirstName" runat="server" Text='<%# Eval("firstName")%>'></asp:Label>
</td>
<td>
<asp:Label ID="lbl_LastName" runat="server" Text='<%# Eval("lastName")%>'></asp:Label>
</td>
<td>
<asp:Label ID="lbl_BlockName" runat="server" Text='<%# Eval("BlockName")%>'></asp:Label>
</td>
<td>
<asp:Label ID="Label1" runat="server" Text='<%#Eval("RoomName")%>'></asp:Label>
</td>
<td>
<asp:LinkButton ID="lbtn_Select" runat="server" CommandName="Select" CommandArgument='<%# Container.DataItemIndex+1%>'>Select</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:ListView>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="outer">
<div class="inner">
<div class="content">
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
when the auto complete is out of modalpopup it wiorks fne but when i put in modalpopup its not working.
and the slider for the listbox also not working when it is out of modalpopup its working can any body trace the error when it is?i am new to dotnet and thanks in advance
hi
modified on Friday, July 24, 2009 2:15 AM
|
|
|
|
|
Does it any makes sense to put all these stuff. Why you are not giving only relavant code?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Dear All Please help
Why now i can not send any email from my script in web page (www.popzone.asia)?
It reply like this if i use with smtp.popzone.asia
"The server rejected one or more recipient addresses. The server response was: 554 5.7.1 <narithchap@yahoo.com>: Relay access denied"
But if i use with localhost or mail.popzone.asia it reply "the transportation fail can not connect to the server"
Before my sending email from script in my web work normally but after i send newsletter to my 19 members it happen like this please help..........
However i notice that there is one email that invalid the email address.
Thank
|
|
|
|
|
The error means what it says. The mail server is not allowing you relay access, which means it thinks you're using their server, but not logged in to them.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I need help applying a tool bar to my website in which people can comment on my page. any help here??
modified on Friday, July 24, 2009 12:45 AM
|
|
|
|
|
I hope this isn't a programming question.
|
|
|
|
|
well it maybe. People cant blog on my site I just created. Please visit www.numbskullkid.com and click review on the top left corner of my main page and see what I mean. I just want feed back from people visiting my site. Can you help?
|
|
|
|
|
You're going to get slammed for posting a programming question in the Lounge.
You should post this question in one of the programming forums instead.
|
|
|
|
|
How dare you.
|
|
|
|
|
hey im using sql server connection with oledb provider to access database..previously it was ms access file .. now i am try switched to sql database.. here is the C# code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Text;
using System.Drawing.Imaging;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.UI.DataVisualization.Charting;
using System.Data.OleDb;
namespace System.Web.UI.DataVisualization.Charting.Samples
{
public partial class DataBindSeriesByRows : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
string myConnectionString = "Provider=SQLNCLI.1;Data Source=.;Integrated Security=SSPI;Initial Catalog=abc";
string mySelectQuery="SELECT * FROM SALESCOUNTS;";
OleDbConnection myConnection = new OleDbConnection(myConnectionString);
OleDbCommand myCommand = new OleDbCommand(mySelectQuery, myConnection);
myCommand.Connection.Open();
OleDbDataAdapter myDataAdapter = new OleDbDataAdapter();
myDataAdapter.SelectCommand = myCommand;
DataSet myDataSet = new DataSet();
myDataAdapter.Fill(myDataSet, "Query");
foreach(DataRow row in myDataSet.Tables["Query"].Rows)
{
string seriesName = row["SalesRep"].ToString();
Chart1.Series.Add(seriesName);
Chart1.Series[seriesName].ChartType = SeriesChartType.Line;
Chart1.Series[seriesName].BorderWidth = 2;
Chart1.Series[seriesName].ShadowOffset = 2;
for(int colIndex = 1; colIndex < myDataSet.Tables["Query"].Columns.Count; colIndex++)
{
string columnName = myDataSet.Tables["Query"].Columns[colIndex].ColumnName;
int YVal = (int) row[columnName];
Chart1.Series[seriesName].Points.AddXY(columnName, YVal);
}
}
DataGrid.DataSource = myDataSet;
DataGrid.DataBind();
myCommand.Connection.Close();
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
}
#endregion
}
}
==============================================================
IM getting this error on running this code..:
Server Error in '/DataBindSeriesByRows' Application.
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
Line 68:
Line 69: string columnName = myDataSet.Tables["Query"].Columns[colIndex].ColumnName;
Line 70: int YVal = (int) row[columnName];
Line 71:
Line 72: Chart1.Series[seriesName].Points.AddXY(columnName, YVal);
Source File: c:\Documents and Settings\gauravk\My Documents\WebSamples\WebSamples\WorkingWithData\DataBinding\DataBindSeriesByRows\DataBindSeriesByRows.aspx.cs Line: 70
Stack Trace:
[InvalidCastException: Specified cast is not valid.]
System.Web.UI.DataVisualization.Charting.Samples.DataBindSeriesByRows.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\gauravk\My Documents\WebSamples\WebSamples\WorkingWithData\DataBinding\DataBindSeriesByRows\DataBindSeriesByRows.aspx.cs:70
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
plz help buddiess... i'll be very grateful.. thanks in advance
modified on Thursday, July 23, 2009 5:00 PM
|
|
|
|
|
Please post the code with Proper Format.
Like,
protected void Page_Load(object sender, System.EventArgs e)
{
Which will make thinks readable.
[Note : Don't Repost : Update The Original Post ]
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.
|
|
|
|
|
namespace System.Web.UI.DataVisualization.Charting.Samples
{
///
/// Summary description for ImageMapCustom.
///
public partial class DataBindSeriesByRows : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
// resolve the address to the Access database
//string fileNameString = this.MapPath(".");
///fileNameString += "..\\..\\..\\..\\data\\chartdata.mdb";
// initialize a connection string
string myConnectionString = "Provider=SQLNCLI.1;Data Source=.;Integrated Security=SSPI;Initial Catalog=abc";
// define the database query
string mySelectQuery="SELECT * FROM SALESCOUNTS;";
// create a database connection object using the connection string
OleDbConnection myConnection = new OleDbConnection(myConnectionString);
// create a database command on the connection using query
OleDbCommand myCommand = new OleDbCommand(mySelectQuery, myConnection);
// open the connection
myCommand.Connection.Open();
// Initializes a new instance of the OleDbDataAdapter class
OleDbDataAdapter myDataAdapter = new OleDbDataAdapter();
myDataAdapter.SelectCommand = myCommand;
// Initializes a new instance of the DataSet class
DataSet myDataSet = new DataSet();
// Adds rows in the DataSet
myDataAdapter.Fill(myDataSet, "Query");
foreach(DataRow row in myDataSet.Tables["Query"].Rows)
{
// for each Row, add a new series
string seriesName = row["SalesRep"].ToString();
Chart1.Series.Add(seriesName);
Chart1.Series[seriesName].ChartType = SeriesChartType.Line;
Chart1.Series[seriesName].BorderWidth = 2;
Chart1.Series[seriesName].ShadowOffset = 2;
for(int colIndex = 1; colIndex < myDataSet.Tables["Query"].Columns.Count; colIndex++)
{
// for each column (column 1 and onward), add the value as a point
string columnName = myDataSet.Tables["Query"].Columns[colIndex].ColumnName;
int YVal = (int) row[columnName];////// ERRROR IN THIS LINE
Chart1.Series[seriesName].Points.AddXY(columnName, YVal);
}
}
DataGrid.DataSource = myDataSet;
DataGrid.DataBind();
// Closes the connection to the data source. This is the preferred
// method of closing any open connection.
myCommand.Connection.Close();
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
}
#endregion
}
}
is this thing you want....proper format i think
|
|
|
|
|
No this is the same thing you have post and I have requested you dont repost, just modify your last post.
Use pre tag in between you code block. Break the code in different section.
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.
|
|
|
|
|
posted ... plz help me out
actually im trying to connect the sql database to charts just im hindered by this ERROR... plz help
... really needed... i'll be very grateful thanks in advance
|
|
|
|
|
Hope you have resolved your problem. If you have some doubts please let me know
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hello solo,
re:
string columnName = myDataSet.Tables["Query"].Columns[colIndex].ColumnName;
int YVal = (int) row[columnName];////// ERRROR IN THIS LINE
I believe that you may be trying to cast a non convertible variable to an integer. Check the value of column name in the debugging mode. If it is indeed a number, so it can be converted to an integer, the use the following code:
intYVal = Convert.toInt32(row[ColumnName].toString());
This should return the correct integer value.
Best Regards, Pat
|
|
|
|
|
solo_gaurav wrote: string columnName = myDataSet.Tables["Query"].Columns[colIndex].ColumnName;
int YVal = (int) row[columnName];////// ERRROR IN THIS LINE
Put breakpoint over here. Now Check what is value of columnName and What does row[columnName] Returns.
solo_gaurav wrote: Exception Details: System.InvalidCastException: Specified cast is not valid.
The Stack Trace Clarly says there is problem with Type Casting. So Please checkk the value for that line.
[Edit]
1.While debug please check for all item inside the for-each loop
2. Never put Keyword Like Urgent in subject or any where on the post. If some body knows the answer will definately give you.
[/Edit]
Please mark it as good answer if its helps you
Thanks !!
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
modified on Thursday, July 23, 2009 5:22 PM
|
|
|
|
|