|
Thank you for your help , wish you all the best !
Regards,
Chee ken
|
|
|
|
|
No. Nor is this an ASP.NET question.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi all ,
private DataSet GetData()
{
string empquery = "select Empid,Ename from tbl_Employee";
string deptquery = "select * from tbl_Deprament";
con = new SqlConnection(connection);
dataSet = new DataSet();
try
{
con.Open();
sqlAdpter = new SqlDataAdapter(empquery, con);
sqlAdpter.Fill(dataSet, "tbl_Employee");
SqlDataAdapter sqlAdpter1 = new SqlDataAdapter(deptquery, con);
sqlAdpter1.Fill(dataSet, "tbl_Deprament");
dataSet.Relations.Add("child", dataSet.Tables["tbl_Deprament"].Columns["DeptId"], dataSet.Tables["tbl_Employee"].Columns["DeptId"]);
}
catch (Exception error)
{
LblError.Text = error.Message;
}
return dataSet;
}
Execption :'column' argument cannot be null. Parameter name: column
pls help me i am not getting the relation in tables are depatment:deptid,deptname employee is empid,empname,deptid
|
|
|
|
|
You don't fetch any column from tbl_Employee with the name DeptId . The expression dataSet.Tables["tbl_Employee"].Columns["DeptId"] returns null.
---
single minded; short sighted; long gone;
|
|
|
|
|
sorry not getting i am doing wrong in coding . pls let me know. is there any articals on this to populate treeview control using database using datasetrelations in asp.net 2.0
pls send the url
|
|
|
|
|
string empquery = "select Empid,Ename from tbl_Employee";
In the above statement u r not fetching the column deptid but u r trying to use this in this statement
dataSet.Relations.Add("child", dataSet.Tables["tbl_Deprament"].Columns["DeptId"], dataSet.Tables["tbl_Employee"].Columns["DeptId"]);
Here Columns["DeptId"] returns null
use string empquery="select * from tbl_Employee"
Koushik
|
|
|
|
|
|
hi all,
could someone explain me integrated windows authentication in asp.net ,
i could not understand the concept well,
Thanks
sri
|
|
|
|
|
mukkanti007 wrote: integrated windows authentication in asp.net ,
In this authentication mode, IIS supplies windows user credentials to ASP.NET. ASP.NET can validate this and allow the access. This mode is useful for intranet applications.
Hope this helps
|
|
|
|
|
i had made one integer type collection editor in web control library project.
the collection gets displayed properly at design time and i am able to add and remove items also but my problem is that value entered at design time does not effect the control at runtime.
Regards,
Ujjaval Modi.
|
|
|
|
|
Ujjaval Modi wrote: that value entered at design time does not effect the control at runtime.
I think you need to use some attributes to persist the collection data. After adding the items through collection editor, are you able to see it again when you click on the collection editor ? If yes there won't be any other problem.
|
|
|
|
|
values persist in the collection but do not get reflected at runtime.
my code for property is:
List<double> m_SectionValue = new List<double>(new double[] { 100, 150, 200, 300});
[System.ComponentModel.Browsable(true),
System.ComponentModel.Category("Funnel"),
System.ComponentModel.Description("The Value of each Section.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[PersistenceMode(PersistenceMode.Attribute)]
public List<double> StandardValue
{
get { return m_SectionValue; }
set { m_SectionValue = value; }
}
|
|
|
|
|
Ujjaval Modi wrote: [PersistenceMode(PersistenceMode.Attribute)]
Try changing this to
PersistenceMode.InnerDefaultProperty
|
|
|
|
|
i tried every mode of [PersistenceMode] but its not working with this.
|
|
|
|
|
Please help
Anybody knows where can I find the xml file that gets genrerated for of IIS7?
Nana
|
|
|
|
|
Refer to www.iis.net
Koushik
|
|
|
|
|
Hi ,
I have created win32 events using kernel32.dll in webforms.It is working fine in the local system.But when i am hosting in the Server i am unable to create the events.Can anyone help me in this regard.
|
|
|
|
|
This is working precisely because your client and server are the same machine. It won't work otherwise.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
there are some application which listen for win32 events on the same system where we are hosting the webpage,Still it is not working...........
will it work if we change process model in machine.config...............
|
|
|
|
|
For some reason, it tried to do this...
for A.cs
<br />
using ...<br />
public abstract class A : System.Web.UI.UserControl<br />
{<br />
<pre>
}<br />
for B.ascx.cs
<br />
using ...<br />
public partial class B : A<br />
{<br />
<pre>
}<br />
I run it and there is an error ....
Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
plz help, thank =)
|
|
|
|
|
Check the 'inherits' attribute at the top of the ascx, make sure it specifies the correct class, including namespace, that you're using.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Error:Could not load the assembly 'App_Web_wqcwjsz9'. Make sure that it is compiled before
|
|
|
|
|
hi sheena,
The problem you are having above is that the "/supplyweb" directory is not marked as an application, yet the \bin directory containing your assemblies is probably contained underneath it. As such, ASP.NET isn't looking for your assembly in the right place -- instead it is looking for it in the \bin directory underneath the root site/application on your system (note how the error message above starts with the text "Server Error in '/' Application").
To fix this, you should go into the IIS admin tool, right click on the /supplyweb directory and pull up its properties. You'll then want to make it as an application within IIS (by clicking the "create" button). The assemblies in the \bin directory should then resolve correctly.
Hope this helps,
Aavesh Agarwal
|
|
|
|
|
Is your application built with asp.net 2.0 ?
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
I also got same error in my project. And I am using Asp.net 2.0. Is the asp.net version is going to create any problem?
|
|
|
|