
huby
Avatar/Signature-
Posts
32 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by huby
-
hello all! i need to sign and encrypt an e-mail message (using a certificate in the certificate store) and send it using C#2005. this is very confusing, as i found all required resources on msdn2 to sign and encrypt a cmsEnvelopedMessage, but i cannot find how this relates to an e-mail message (System.Net.Mail) in an older vb6 version, we used CAPICOM, but aren't able to get it to work for the .NET 2.0 framework ... is it worth looking into, or is CAPICOM obsolete at this point ? any hints/tips/links are welcome ... thank you! Huby.
-
hey everyone! i would like to launch a .NET assembly from vbScript. example : Dim obj set obj = CreateObject("BusinessLogic.CDataLoader") where BusinessLogic is a .NET dll, strong-named, and registered in the GAC. it seems vbscript looks for a COM component, as it tells me "ActiveX component can't create object: 'BusinessLogic.CDataLoader'" any hints? thank you, Huby.
-
howdy folks! i have a little problem, and am looking for suggestions and insights. we're developing a prototype application for one of our customers; the idea behind the prototype is that one client application will "simulate" many clients and make calls on a web service, using actual implemented web services. we want to see how much stress the server can take, and optimize the code, iis configuration, and so on. the client generates x threads, and each thread makes y calls to the server. each thread has a cookiecontainer which allows us to make several calls within the same IIS session. the server gets some data from a SQL server, and returns a dataset. nothing fancy (so far, but it will evolve within a more complex architecture) so far, everything is working ok, but we're not really satisified with the results. the client cpu, when launching 500 threads, is at 30%, while the server cpus are also at 30% ... (network traffic is about 2% so it's no lan bottleneck) so this puts everything back in perspective, from the threaded approach, to the cookie container, to the way web services are called, to the choice of web services themselves ;) i need to push the server close to its limit (and it's a big machine, too ... ) a few details : - VS 2003, .NET framework 1.1 - c# client application - threads are declared in an array, and each thread is started with the Thread.Start() method - web proxies are generated with "add web reference ..." from visual studio - web methods are called synchronously - logging is done using .NET tracing - global varables are stored in a "shared memory" (singleton) class. project is confiential, so i can't post any actual code (sorry) but it must be highly performant, both on client and server. even if it implies more code. current ideas for changes : - asynchronous calls to web services ? - use protection and lock mechanisms for threads ? mutex ? - remoting ? - no threading ? maybe the cpu is constantly switching contexts ? - better way to share globals between threads ? (i need them to display statistical data about execution times) thanks for any insight and suggestions. i've never had to do any performance-driven apps before so i'm learning a lot of stuff as i go, especially about threading, so there might be some important notions that i'm missing. have a good day! huby.
-
you using c# or vb.net ? in c#, remeber to use ToString() : while (myReader.Read()) { myName = myReader["name"].ToString(); }
-
if your main page is doing a postback, maybe the dynamic control isn't re-created yet when you pass the value? try using a session variable for the value you pass from a page to another just a thought ...
-
http://www.asp.net/faq/AspNetAndIIS6.aspx
-
do you use the same user name on both machines ? because "my documents" won't have the same path if the user names are different ;)
-
ASP.NET uses a windows account, named ASP_USER or something like that. if you want to access c:\somethingelse, you have to set folder permissions so that ASP.NET actually has access to the folder. by default, ASP_USER only has access to c:\inetpub but it's not a very good idea to do that. try to keep your web applications all in the same place ... or set your application virtual directory to c:\somethingelse
-
in windows server 2003, ASP.NET is disabled by default (for security reasons) so you have to tell IIS that running of ASP.NET pages is allowed.
-
lol i just logged on to tell you it works, and that is exactly how i solved it :D thanks anyway !! huby.
-
yes, i do :( i followed the process step-by-step and the calendar control always returns the value '1/1/1' ... i suppose it loses its value on Postback, but i don't know how i can have him return the date i actually clicked ... thank you for the reply, any more hints are more than welcome !! peace, Huby.
-
hello everyone! i am trying to use a calendar control. basic function, really. i want to click on a date, query a database for events for which the date is the same, and then display the events. my problem is that i can't find the way to extract the date from the calendar control to pass it as a parameter to my sqlcommand object. i set a breakpoint on the SelectionChanged sub, but when i run it, my code never actually stops at that event. ok, here's some code : private DateTime _dt; private void Page_Load(object sender, System.EventArgs e) { //on first execution, we just use today's date if (!this.IsPostBack) { _dt = DateTime.Now; } LoadEvents(); } private void LoadEvents() { string strSQL = "Select * from Events WHERE eventStartDate = @date order by eventStartDate asc"; SqlConnection conn = new SqlConnection(myConnectionString); conn.Open(); SqlCommand cmd = new SqlCommand(strSQL,conn); SqlParameter prm = new SqlParameter(); prm.SqlDbType = SqlDbType.DateTime; prm.Size=8; prm.ParameterName = "@date"; prm.Value = _dt; cmd.Parameters.Add(prm); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { Response.Write(dr["eventTitle"]); } dr.Close(); conn.Close(); } private void Calendar1_SelectionChanged(object sender, System.EventArgs e) { // this code is never executed ... is it in the wrong event ? _dt = Calendar1.SelectedDate; } yes, i'm using code-behind. any hints are welcome. thank you !! Huby.
-
hello ! i use the system.drawing library to make thumbnails at runtime (for an online photo album. the idea is that the user can drag/drop a folder of images on the server via ftp, and it gets integrated automatically in the album), no problem. however, i'd like to NOT save my files to disk, but instead just output them as hyperlinks on my ASP.NET pages. but i can't find the link between the bitmap object, and the image control. maybe there's no way, but i'd like to know ;) peace, Huby.
-
has anybody used/purchased/tried a smartphone device ? i recently sold my iPaq because it didn't have bluetooth or wi-fi, and now that i am looking for another one, i might as well go for a smartphone. i saw one in a store, but i am puzzled by the size of the screen, which i find quite small ... i also find it quite expensive at 550 euro, but i guess if it's a phone + a PDA, it may be worth it ... as long as i don't lose it :D any thoughts are welcome. peace, Huby. ps : i know it's a bit off-topic, but i'd rather ask here, because elsewhere people will just tell me "stay away from it, it's got a microsoft OS !!" i KNOW it does and that's why i'm interested in one ;)
-
hey i'm trying to create some visual effects with asp.net. example of the kind of thing i'm looking for : http://www.softcomplex.com/products/tigra_hints/demo.html basically i want a small image, and an event (mouseover, or even click) to display that image in full-size without reloading the page or navigating to another page. i've tried using tigra hints, but it's a huge hassle, since my images come out of a DB, and i don't have the courage to create config files at runtime ... does an alternative exist in ASP.NET ? can i do it myself ? how do i get started on such a thing ? thank you ! Huby.
-
hello !! i am torn between controls : 1. an image can be resized at runtime, but cannot link to another page 2. a hyperlink can link to another page, but its image cannot be resized at runtime... so how can i have an image that i can resize at runtime, and have it be a hyperlink? any help, hint, link, hug, and sympathy is apreciated. have a great day !! Huby.
-
hello, i was wondering how restrictive animation is on aspx pages. i would like to have an imagebox that gradually becomes larger when the user hovers over it. is this possible, or do i have to go for flash animation ? thanks !!
-
howdy ! i have some issues using the "memo" data type in MSaccess (or even text files, for that matter) because when i load data in a textbox or label : 1. all my paragraph info is gone. the text appears as one big block. 2. a lot of special characters aren't displayed (é, à, and so on) i've tried tweaking with different types of encoding (ascii, utf8 etc) but that doesn't solve anything... anyone ? thanks for reading. hope your day is a fine one :D Huby.
-
hello ! i see a lot more websites have "custom" scrollbars, matching the colours of the website. can this be done in ASP.NET, or is it some javascript trick ? peace, huby.
-
hello, quick question : is it possible to use msAccess in a web application, using a relative path ? my client would like to manage his data locally with access, and update one single file via FTP when he feels like it (and the web application would read that file, obviously). the web app is not on my machine, nor his. it is within a hosting company. when i create a connection string to an access database, visual studio requires a full path "c:\ ...\data\db1.mdb" whereas i'd like to be able to set "data/db1.mdb" any hints on this ? is it possible at all ? thank you, Huby.
-
executeScalar doesn't return a dataset. it returns a single value. if you're only getting data from 1 table, why not use a dataReader to populate your dataset, adn then return your dataset ? (i'm not that advanced, so don't take my word for it ...) luck, Huby.
-
ok thank you ! sorry i know it was a newbie question, but i'm getting into ASP.NET without asy classic ASP background... LiteralControl is easy enough :D i used this syntax : ExpoPanel.Controls.Add(new LiteralControl("<BR>")); is that the shortest/most optimized way of using it ? thank you for the reply ;) Huby.
-
hello i'm trying to dynamically add a tag to an aspx page. i add labels at runtime using myPanel.Controls.Add(myLabel), and would like to insert "<BR>" between them, to space my data. what object/method should i use ? HtmlTextWriter ? how does that work ? thanx, Huby.
-
hello ! i'm trying to create a slideshow in ASP.NET. i have an image control and a timer control on a webform, and using those, + directoryinfo and fileinfo objects, i am able to change the url of the image every 5 seconds. however, nothing changes in the browser, even though the property values do change. how can i force the page, or control, to refresh itself ? thanks, Huby.