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
M

Mihai Drebot

@Mihai Drebot
About
Posts
19
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MaskedTextBox in ASP.NET 2.0?
    M Mihai Drebot

    it just doesn't like what i put there use the asp:TextBox, with attribute TextMode="Password"

    Web Development question csharp asp-net com game-dev

  • MaskedTextBox in ASP.NET 2.0?
    M Mihai Drebot

    seccond time today this happens to me :( this actualy adds some more functionality, like disabling copy/paste, etc Hope i understood correctly what you need

    Web Development question csharp asp-net com game-dev

  • window.open function in vb.net1.1 [modified]
    M Mihai Drebot

    There is another way: Response.Write("window.open...."); Or you can use a literal control, and write in it a string similar with the one above.

    ASP.NET csharp

  • a group of Radio buttons in datagrid
    M Mihai Drebot

    actualy, there is a link there, right url in href, just forgot to add it as visible text inside the tag :)

    ASP.NET help

  • Setting up a framwork 2.0 virtual directory inside a framework 1.1 website
    M Mihai Drebot

    Thanks alot this is what i thought, and i still beleave you are right :) The thing is i have no access to the live server (being a developer and all), so i told the guys dealing with the server setup to do this. They said they tryed and it didn't work, they still had the webconfig problem. But since there are now two of us saying the same thing, i guess it's their fault :) I'll let you know how it workes out, as those guys are now in their lunch break...

    ASP.NET help testing beta-testing

  • a group of Radio buttons in datagrid
    M Mihai Drebot

    http://www.c-sharpcorner.com/Code/2003/Jan/AccessDataGridVal.asp[^] sorry, my mistake :) wrong paste

    ASP.NET help

  • Setting up a framwork 2.0 virtual directory inside a framework 1.1 website
    M Mihai Drebot

    The IIS is currently set up like this: i have the website application, set up as a separate website from the DefaultWebSite, and the application is created. In this website i have a virtual directory (using create new virtual dir), for my online buy application, also the IIS application is created. all this is done so the users can access the site using urls like www.mysite.com/default.aspx for the website, and www.mysite.com/buy/default.aspx for the online buy application. The problem is that using this setup, the buy application tryes to inherit the website application's web.config. This is not a problem, as long as they all work on the same framework, as i store very few things in the webconfig, so i don't have a problem with redundency. But when the applications run under different framework versions, the webconfigs are no longer compatible, so i need a way to tell the buy application to ignore the website's webconfig... Hope this make sense :)

    ASP.NET help testing beta-testing

  • a group of Radio buttons in datagrid
    M Mihai Drebot

    Try this:

    ASP.NET help

  • Setting up a framwork 2.0 virtual directory inside a framework 1.1 website
    M Mihai Drebot

    I can add anything i want, no worries about duplication, as this is just temporary, untill the testers finish their job and we can have the framework 2.0 versions of all applications on live. The only question is how can i make the new framework 2 app ignore the root framework 1 web.config, as it now tryes to read from it first, then override the values with it's own web.config. Each application already has it's own web.config. Thanks for any clue, i'm bein shouted at by the boss... :(

    ASP.NET help testing beta-testing

  • a group of Radio buttons in datagrid
    M Mihai Drebot

    Make sure you have the right radiobuttons, from the right tr.

    ASP.NET help

  • MaskedTextBox in ASP.NET 2.0?
    M Mihai Drebot

    Just use Mihai Voicu Drebot

    Web Development question csharp asp-net com game-dev

  • datagrid and checkbox
    M Mihai Drebot

    There is an example of exactly that, somewhere on codeproject, sorry, i don't have the url right now. There are also similar examples on msdn.microsoft.com, again no url :~

    ASP.NET help

  • Cannot Find Control?
    M Mihai Drebot

    Try to save the controls you create in a ConrtolColection, or in an array, keep the collection on the session, and instead of searching a control that you don't know the id, just take it from the array note that if this control is in a ascx of your own, the final id won't be tddltabs_#, it will be something like custControl_tdltabs_# Mihai Voicu Drebot

    ASP.NET help question

  • how do I simulate a click event
    M Mihai Drebot

    you can add the linkbutton in the template column, set it's onclick attribute, create the event handler, it will trigger just fine. you might have a bit of trouble trying to sort out on what row the linkbutton that fired the event was, you can find that out using the ParentControl property of the linkbutton i'll try to find a code snipet in some of my projects and post it for you

    ASP.NET question help

  • RichTextbox
    M Mihai Drebot

    say you have to store a string , myString, in a table named demoTable, in the info field you would simply have this sql: @"insert into demoTable (info) values ('"+myString+"')" before you do that, you have to do this: myString = myString.Replace("'","''"); this way, you have 2 ' instead of one, and that's interpreted by the sql as a single quote inside a string value, rather than a single quote terminating the string value. Again, make sure you read about the sql injection attacks

    ASP.NET csharp asp-net database help

  • Session Variable
    M Mihai Drebot

    Just one more thing, you can store any object on the session, not just strings: Session.Add("my_object",myObject); myType myObject = (myType) Session["my_object"]; Hope this helps. Mihai Voicu Drebot

    ASP.NET csharp java question

  • Session
    M Mihai Drebot

    best way to do this is make your own class describing a user, you might have there a user name, password, real name, email, etc, some login methods, whatever else you think you need to know about the user (don't exagerate here, if you have zounds of users logged at the same time, you will have a load problem). You can store the user object on the session, retrieve it from there using an explicit cast, with no trouble at all. Just make sure the user object is serializable if you keep the session in the sql server.

    ASP.NET

  • RichTextbox
    M Mihai Drebot

    There is an esier fix for this specific problem, although it's not highly recomended: use a [your_string].Replace("'","''"); This fixes the ' ruining your sql sintax. Just make sure you read a bit about sql injection threat. You realy should try and use strong typed, prametrized stored procedures. Mihai Voicu Drebot, .Net developer

    ASP.NET csharp asp-net database help

  • Setting up a framwork 2.0 virtual directory inside a framework 1.1 website
    M Mihai Drebot

    Hello I have run into this trouble, trying to add an application built on framework 2.0, inside a website using framework 1.1. This is rather urgent, as it has to go live. The problem is that the app using framework 2.0 inherits the web.config from the root application, and that causes it to crush. The whole scenario is like this: we have a website application as root, written on 1.1 (it was converted, but can't go live until testing is done, and that will take a while), and an online buy application, that needs tuse the same url, newly written on 2.0. Thanks alot for any help at all, the situation is getting desperate Mihai Voicu Drebot

    ASP.NET help testing beta-testing
  • Login

  • Don't have an account? Register

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