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
D

deanofharvard

@deanofharvard
About
Posts
26
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error while opening form in Design mode
    D deanofharvard

    Weird thing with VS (2005 at least)... If you aren't relying on DB data for your controls when you initialize them (which I learned not to do the hard way...) you might need to delete the bin and object directories from your solution folder. Close all designer tabs open in the IDE. Close VS. Delete those folders. Re-open VS. Recompile the app. Then re-open the files that were having problems. Don't know why this happens, just know this sometimes solves it.

    C# visual-studio help csharp design question

  • how to create a floating toolbar in c#?
    D deanofharvard

    Hrm... I've never done anything like this, but you might look up MDI... or Controled Single Document Interface. Otherwise, you can have one Form be your parent Form... Once that form loads, have another Form pop up, with it's parent the main form. Both methods should be compatable with XP and Vista... You can set all properties on the parent... Or you can have the parent subscribe to a custom event fired by the child...

    C# csharp tutorial question

  • idea of a very special 'Menuitem'
    D deanofharvard

    Hehe... Sounds like a very interesting problem... I've done some stuff that's kinda similar, but means overriding the OnPaint method... You could always dynamically position your control according to the MouseClick event... On_MouseClick(object sender, MouseEventArgs e){ if(e.MouseButton == MouseKeys.Right){ HoverControl control = new HoverControl(); control.Location = new Point(e.Point); control.Show(); } } (Just typed that by hand... It's close, but capitalization and names might be off...) Handle the closing of the control in the control. If you're working with a grid, you could use the object you've got in the selected row of the grid, and if no item selected, don't show the control. Hope this helps... F~

    C# tutorial question

  • Help me please ! Immediately !
    D deanofharvard

    Wow... You see, I actually come on this message board from time to time to help out where I can... I'm by no means an expert... To return the favor I'd received when I was a new developer. Your "subject" message said nothing about your problem, and I'm assuming mis-worded. "Help me please! Immediately!" is rude. It assumes that readers are required to help you. You probably (hopefully) meant, "Need help with RichTextBox Control, need help to meet deadline." This would have gotten you help immediately. The response you gave to someone commenting on your poor word useage was very rude. I'd suggest you follow the suggestions of people on this board in the future. And, so that it can't be said of me "You're not smart enough to help me anyway", I'll throw in my 2 cents... Since you aren't very descriptive in your description of the problem, I'll assume that you just want your text to appear at the top of the string you have in the rich text box. If that's all you want to do, on the "OnChange" event fired by the control, grab the text in the control, do a replace on the string for your text (replace with an empty string) and append your text to the front of the string. This really is a simple problem (if the problem truly is as stated), and I haven't offered any source code for you deliberately.

    C# help csharp tutorial

  • open new url
    D deanofharvard

    Otherwise, if you want it client side, use JavaScript :D

    ASP.NET csharp question

  • Centering text in a lable or button
    D deanofharvard

    I use style="" and class="" in both. Also, ASP.Net creates an actual button tag for buttons, so you can specify the style of the button in the style sheet. They aren't properties that you can see in a class browser for System.Web.UI.WebControls.Label and Button, but it works.

    ASP.NET

  • Help
    D deanofharvard

    I'm assuming your text file's delimited... Just grab the text file data using a FileStream object, and parse it into a string array. You can either read it line by line, or grab the whole thing, separate by \n\r, and then parse the fields as you go. I think there's a way to actually use a CSV as a datasource too... May be wrong on that one... It's been a long time since I've mailed anyone through code, so someone else'll have to give you tips on that one. Access the text file using the FileStream object will get you started...

    ASP.NET html help question

  • ASP.NET working with MS Access
    D deanofharvard

    This may be too old school for what you're doing, but I use a regular SQL Querystring, and return using a DataReader. Just a quick pull from the DB, connection closes, all good. I can provide source, if you need it.

    ASP.NET csharp asp-net help question

  • supporting music for your programs?
    D deanofharvard

    Easter Eggs are yummy! :D I haven't put any easter eggs in anything I've written yet, but none of my stuff has been distributed outside of the company I work for, so my audience is limited :) I'm trying to figure out OpenGL right now, so maybe I'll put a present in my stuff once I've got a good handle on it. When I review my code before people use it, I'm usually too busy cleaning up code and removing test functions to add anything extra. "It's not a question of whose habitat it is, it's a question of how hard you hit it. " The Late, Great, Douglas Adams.

    The Lounge question

  • serious problem
    D deanofharvard

    Sorry, I'm lost on that one too... You might want to generate custom HTML for this one. It won't be as versatile as a DataGrid, but it'll work. Use an OleDbDataAdapter (oDA) and do a while(oDA.Read) { oDA["MyField"].ToString(); } You can make a StringBuilder that will create your HTML table for you, pulling the info from the DB as listed above. Hope this helps...

    ASP.NET css help question

  • serious problem
    D deanofharvard

    Are you trying to do it sideways? With the column headings to the left? The way it would work is Head Head Head Img Brand Price Img Brand Price Img Brand Price Or whichever order you decide... Otherwise, you could just create a TemplateColumn, and inside, create a table with three cells, or format it however you want. It's got a LOT of flexibility. Check out the online examples of what the templatecolumn can do for you on asp.net.

    ASP.NET css help question

  • serious problem
    D deanofharvard

    Here's the code that I used for my Testimonial View page. In order to use any of the manual columns you need to make sure that you set the "AutoGenerateColumns" to false, either in the datagrid tag or the codebehind. When you define the columns, there are different types, and manual headers that you can add. You can find more examples of this at asp.net, in the Tutorials section. The code below is what you'd do if you wanted to avoid the auto-generated table almost entirely. For each record the DataGrid wraps a <td> tag around the code I've got in the asp:TemplateColumn tag. * * * **<%# DataBinder.Eval(Container.DataItem, "FName") %>   <%# DataBinder.Eval(Container.DataItem, "LName") %>** <%# DataBinder.Eval(Container.DataItem, "City") %>,   <%# DataBinder.Eval(Container.DataItem, "State") %> **Before** ![](imagebin/<%# DataBinder.Eval(Container.DataItem, "BImageName") %>) **After** ![](imagebin/<%# DataBinder.Eval(Container.DataItem, "AImageName") %>) <%# DataBinder.Eval(Container.DataItem, "Testimonial") %> But from your reply it seems that you want a more typical format. Below is a link to the ASP.Net DataGrid tutorials page. This is pretty extensive, and shows how to properly add columns to a datagrid. You can use either CodeBehind or manually cr

    ASP.NET css help question

  • Application Roots and Accessing Libraries
    D deanofharvard

    Thank you for the info! I've got the authentication working now, and don't have to separate the two directories into different applications!!! You've been a GREAT help!

    ASP.NET csharp asp-net database windows-admin security

  • serious problem
    D deanofharvard

    Um... The form butchered the code. Follow the link above to see what I was talking about.

    ASP.NET css help question

  • serious problem
    D deanofharvard

    Try using a DataGrid and the TemplateColumns. It's worked for me. Not very hard to use. A link to a tutorial is below. http://aspnet.4guysfromrolla.com/articles/061002-1.aspx[^] You'll have to set autogeneratecolumns to false. Then, you don't even need a column header! You can format whatever you need in a table, or whatever you want. **Description:** <%# DataBinder.Eval(Container.DataItem, "Description") %> **Category Name:** <%# DataBinder.Eval(Container.DataItem, "CatName") %> **View Count:** <%# DataBinder.Eval(Container.DataItem, "ViewCount", "{0:#,###}") %> (code sample from 4guysfromrolla.com)

    ASP.NET css help question

  • Application Roots and Accessing Libraries
    D deanofharvard

    Hi, all... I've got a site that displays testimonials. In a Testimonials folder I've got Form Authentication using the web.config file, but in order to get it to work, I had to configure the Testimonial folder as an application in IIS. I'm displaying the Testimonials page in the root of the site, and that works fine root -testimonials.aspx -bin --DataAccess.dll -data --Testimonials.mdb -Testimonials --index.aspx --login.aspx --ModifyInfo.aspx --bin ---DataAccess.dll In order for the pages in the Testimonials folder to use the DataAccess library, I had to create another bin directory, and copy the .dll into it. I'm new to asp.net, and I'm not even sure that this is the best way to do what I want. Can anyone help?

    ASP.NET csharp asp-net database windows-admin security

  • side by side comparision
    D deanofharvard

    Bro! Drop the pivot table! You don't need to do it! http://aspnet.4guysfromrolla.com/articles/072102-1.aspx[^] That's a link to a tutorial using the "Template Column" in the Datagrid. You can put whatever you want in it! Even images and checkboxes... Very cool, and very versatile. 4guysfromrolla.com have some very good in-depth tutorials on this. That's how I learned what I needed to do for a Testimonials page. There really is no reason to do Response.Writes in a loop. If you need anything else, just post again, and I'll help. Maybe list a detail of exactly the format you're going for, and I can probably post a rough template that you can modify. Hope this helps...

    ASP.NET question

  • forum
    D deanofharvard

    ASP.net has one too. I haven't checked it out yet, but here's a link... http://asp.net/Default.aspx?tabindex=6&tabid=41[^]

    ASP.NET sales question

  • It's unbelievable
    D deanofharvard

    I take it you're using VS.net? I'm using SharpDevelop and WebMatrix (free lightweight aspx dev tool). I was able to use the CodeBehind pages called by my aspx pages, but couldn't make a reference to a DataAccess.cs that was in the same namespace! I had to use SharpDevelop to compile it and put it in the "bin" directory before I was able to use it! (Actually found that info from 3guysfromrolla.com) Happy Coding!

    ASP.NET csharp asp-net

  • How to Send and recieve Fax from ASP.NET
    D deanofharvard

    Personally, I think this is better suited to a windows app. You could probably have people upload a gif or jpeg that you can put in a folder, the number in a DB, and have your app run on a schedule to send off the faxes... Or have an app that takes the faxes, and saves images in a folder (in Win2k you can have the installed fax server save images to a folder...) and have people look the images up... Sorry I couldn't help...

    ASP.NET csharp asp-net help tutorial
  • Login

  • Don't have an account? Register

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