Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert doc file to pdf file using itextsharp? Pin
sush829-Jul-10 1:46
sush829-Jul-10 1:46 
GeneralRe: How to convert doc file to pdf file using itextsharp? Pin
Eddy Vluggen29-Jul-10 2:32
professionalEddy Vluggen29-Jul-10 2:32 
GeneralRe: How to convert doc file to pdf file using itextsharp? PinPopular
OriginalGriff29-Jul-10 1:35
mveOriginalGriff29-Jul-10 1:35 
AnswerRe: How to convert doc file to pdf file using itextsharp? Pin
Richard MacCutchan29-Jul-10 0:59
mveRichard MacCutchan29-Jul-10 0:59 
QuestionSmall Problem in Windows application.... Pin
Krishna Varadharajan29-Jul-10 0:25
Krishna Varadharajan29-Jul-10 0:25 
AnswerRe: Small Problem in Windows application.... Pin
Eddy Vluggen29-Jul-10 0:53
professionalEddy Vluggen29-Jul-10 0:53 
GeneralRe: Small Problem in Windows application.... Pin
Krishna Varadharajan29-Jul-10 1:26
Krishna Varadharajan29-Jul-10 1:26 
AnswerRe: Small Problem in Windows application.... Pin
Richard MacCutchan29-Jul-10 0:57
mveRichard MacCutchan29-Jul-10 0:57 
QuestionDos Copy Command Pin
M Riaz Bashir28-Jul-10 23:52
M Riaz Bashir28-Jul-10 23:52 
AnswerRe: Dos Copy Command Pin
Simon P Stevens29-Jul-10 0:16
Simon P Stevens29-Jul-10 0:16 
GeneralRe: Dos Copy Command Pin
M Riaz Bashir29-Jul-10 0:18
M Riaz Bashir29-Jul-10 0:18 
QuestionDisable Excel opening Message in C# [modified] Pin
Mugdha_Aditya28-Jul-10 20:15
Mugdha_Aditya28-Jul-10 20:15 
Questionunicode conversion Pin
varsh1228-Jul-10 19:43
varsh1228-Jul-10 19:43 
QuestionFixed width text file column selection control Pin
cvogt6145728-Jul-10 11:18
cvogt6145728-Jul-10 11:18 
AnswerRe: Fixed width text file column selection control Pin
Roger Wright28-Jul-10 20:06
professionalRoger Wright28-Jul-10 20:06 
GeneralRe: Fixed width text file column selection control Pin
cvogt6145729-Jul-10 3:19
cvogt6145729-Jul-10 3:19 
QuestionHow to get signal strength of multi-AP from wireless net card using c# Pin
pandazhao28-Jul-10 9:27
pandazhao28-Jul-10 9:27 
AnswerRe: How to get signal strength of multi-AP from wireless net card using c# Pin
Roger Wright28-Jul-10 20:03
professionalRoger Wright28-Jul-10 20:03 
GeneralRe: How to get signal strength of multi-AP from wireless net card using c# Pin
pandazhao29-Jul-10 1:32
pandazhao29-Jul-10 1:32 
QuestionMessage Removed Pin
28-Jul-10 5:57
professionalalleyes28-Jul-10 5:57 
AnswerRe: Using assembly information from a different assembly Pin
William Winner28-Jul-10 10:37
William Winner28-Jul-10 10:37 
GeneralRe: Using assembly information from a different assembly Pin
alleyes28-Jul-10 10:56
professionalalleyes28-Jul-10 10:56 
GeneralRe: Using assembly information from a different assembly Pin
Pete O'Hanlon28-Jul-10 19:24
mvePete O'Hanlon28-Jul-10 19:24 
Questionproblem using dataRelation in dot net Pin
Dhyanga28-Jul-10 4:17
Dhyanga28-Jul-10 4:17 
I have been trying to solve the problem related with using dataRelation but still couldn't figure it out. I hope somebody can help me with this.

I have two repeaters used one nested another.
part of code is shown below:

void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
       {
           RepeaterItem item = e.Item;
           if ((item.ItemType == ListItemType.Item) ||
               (item.ItemType == ListItemType.AlternatingItem))
           {

               Repeater2 = (Repeater)e.Item.FindControl("Repeater2");
               DataRowView drv = (DataRowView)item.DataItem;
               Repeater2.DataSource = drv.CreateChildView("categoryItem");
               Repeater2.DataBind();
           }
       }

This categoryItem is from this code:
objDA.Fill(ds);
            DataColumn c1 = ds.Tables["category"].Columns["ID"];
            DataColumn c2 = ds.Tables["Item"].Columns["catID"];
            dRel = new DataRelation("categoryItem", c1, c2);
            ds.Relations.Add(dRel);
            Repeater1.DataSource = ds;
            Repeater1.DataBind();


And the error message is:
 Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 1222:            objDA.Fill(ds);
Line 1223:
Line 1224:            DataColumn c1 = ds.Tables["category"].Columns["ID"];
Line 1225:            DataColumn c2 = ds.Tables["item"].Columns["catID"];
Line 1226:            dRel = new DataRelation("categoryItem", c1, c2);


Well the "ID" of table "category" is the foreign key in "item" table and that foreignKey name in the "item" table is "catID".

Any help will be appreciated..

I really need some help in this.
suchita

AnswerRe: problem using dataRelation in dot net Pin
freakyit28-Jul-10 4:26
freakyit28-Jul-10 4:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.