exhaulted
Posts
-
Threading Concept. -
MCSD 70-316 examShort of piracy you will find that a very difficult thing to achieve. If you are willing to pay for the questions then i would highly recommmend the Transcender practice exams.
-
Alternative To iTunes?I use sharepod running directly off my iPod and it works great, highly recommend it to anyone! :-D
-
What am i missing? Tables in my DataContext do not have Add or Remove optionsPretty much what it says in the title, i must be missing something obvious. My "tables" inside my datacontext do not have Remove or Add functions, for example i would like to do something like...
MyDataContext db = new MyDataContext()
db.Clients.Add(myCleint);
db.SubmitChanges();but the Add function is not available to me in the db.Clients object. Anyone able to shed some light on this?
-
LINQ DataSource and Foreign KeysWell i figured it out and the problem was with my Eval statement, nothing to do with LINQDataSources or the gridview. Eval("User1.UserName") is how it should be done instead of Eval(User1.UserName). I thought the days of missing ; or " off your code were long gone but obviously not :laugh:
-
LINQ DataSource and Foreign KeysHi all, i've probably just missed something amazingly simple but.... I've been watching the tutorials based on Scott Gu's blog and the tutorial on binding a GridView to a LINQ datasource (video 4 i think) would really save me loads of development time while i'm creating prototypes for a project, if i could get it to work. An example table structure is as follows Customer ID (int) CustomerName (varchar) UserID (int) User ID (int) UserName (varchar) Now, as you can see, the userID field in customer maps to the user table quite nicely. I create a LINQ to Sql dbml file and drag the two tables into the page and i get a relationship created for me. Next up i create a LinqDataSource pointing at the Customer table with the * box ticked to select all columns. Then i bind a GridView control to the LinqDataSource and run the app, everything looks OK but i get the UserID int where i want the UserName. In the code behind file i can create a new Customer object (cust) and use the following to get at the username
cust.User1.UserName
but if i bind an itemtemplate field on the datagrid to this withEval(User1.UserName)
it doesn't work, i get the error message "User1.UserName was not found on the selected data source." I have tried User.UserName as well but to no avail, anyone have an answer for this? I'm running a web app in C# if it makes any difference :-D -
ASP Shopping Cart [modified]Anyone able to point me in the direction of a good tutorial for an online shopping cart in ASP / HTML? [edit NOT asp.Net] Cheers Kev -- modified at 17:05 Monday 19th June, 2006
-
Scissors removed from patient's stomachsix-kg tumour I guess when you've been walking around with sonething like that inside you, it's understandable to not notice a pair of scissors, kind of! Kev
-
Web Setup ProjectsHi All, I've got several projects in a solution including 3 setup projects to build msi's. For arguments sake lets call the projects
Business Layer InternetPresentationLayer OtherPresentationLayer BusinessLayerSetup InternetPresentationLayerSetup OtherPresentationLayerSetup
The 3 setup projects point to the output, content files and Localized Resources of the relevant project. This all works great except.... Sometimes my InternetPresentationLayerSetup projecty changes itself to point at the OtherPresentationLayer's output content etc I change it back and it's fine for a while but soon points itself at the wrong project again. Anyone else experienced this or anyone got any ideas about how to fix it? Cheers Kev -
Displaying the system menuI don't know how to tie into the windows system menu but the options contained in it would be very simple to write in your own context menu that you could display when the picture box is clicked. Kev
-
How to use Pay Pal Pro [Urgent] -
MDI data storage in XMLYou'll have to be more specific, what happens when your write function is called? are any exceptions thrown? Maybe show some code?? If you don't give details then no one can help you:-D Kev
-
Conversion to xmlif everything is going to be space delimited then it's definately possible.
string s = "abc=100 bc c=50 def=20"
string[] strings = s.Split(" ");This will give you an array of xml elements split at each space " ". Then you've just gotta go through each one and work out whether or not it has an operator and create your xml file. Just make sure that the only spaces in the string are between elements, if you need spaces elsewhere then use a different character like a comma.
string s = "abc=100,bc,c=50,def=20"
string[] strings = s.Split(",");Cheers Kev
-
how to get items count <b>OF</b> an Enumaration?It wasn't clear at all, i assume you are after the number of options in a specified enumeration??
string[] enumCount = System.Enum.GetNames(typeof(myEnum));
MessageBox.Show(enumCount.Length.ToString());That should give you what i think you're after. Cheers Kev
-
Fill Data in PDF file through ProgrammingTry contacting the people you got the editor from and see if they have a command line option for inserting the text you want, then you can call it from your Process.Start as above. Kev
-
Web Application Organised File StructureTry asking in the web development forum rather than the C# one, more chance of you getting the answer you're after Kev
-
System.TypeI'm not sure what you're trying to do but you can get at the sql datatypes using the
System.Data.SqlDbType
enumeration. Kev -
Prevent Multiple FormsHave a bool value and set it to true when the export object is created.
bool exportCreated = false;
private void View_Click(object sender, EventArgs e)
{
if (!(exportCreated))
{
Export export = new Export();
export.Show();
exportCreated = true;
}
}Until you set exportCreated to false a new export object will not be able to be created. Cheers Kev
-
File Access over a UNCHi folks, anyone know how to access files using a unc name and a fileStream? The user will have to provide the correct login details on a form i have created but i don't know how to create the connection to get at the files. Cheers Kev
-
Mapping a Drive at runtimeYeah i found that. The example i gave was from the comments section of that article. The class used in the article requires you to provide a drive letter. The ideas used in the comments section at the bottom of the article givesa a way of doing it without using a drive letter but i can't get it to work. All i want to do is access some files using a unc name and the relevant login cridentials. Cheers Kev