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
C

ChrisWFL

@ChrisWFL
About
Posts
18
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Render a user control to a string?
    C ChrisWFL

    I have an ASCX user control that I want to render to a string instead of direct to the browser. I've tried something like: MyControls.footer ftGen = new MyControls.footer(); System.Text.StringBuilder sb = new StringBuilder(); System.IO.StringWriter twriter = new System.IO.StringWriter(sb); HtmlTextWriter writer = new HtmlTextWriter(twriter); ftGen.RenderControl(writer); return sb.ToString(); but am not having any luck. Anybody have ideas? :confused:

    ASP.NET question

  • Need Power-of-Attorney form ASAP
    C ChrisWFL

    I'd be careful. You'll need what's called a "specific power of attorney" and when real estate is involved, it can get tricky. Each state can have different requirements. It might be best if you contact your closing agent (title company?) to get the required form filled in with whatever your state may require. Title companies have attorneys.

    The Lounge c++ csharp dotnet com question

  • Basic Auth for ASP.NET
    C ChrisWFL

    Yes you can, but to use Basic Auth, it's much easier and better to just turn off anonymous users on that file or directory. IIS will then do it automatically.

    ASP.NET csharp asp-net database security question

  • Returning a collection from a web service function
    C ChrisWFL

    Leppie's right. An array of A (it's the base class after all) then just cast it back to the appropriate B or C. You can also write a serializer if you want to (they actually aren't that hard in most cases).

    ASP.NET data-structures question

  • Basic Auth for ASP.NET
    C ChrisWFL

    Check out Forms based authentication. .Net will handle it for you. The "login" form can verify the username and password any way you care to handle it.

    ASP.NET csharp asp-net database security question

  • I confused why I can't refresh my pages
    C ChrisWFL

    You obviously input something on the default page to cause it to transfer to another, even if it was only click a button. That is the information it wants to send again. You are actually transmitting that information back to the default page (look at your URL, it doesn't change when you transfer). If you do a Redirect instead, it would work (no information going along with it). But that causes a round trip to the server.

    ASP.NET help question asp-net sysadmin workspace

  • How can I pass value from codebehind to javascript?
    C ChrisWFL

    Inject the value into the javascript before you send it, or inject a hidden form field with the value and read it from the javascript. Do that with Page.RegisterHiddenField(HiddenFieldName, HiddenFieldValue); Access it with document.formname.HiddenFieldName

    ASP.NET question javascript sysadmin

  • ASP to convert IIS logs
    C ChrisWFL

    Are you wanting to "pretty print" them? If so, the script would depend on the log format you chose and what fields you chose to log. You'll need to use the Scripting.FileSystemObject if you are truly in ASP. If you're using ASP.Net there are other methods. If not, they are just text files, so you can just link directly to them and they will display in the browser, no assembly required.

    ASP.NET html windows-admin tools help question

  • How can I put controls inside a table cell
    C ChrisWFL

    This is exactly what I do too. The IDE doesn't let you drop controls into a server side table, so I just drag it onto the page, set whatever properties I want, then switch to HTML view and move it into the table code where I want it to live. It's a pain, but it works.

    ASP.NET question csharp html css sysadmin

  • Inserting Records into a Databinded Dropdown
    C ChrisWFL

    After doing the DataBind() call, do a ddl.Items.Insert(position, new ListItem("value", "display text"));

    ASP.NET

  • ACTION attribute
    C ChrisWFL

    We had this problem too. If you view the source of the page, you'll see that .Net has overwritten your action to postback. You might want to put this form on your .aspx page and take out the runat="server" attributes. Don't mess with the form that .Net puts there, just leave it.

    ASP.NET question

  • DropDownList and XML file
    C ChrisWFL

    Thanks, that worked. I was trying not to need a DataSet, but I ended up needing one for another reason anyway. Also, I was trying to use the XML services and get a table back instead of the (proper) other way around of creating a table by reading the XML.

    ASP.NET xml tutorial question

  • please help, session problem.
    C ChrisWFL

    Make sure your ASP.Net State Service is running. By default it isn't. Check in the Services control panel.

    ASP.NET help csharp asp-net dotnet windows-admin

  • DropDownList and XML file
    C ChrisWFL

    Has anyone figured out how to attach an XML file as a datasource for a DropDownList control? For instance, a list of 50 states and state codes to populate a state dropdownlist in a shopping cart.

    ASP.NET xml tutorial question

  • ASP.NET woes ...
    C ChrisWFL

    I'd do this with an Application variable. In the global.asax page, you can set the variable. In the Page_Load function you can then override the setting that's done in the Initialize_Component. You can also use the Advanced setting of the Configuration Properties to store this.

    ASP.NET database help csharp asp-net design

  • LADY BUG FARTS
    C ChrisWFL

    You can do something like time.Text = DateTime.Now.ToString("h:mm"); I don't remember the exact formatting strings, but the F1 help system gets you there. :rolleyes:

    ASP.NET question help

  • Using MapPath in a C# class project
    C ChrisWFL

    I have a class that is called by an ASP.Net project. The class needs to use MapPath to return the physical location of various files. However, when called from the class, everything is returned relative to the absolute root of the web, not it's actual physical location. This seems to work ok when called directly from the ASP.Net project, just not the class (which is only referenced by ASP.Net). Has anyone figured out how to do this? Especially when using virtual directories...

    ASP.NET csharp asp-net tutorial question

  • .asmx files dont load in IE
    C ChrisWFL

    Yes, that is the problem. Reinstall the framework.

    Web Development question csharp visual-studio help
  • Login

  • Don't have an account? Register

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