The -1 means the database driver does not support record-counts for record sets.
A quick way of achieving a record count is to use the recordset GetRows() method to extract the data into a two-dimensional array. Then you can do Ubound(arr, 2) to get the number of elements in the 2nd dimension.
i want to change background of my web form at run time using C# code in Asp.net web application.
By using HTML tags i can do it like using "document.body.background"
but i want to know how to use it in C#.
Not exactly what I want it to do beacuse then you still have to specify the table height in pixels. What I need is the table to be centered, when the screen resolution is chnaged to smaller it doent show scrollbars in the window.
I am trying to export contents of Repeater Control data to excel file...which also contains a check box in one of its columns...
but i have export without that checkbox control column..
how can i do it..pls help (ASP.NET/C#.NET)
hi, very very urgent. i am using crystal report on a web form. on the same web form i am also using a toolbar from evolve software. i invested a lot time with both controls. everything worked fine until i got instructions that in evolve toolbar i must use a dropdownlist to chose data. evolve toolbar has no dropdownlist object, so i have to use ControlContainerItem to add dropdownlist to toolbar. problem is when i add it to evolve toolbar and click on navigation buttons of crystal report toolbar, it does not work. i mean i click on next button and can navigate to next page but when i click again on next, it remains on same page and so on. so i can navigate only one page further and then no more. crystal report toolbat get this problem only if i add dropdownlist control to evolve toolbar. if i do not add, crystal report toolbar works very fine and i can navigate until last page. i can take another toolbar instead of evolve toolbar but i have invested a lot of time in using evolve toolbar and right now i have no time to take another toolbar and investting time to first understand it and then use it. so please help me to explain why crystal report toolbar is behaving so stupid. follows is the web page with code behind.
I really hope somebody can help me here, this is wrecking my head...
Our application is sending emails through CDO (from asp) and we have recently had the requirement to send these mails in foreign character sets (greek specifically in this case). So i am setting the mail encoding like so:
With objMessage.Bodypart ' Initialize the bodypart to support UTF-8
.ContentMediaType = "text/plain"
.Charset = "utf-8"
.ContentTransferEncoding = "8bit"
On my development system (XP, which has been set to all Greek at present, just to confuse me), i send the email and everything is fine. On our test system (Server 2003, also all greek), everything but the subject line of the email is fine...
When i look at the source of the emails from either system, the email from the test system is missing the encoding (?utf-8?) markup around the subject text.
Does anybody have any idea why this might be happening...?
I have been looking for free SSL snippets to use on my webpages, but I am finding it extremely difficult? The paid ones are abundantly available! I thought the purpose of open source code is for the public to continually criticise to make it even better.
-- modified at 12:25 Thursday 29th March, 2007
Last Visit: 31-Dec-99 19:00 Last Update: 1-Dec-22 0:54