Jump to content
Xtreme .Net Talk

bri189a

Avatar/Signature
  • Posts

    1014
  • Joined

  • Last visited

Everything posted by bri189a

  1. I don't understand what you are trying to do - it looks like you're trying to set the key that was was pressed from the event args - which you can't do. If you're simply trying to test if the 'period' was pressed you should: if(Convert.ToInt32(e.KeyChar)==Convert.ToInt32('.')) { //Do whatever } If Convert.ToInt32(e.KeyChar) = Convert.ToInt32("."c) Then 'Do something End If
  2. Use the macro function in Word to do the action, and then look at what the macro produces. This is the easiest way to find the right sequence of steps.
  3. Well {0:C} is currency Try: DataTextFormatString = '{0}"' Also you would set this property for the data list only once before the loop (after the if), not during - this is causing you to reset the DataTextFormatString for drpWidth over and over again to the same thing - it will be reset X amount of times where X is the amount rows in your reader and throughout the whole thing the value will never change so you're just wasting processor.
  4. Unfortunately problems like that are a pain because they lie in source code (IE for XP) that you don't have access to. Not to mention while for the lazy developer it's nice, IE isn't W3C compliant (not that any browser is 100% compliant, but it's one of the worst) makes it all the more fun to debug problems on IE. Now if you populate the select manually it sounds like you don't have an issue since you said it appears to be just when javascript does it. Can you write an 'alert' of what javascript is about to add to the select element to see if maybe it's throwing in a bad tag or not closing a tag or some weird thing like that? It may be something along those lines where XP IE 6 isn't as forgiving on tag closures as W2K IE6 is. Also have you downloaded the latest SP for IE6 - it may be a bug that has been fixed.
  5. Short on time so couldn't read the whole post but if your looking for something that can parse and find things in a long string really FAST look at Regular Expressions (a.k.a. REGEX)... I'm not an expert on them, but for finding 'matches' or 'patterns' it's unbelievably quick.
  6. Possibly the folder your running off of isn't configured as a virtual folder with script permission too - one of my virtual servers had that issue once - they're 'set up' script had failed but it didn't notify anyone...it wasn't until I uploaded that I was able to find that out.
  7. Beat ya PD! :)
  8. It's not a bug with asp.net. It's a bug in the browser if it's a bug at all. The browser parses the html - if doesn't know that a <select> tag should scroll if it has more than 8 items - that's not .NET fault. You would have the same error if it was a static html page. Was this on a particular browser or on IE?
  9. What is the problem you are having? Is there a specific error being generated? Will the application not start because of a web.config parser error? How does the problem even vaguely relate to sending strings back and forth to SQL 2K...and what does that even mean? In line SQL? Connection string? Some details are needed before anyone can help you.
  10. Alternatively as the error page initially loads you can store the url referrer in view state and then when they click the button direct them to what is in the view state for the previously saved url reffer.
  11. in the above, what does the variable temp hold?
  12. Hmmm...IIS might have something - in ASP directly I think your best bet (and other please chime in if you have ideas so my knowledge can grow too), is to do the following: 1. Have an integer that is specified to store the number of users that is stored in an application variable. 2. In the global OnSessionStart increment that value. 3. In the global OnSessionEnd decrement that value. I think this has some down falls though but I'm not sure on them. Hopefully someone can provide better enlightenment, but this should get you started.
  13. What do you mean it doesn't save? You say it's saving to the database...that's a pretty clear case that it did save?... You mean the datagrid isn't updating? You should always rebind after altering information.
  14. myInt = myChap.Length + 1 or myInt = myChap.Count + 1
  15. You might be able to manipulate JavaScript RPC to do this - might be tricky though - there's a framework out there called AJAX that is built upon JavaScript RPC fundamentals. Microsoft is coming out with Atlas that is the same thing and rumored to be in the next version of .NET coming later this year. Google JavaScript RPC or AJAX and you'll find plenty of information...getting it to work with the <object> tag might be where the tricky part comes in though; I've only seen it used in 'text' based contexts so far - but anythings possible if you want to spend enough time on something. :)
  16. The compiler makes VB modules into a specialized class; so you can just use a class in C# since that's what you're doing in VB but just don't know it by looking at the code.
  17. You know what's sad, is after reading several posts already that were 'seriously' asking the same type of general vague question, that it actually took me a minute to figure out someone was joking about others posts. Nice. :)
  18. Why don't use just use javascript and use the onselectchanged or whatever event it is? If you need it to specifically post back then you could open a new window with a query string in the link; hash it if you're worried about alteration. And yes you could use a session variable. But you need to keep in mind; what happens to that session variable when they close the page - will it be used somewhere else by the application? Will it cause bugs if it isn't cleared because the user didn't follow the work flow you thought they would? How big of a chunk of memory that this 'Session' variable going to take up? Multiple this times the maximum number of expected users...will this cripple the server memory? Always be careful about how you are using Session.
  19. What do you mean by 'secure'? That's a vague statement: Secure the data so it isn't intercepted accross the network? Using https and encrypt the contents. Keep certain users from accessing where data that the values are stored at? Read about database security for whatever database your using. Another meaning to secure?
  20. ASP.NET does not have read/write permission to the folder you are storing it in. It needs read permission for obvious reasons, it needs write permissions to create the mdl file that is created whenever you open Access. This is why it probably works on your local machine and not your server.
  21. You would be smartest to use Active Directory. This way you can get their first name and last name and email and any other pertinant information that they keep in Active Directory. If you domain is not using AD then they should question why they have 2K3 Server. :) Also for future reference, what you get from Context.Current.Identity.Name is the SAM Account Name is how it's referred by; somewhere else it may be domain/lastname-firstinitial or some other variation.
  22. That's a pretty worthless post - it tells us nothing. Have you checked that bm.Current is index a DataRowView or that it is even set? That is the problem with CType and why you should use DirectCast - if bm.Current isn't of type DataRowView you would get a casting exception which would be much more informative.
  23. I think the problem lies in the fact that common sense say FixedHeight and FixedWidth means that the control won't resize...that was my thoughts at least. But from the below text from help documentation is more of 'Don't resize the control because of font changes or any other system auto resizing'. Just an example of bad naming convention. FixedHeight: If true, the control has a fixed width when auto-scaled. For example, if a layout operation attempts to rescale the control to accommodate a new Font, the control's Width remains unchanged. FixedWidth: If true, the control has a fixed height when auto-scaled. For example, if a layout operation attempts to rescale the control to accommodate a new Font, the control's Height remains unchanged.
  24. That's exactly what I did Dan - had a constant that defined the width and height.
  25. Yeah, that was a interesting set of posts, and I don't mean to intrude on your appology - it's good that you can recoginze that about yourself; I have the same issue at times. Here's a working example that doesn't resize in case you still need it. I just over-rode the OnResize property and cut and paste that code Dan had mentioned on the control. Visual Studio Projects.zip
×
×
  • Create New...