Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

Christer Claesson

@Christer Claesson
About
Posts
31
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Gridview column width
    C Christer Claesson

    Hello there I have a DataGrid with the width set as 100% and several individual ItemTemplates controlstyles width set to a fixed size in px. Now I want to set the last one to fill out the rest of the space. I thought the syntax for that was * however that does not work and I fail at google at the moment. Anyone have any ideas? Thank you for your help.

    ASP.NET json help question

  • Adding a tooltip to a datagrid row
    C Christer Claesson

    Hello there I'm currently working a datagrid and I would like to add a tooltip with an image if you move the rows. The image is bound to an article id that each row has. My idea is something like this: Create a method that gets the specific image url for a given article id. Use e.row.attributes.add to add a javascript that shows the tooltip on mouseover and removes it on mouseout. Will use the method to pass an argument with the image url to the javascrip However, after this I'm stuck. I'm having trouble to get a hold of a nice javascript that can take a image url as argument and show it. And I'm not completely sure if I'm on the right way either, especially as the images need to be different and loaded dymically for each row. Any suggestions what to do?

    ASP.NET javascript help question

  • Creating a database
    C Christer Claesson

    Hello there, I'm currently creating an application that will work as a workout journal. One part of this will be reporting your exercices. I will have a list of avaliable exercices which the user can choose one from and fill in the necessary information. Now, at first I thought it was easy with just two tables. One for each filled in exercice connected to a user and one for all avaliable exercices. However the problem is that while all exercices have a name they differ in other variables. Pushups for example are just repetitions, benchpress is repetition and weight, running is distance and length. Etc etc. How would I solve this in the best way? Having one table with all avaliable exercices and variables and just having NULL when the field is supposed to be empty? Splitting them up to different tables might be difficult as I would like to add new exercices without having to remake the database if I happened to miss one combination. Thank you in advance and hope you understood my rambling.

    Database database help tutorial question

  • Manipulating user settings in Windows with .NET
    C Christer Claesson

    Hello there I had this fun idea about writing a program were you can set rights on other accounts(if you are admin etc), and also list what accounts exists on the computer. Everything I intend to do you can already do in windows xp but I want to do it anyway and do it in my program instead. One example would be to set account x so you cannot login afer 10pm. Problem is, I know very little about what I suspect is needed to do that. I'm suspecting I will have to manipulate the windows shell in some way perhaps? Anyway, if anyone has any suggestions were I could start looking for information or suggestions how to do this feel free to reply. I know mostly c# but have played around with c/c++ and I guess I could learn it again if needed.

    .NET (Core and Framework) csharp tutorial c++ linux help

  • Warning that a file exists(file upload)
    C Christer Claesson

    Thank you for your reply. This custom control, is it open source and avaliable for others? Due to space issue I would like to overwrite files and not store double(or more) copies of each file. Regards Christer

    ASP.NET csharp asp-net database sysadmin help

  • Warning that a file exists(file upload)
    C Christer Claesson

    Hello there I'm building an application that will allow users to upload files to an online file manager of sorts. I've chosen to store the files in a database and so far I'm satisfied with the solution. However I've encountered a problem with the file upload. I'm using the built in file upload in asp.net 2.0. I would like to warn the user that a file with that name already exists and prompt a popup with an Ok(to overwrite) and Cancel(abort upload). This is the classic client/server side problem though I guess, but even if I've looked around for a solution for a while I have not found any. And I'm sure I'm not the first with this problem. Any suggestions/links on how to solve this? Regards Christer Claesson

    ASP.NET csharp asp-net database sysadmin help

  • Javascript size limit?
    C Christer Claesson

    I'm developing a page that uses a table and lists objects. Each object also have a tooltip which is created by using a javascript from here: http://migoicons.tripod.com/dhtips.htm I more or less add these in a javascript block:

    Text[0]=["The Title","This Tip has a title or caption"]

    and then use

    onMouseOver="stm(Text[0],Style[0])"

    on every object. The thing is that I have quite a number of objects and the Text[] will get up to 90+ and for some reason after 29ish the script just stops working. I'm wondering if there is a maximum size limit on javascript and if is is there a way to get around it? Or do you think the problem is something else?

    Web Development javascript css com tools help

  • Excel automation
    C Christer Claesson

    Hello there. I was wondering if anyone know if there exist a way to iterate through your named ranges? All I seem to find is: (Excel.Range)App.get_Range("test", Type.Missing); Where "test" would be a named range I've specified before manually. I would love to find some easy method like :foreach(NamedRange in ..) etc. So it iterates through all my previously defined names, for example test, test1, test2 etc. I'm also having large troubles actually getting the name "test" out of anything. rng.Name only gives the address to the range. I would like this because I want to iterate through all named ranges, sending the name of the range to a webservice and depending on what I would get back I would set a value. Right now I will need to code every specifik instance of them and that will make it harder to add things. Thanks Christer.

    C# testing tools tutorial question

  • Excel bookmarks?
    C Christer Claesson

    I am developing a plug-in to word that uses a webservice to take out information and insert it into bookmarks. For example I'm sending the bookmarkname "ProjectName" and the webservice retrieves the name of a particular project. But I need to do the same with excel, does it exist a way to bookmark cells? Preferably together. I could use search and replace, but as the templates are not only used for this I want them to be able to use them normally too and it feels very clumsy to search and replace something in each cell. I'm hoping that there exist some easier way so it will be more similar to the method I'm using with Word.

    C# wpf tutorial question

  • Replacing text
    C Christer Claesson

    I have some documents stored on a server, I want to use these as a template and populate them with some infromation from a database. At first I thought of automating Word, this worked nicely on my local machine when I tried it out as a normal winform. But then when I tried it on the webpage I got a "The message filter indicated that the application is busy" when I tried using it. I've looked around alot and found no solution for this, so I'm more or less ready to drop all the work I've done so far regarding this.(Iterated through bookmarks and replaced the text) Now I've been thinking that Word 2003 is saved as XML, so perhaps I could replace text in that instead. In the Word file I have certain keywords I want to replace, for example User = @usr then I would like to replace @usr with something from the database. Problem I have is that XML is a very big subject and I have problem figuring out if this is possible or not. I dont want to spend more days(wasted alot of days on learning how to automate word)if it is not possible(In a easy way). So, anyone have any tips how I can do or tips on what I should read up on. Or is it possible to use any other way of searching the text and replacing instances like that in a easier way?(We are talking about Word 2003 documents only, or if it is easy 2000 documents too)

    C# tutorial css database sysadmin algorithms

  • Forcing download
    C Christer Claesson

    Is there any way force download? ie so they dont get the option to open it in the Internet Explorer when they are downloading a Word document from my site for example.

    ASP.NET tutorial question

  • Word events
    C Christer Claesson

    Ah, true. I've been looking around and learning about addins now and they seem to be able to do what I want. Thanks

    C# question

  • Word events
    C Christer Claesson

    Hello I have a question about Microsoft Word events. I know it is possible to catch events cast in Word if you do something like this and start Word through your program. oWord = new Word.Application(); oWord.Visible = true; But is it possible to have a program in the "background" and when the user starts Word manually it starts to listen to the events? This sounds impossible to me, but would be nice if it was not :) Thanks

    C# question

  • Storing files
    C Christer Claesson

    Thanks for your advice, I think I will only index them in my database then. I have not found anything about Word yet, but if I find something interesting I will post it here. Might even make an article out of it.

    ASP.NET database algorithms performance question discussion

  • Storing files
    C Christer Claesson

    Hello guys and girls. I'm working on page that will store alot of word, excell and pdf documents(maybe some more types) and I'm wondering if there is any best practice to handle the files storage? Perhaps some links on it(I've searched around some but have not found anything) Should I put them in a database as blobs? Or should I store them in a "normal" file structure and perhaps index them in a database? Does it exist an easy way to search contents in word files? Searching only on filenames wont be enough probably.(I saw an article here but I think it was mostly concentrated on spidering the web, would it work in word files and how costly is such a spider in performance and space usually) Thanks in advance Christer

    ASP.NET database algorithms performance question discussion

  • Multiple files upload.
    C Christer Claesson

    Hello I will build some sorts of webpage that handles documents of different sorts, I have not started at all yet only scouted out different ways of doing it. But one big problem I've found this early is that it seems very hard to make it possible to upload several files at ones. It will be impossible to choose one by one and upload them, because there might be for example 20 pictures at ones. The solutions I've found are: ActiveX Does it exist any free control that can provide this funktion, I have search but not found any. This might sound like a silly question, but how hard would it be to hrm learn to code ActiveX and code one myself? I have some experience with C# and ASP.net but my time is limited. I've also found the possibility to tell the clients to zip their files which I later unzip automaticly(I skimmed some article about this). Does it exist any other way to do this, or a way to work around it? Right now it feels kinda hard, but I feel like I cannot be the only one with this problem. Christer Claesson

    ASP.NET csharp question asp-net com help

  • From double to Date
    C Christer Claesson

    Have a Double and want to convert it to a Date format, any suggestions how to do it? And yes, having a date as a double is pretty stupid :-), but converting from double to string or long is not problem anyhow. But in the GUI I'm using one of those fancy almanacs that requires the Date format.

    C# help tutorial question

  • Reflection
    C Christer Claesson

    Where does foo and bar come from, as it seems to be standard in using in examples? Does it come from FUBAR? Thanks :-)

    C# question data-structures

  • Odd threads
    C Christer Claesson

    Ok, yes I'm stupid and cannot read examples clearly :) You need to have a /**@delegate*/ over the delegate deklaration. Odd in my opinion, oh well.

    C# help debugging question

  • Odd threads
    C Christer Claesson

    But that one already exists in System.Delegate right? Atleast it shows up when I type the . after Delegate, and I follow the constructor(two of them and I use the one with two eventHandlers). Oh well, hungover and forced to code due to deadline. Life sucks:)

    C# help debugging question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups