Just worked it out: System.Reflection.MethodBase.GetCurrentMethod.Name
Jason
Just worked it out: System.Reflection.MethodBase.GetCurrentMethod.Name
Jason
I'm trying to log errors to a log file and I want to write the name of the function/sub where the error message occurs to the text file. eg private sub DoOperation() . . . if errorOccured then LogError(subName) end if end sub
is this possible? I'm using VB.NET writing an ASP.NET Application with .NET 2.0 (VS2005)
Jason
the code you want is frmNewBooking.txtDateOfPerformance.TEXT = dtpPerformDate.Text
you're reading the text out of the DateTimePicker and then you need to assign it to the Text Property of the Textbox. Textboxes are more than just text - they have other properties available
Jason
so how is this done? I already have my datatable (tblMergedContactsAndCompanies). I want to add a new column at index 0 and then read through all the rows in my datatable and assign an icon depending on Type (Contact or Company) and then display this in a datagrid. I can add the icon column to my datatable, but when I display it in my datagrid, it is at index(datatable.columns.count).
Dave Kreskowiak wrote:
In order to do this, you'll have to create all your columns, in the order you want, and add them to the grid.
Are you saying that I have to create a new datatable, read the columns from my original datatable in, and then read the data in? :doh:
Jason
I'm setting it as my datagrid datasource. I'm reading data from several sources in my database. Based on the type of data I'm reading (whether it is Contact data or Business data etc) I wanted to add an icon column to my datagrid. This works fine, except the icon is the last column in my datagrid, I want it to be the first. I assumed that I would do this at the datatable level, not at the datagrid level.
Jason
I have a datatable that I have retrieved from a database (w00t!) now I am trying to add a column to this datatable, but the add
command only allows me to add a datacolumn to the end of the datatable collection :| I want to add my new datacolumn to the start of the datatable (or potentially at any index :~ ) and I haven't been able to figure out how to do this. Any hints? Thanks in Advance,
Jason
ok, I found one that seems usable There doesn't seem to be a .NET 1.1 version of a web browser, but there is a Microsoft Web Browser COM component that I can add that does what I want. Thanks for your help Christian :-D
Jason
is this a standard control? I can't find it in my toolbox. I am using VS2003 and .NET 1.1 (thanks for the quick response! :cool:)
Jason
Hi all, How would I go about viewing a website inside a windows form? I don't want to launch Internet Explorer because I need to control the toolbars displayed, without affecting a user's settings. Is there a built in tool for this, or a free third party tool, or a tutorial or a technique that I can use? Thanks for anything you give me
Jason
are you talking about the one in SQL Server Reporting Services? when a report is loading? Jason
use Cultures Jason
it doesn't have to be recursive: if the size of the column is not 0, then resize the column if the size of the column is 0, then exit the function Jason
Hi All I've created a pretty basic update command that uses oledbparameters that runs successfully. However, it locks the entire database (ie: no one else can use the Access database while the query is running) Also, if the database is open in MS Access, my query fails because the "file is already in use" what can I do to stop this. Can I specify a level of locking to use - optimistic, pessimistic, etc Thanks for any advice Jason
Chetan.visodiya wrote:
in every table tag
just put that into your css file. Saves you having to put it all over the place Jason
This is perfect :) It is even case sensitive :cool: Thanks alot Jason
This is cool. Although I suppose you would actually want to navigate to a printer-friendly page before you print, then on page.load you would call window.print(); ? Jason
My version of Access 2003 has become corrupt. I tried to uninstall just that section of office and reinstall it. No luck. Tried to uninstall office, and reinstalled, but no luck there either. All my settings and presets were restored with the reinstall so I suspect the problem lies there. Everytime I try and open a .mdb file (any mdb file) Access crashes and asks whether I wish to repair the database. Repairing the database does nothing. Any suggestions\hints - other than a reformat\reinstall, which I can ill-afford at the moment. Jason
Hey all I have a textbox with a max length of 5 the first three chars must be uppercase letters between [A-Z] the final two chars must be between [0-9] I am trying to do this as a regex function in the onChange Event using Javascript, but my Regular Expressions aren't very good. currently I split the textbox.text into two string variables str1 = orgID.substr(0,3); // first three chars str2 = orgID.substr(4,5); // last two chars
Then I run a (very) simple regex expression on each of these substrings. How would I do this formatting without breaking orgID into 2 substrings? Thanks for help Jason -- modified at 20:23 Monday 10th April, 2006
you have to use a namespacemanager. xmlns stands for XML Namespace. Once you add the value to the namespacemanager then you can use xpath.
dim namespaceManager as XmlNamespaceManager
namespaceManager = new XmlNamespaceManager(xmlDocument.NameTable)
namespaceManager.AddNamespace("oasis", "urn:oasis:names:tc:DSML:2:0:core")
Then when you use xPath, you have to use your custom namespacemanager, and everything should work fine. Jason
I love being an Aussie - we are the only possible people who could get away with calling that place a 'shack' :-D /jason