User Profile
Collapse
-
Ok, thank you all for your help, i think I get it know. All help has been useful. //Kent -
Ok, thank you all for your answers, I learned something knew from it. At the moment I am not sitting behind a computer with Visual Studio installed so what I say now is just a thought. - I guess that it should be possible to inherit one class to another like Class2 : Class1. But is it possible to inherit from built in classes? Something like this Class1 : DataTable Is that possible?
//KentLeave a comment:
-
Can constructor return values?
Is it possible to create class constructors that return any value? Like return something; in functions.
Here is an example
//Kent
...Code:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; namespace WebApplication1 { public class Class1 { public Class1() //This does not -
oops
My own failure, my report path was pointing to the bin\debug path (Application.St artupPath & "\" & "rptPerson.rpt" ) . But my reports are directed to the project path. So ofcourse my changes wasn't reflected. I changed tha path and everything is working now. //KentLeave a comment:
-
Crystalreport design changes doesn't work in runtime.
For some reasons that I don't understand all my design changes won't show up when I hit F5 and run the application. I can put how many new fields and labels with som "hello" text that I wont but they are not displayed at runtime. But all database changes the report i connected to will be displayed.
How can that be? What is wrong with my report when all datachanges runs thru but not my design changes?
I am using... -
Ok that makes it clearer. I will look at the resourcesmanage r, it might work. 1 of 2 problems perhaps solved. If the last modified user is not saved i guess i can cheat and store the user who last uploaded the file. Because it is a user accessed Intranet (demands login).If uploaded it should be modified and not only accessed to read.
//KentLeave a comment:
-
DirectoryInfo and file attributes
I am using an instance of DirectoryInfo to browse and retrive the files and some file attributes on a physical directory. This is displayed in a html table. But if you have for example text files (.txt) or word dokuments (.docx) How can I display the correct icon that is associated with the file in my html table? And further on how can I reach the user who modified the file the last time? Where is that info saved?
Is the DirectoryInfo... -
Sorry if I am confusing. My problem is that for every loop in my While statement I will have to do the same db call to read the same posts that fill my DropDownlist.
In my skeleton code it would be five db calls. If you could read from the db once above the while loop and copy my DropDownList from there I would “save” four db calls, and some program over head. But I have found a workaround for it with the ListItemsCollec tion. My...Leave a comment:
-
No it was of old habit I wrote that way. It vill be a .net dbreader. But it still does not answer my question, it must be possible in some way to effective my code,Leave a comment:
-
How to effective DropDownList code
I have an Web application that retrieves some db info and send it out to an html table. All created on the fly in vb code behind. For every post (row) in the db I also fill puts an instance of a Dropdownlist with items read from the db.
That means that for every row I read from the database I read the same db info into the Dropdownlist (see the skeleton example below).
A lot of overhead I think. It must be possible to create...
No activity results to display
Show More
Leave a comment: