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
L

lvq684

@lvq684
About
Posts
42
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Building DOM from xml - asp.net controls, or html controls?
    L lvq684

    Thanks alot for your answer. Ok, so you build the page structure from codebehind, and the content controls with javascript/jquery. My challenge is a little different though. What I meant with the xml thing, is that the whole site has a setup file, which defines the controls on the page. Like this:

    <PageSetup>
    <Control Type="TextBox" CssClass="test" PageOrder="1" Text="Default text in the textbox" />
    <Control Type="Drowdown" CssClass="dropdownClass" PageOrder="2" >
    <Item text="Dropdown item 1" Value="1000" />
    <Item text="Dropdown item 2" Value="2000" />
    </Control>
    ...
    </PageSetup>

    Hope that clearifies it a bit :) I´ve started the project, and chosen to avoid the asp.net controls. So right now I build a long html string from codebehind, bases on the xml settings, and inject it on the page with jquery. Any better idea? :) Thanks alot for your time!

    ASP.NET javascript html question csharp css

  • Building DOM from xml - asp.net controls, or html controls?
    L lvq684

    Hi. I´ve been creating web pages for some years now, and been moving away from creating asp.net page-controls from codebehind because of the overhead they generate and the postback challenges you encounter. Instead I´ven been relying on javascript, jquery, old-school html elements and webservices, since they give me more elegant and light solutions. The challenge I face now, is that it should be possible to construct a page based on a xml-setup file. The page design is luckily quite simple. It´s basically a vertical page with controls on top of each other. I´m planning to create xml elements/types that define each control with it´s attributes. For an example a textbox with a css class, numeric text only value, which method to fire on textchanged, etc.. Or a button with a width, height, text, which (javascript?) method to fire upon click. Based on these types, I create the controls on the page. My question is, should I create and insert these controls from codebehind, that means asp.net controls? Or should I, for an example, build the dom in codebehind and let the javascript get the DOM from webservice, and then inject it on the page? Or what would be a good approach to this problem? Thank you in advance :) Kind regards, Lars

    ASP.NET javascript html question csharp css

  • Caching html pages - no thanks - but how?
    L lvq684

    Hi again. I´ve tried what you suggested, but I has no effect. The problem is the same :( Any idea?

    Web Development help announcement html sysadmin tutorial

  • Caching html pages - no thanks - but how?
    L lvq684

    Thanks alot, I´ll give it a try :)

    Web Development help announcement html sysadmin tutorial

  • Caching html pages - no thanks - but how?
    L lvq684

    Alright, so that would be like: and Right?

    Web Development help announcement html sysadmin tutorial

  • Caching html pages - no thanks - but how?
    L lvq684

    Hi. This issue has bothered me for some time now. I have quite a normal website, with different html files. If I make changes to a file, I can (sometimes!) see the changes when I hit f5. But if the file is fully replaced (same name and extension though), my browser shows the previous cached page. So I have to manually right click in the frame, and reload it to see the new version of the page. After many times googling to address this issue, Ive come up with these meta tages in top of each page:

    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    <meta http-equiv='pragma' content='no-cache'>

    But little does it help. The problem is still there. Why? And how to solve it? I´ve inspected of other sites that updates several times a day. They have have no special meta tags or alike in their html pages. And it´s of course not nescasary to update the page manually. Is it a server side setting or what figures? Thanks alot for your time :)

    Web Development help announcement html sysadmin tutorial

  • Disadvantages of HTML injection?
    L lvq684

    Good point there, thanks!

    Web Development html tools question discussion

  • Disadvantages of HTML injection?
    L lvq684

    Hi. I´ve created several web pages, that makes use of HTML injection. That means a script on a web page that calls a web service, gets html code returned, and the script then injects the html code in a div somewhere. This solution avoids postbacks, returns data faster back to the end-user and creates a more smooth web experience. But what are the downsides of html injection? The only thing I can think of, is that code maintainance gets harder as the project gets larger.. Thanks for your thoughts. Kind regards, Lars

    Web Development html tools question discussion

  • FindControl("id"); does not work - another alternative?
    L lvq684

    Hi. I have a problem with selecting a control from codebehind. This is my scenario: 1. i get a string from a webservice (session): string boxstring = "<input type="text" id="MainContent_TextBoxStopRoadName01" name="ctl00$MainContent$TextBoxStopRoadName01">"; 2. i insert this string to a <div id="boxcontainer"> from codebehind like this: boxcontainer.InnerHtml=boxstring; 3. Page loads 4. User types text in the box, and clicks a button to submit it 5. How do i find this textfield from codebehind from its id? I would like to get the field as an TextBox control, but the text value is the most important. I´ve tried several things, like Findcontrol("id") and Findcontrol("id").Findcontrol("id") and so on. But it doesnt work. Another thing does work though, if instead of a string, I create the textfield as an TextBox control, and then insert it: BoxContainer.Controls.Add(TextBox); - then it works! But it is not a possible solution in my situation. I only have the textbox (among many other elements) in a string. Really hope you can help! Thanks :)

    ASP.NET help question

  • Best solution for a form that looks like a paper page formular
    L lvq684

    Thanks alot, I will take a look at WPF :)

    C# help question

  • Best solution for a form that looks like a paper page formular
    L lvq684

    Hi. I am looking for the best solution to my problem. In short, I need to make a form that looks like an existing piece of paper. This paper is a formular, which you would normally fill out by hand. Instead, this form contains textfields, checkboxes and so on. The important thing is, that this form shall NOT look like a form, but should look like the paper formular. That means the possibility of background elements, customized textboxes without the white background and black borders, and so on. How do you achieve this goal in the easies way? Some kind of special technology you could use? Thanks alot for your time :) Kind regards, Lars

    C# help question

  • Page controls keeps same content after postback?
    L lvq684

    Thanks alot for all your answers. I´ve tried with the viewstate, but It didnt really work. It prolly would have if I tried for a longer time ;) Instead I found out that the page load method is called several times, even if the page isnt loaded. So in that way the old values were set. But how come the page_load method is called often, even if the user hasnt done anything on the page? Thanks again :)

    ASP.NET help csharp asp-net question

  • Page controls keeps same content after postback?
    L lvq684

    Hi. I am fairly new to asp.net, and have a problem with a page I am working on. The page contains some textboxes, and a button. When the button is clicked, the codebehind fetches the textbox contents. If the user did something wrong, he is redirected to the same page again, but before that the textbox contents is saved in the session. When the page loads again the textboxes are now filled with this sessiondata so the user doesent have to input all the data from scratch again. But when the button is clicked the second time, the textbox content I read is the old content, and not the new data the user has typed in. How come? To make my problem a bit easier to understand: 1. Page loads 2. User types "John" in the name textbox, and fills out other textboxes 3. User clicks the submit button 4. Codebehind reads "john" from the name textbox 5. Codebehind registers an error from the other stuff the user has filled in, and redirects to the same page with all textbox contents saved in session 6. Page loads, and all textboxes are filled from the session data 7. User changes the text in the name textbox to "Joe" 8. User clicks submit 9. Codebehind reads "john" from the name textbox - How come?! Really hope you can help me understand this! Thanks alot :)

    ASP.NET help csharp asp-net question

  • Changing color on Boundfield text content
    L lvq684

    Yes, as stated in the first post, I am new to asp.net. It´s not a calendar but a simple string which holds the date. The date sorting is being issued elsewhere. But I´ll try changing the calendar to a string and fiddle with it. Question is just how the page control calls this method. I will google some more. Thanks.

    ASP.NET csharp asp-net help tutorial question

  • Changing color on Boundfield text content
    L lvq684

    Thanks alot for your answer, but I dont quite follow the code. Whats up with the

    Calendar cd = e.Row.FindControl("myCal") as Calendar;

    And could you please paste the corresponding .aspx code for the Gridview please? I am very grateful!

    ASP.NET csharp asp-net help tutorial question

  • Changing color on Boundfield text content
    L lvq684

    Hi. I have this updatepanel, with some fields that are getting filled from an ObjectDataSource. One of the fiels are a date, and i want this date to be marked as red (and maybe in bold) if the date is one day from today or later. Problem is, I have no clue on how to do this, since I am new to asp.net! So is there a way to add a method that changes this specific ItemStyle-ForeColor based on the content i get from my datalayer? This is my updatepanel:

    Thanks alot!

    ASP.NET csharp asp-net help tutorial question

  • Outlook 2007 - Editing calendar information
    L lvq684

    Thanks alot! :)

    C# csharp question

  • Outlook 2007 - Editing calendar information
    L lvq684

    Hi. I´ve been googling for a while, but cant find the right place to start, so I thought some of you people could point me in the right direction :) I need to retrieve, add and edit Outlook 2007 calendar information. This information should be accessed/edited from a standalone C# application, and has therefore nothing to do with a Outlook plugin. So do i need to use VSTO? Or where do I start? Thanks alot! :)

    C# csharp question

  • Problem with checkbox binding in DetailsView
    L lvq684

    Thanks. But I cant get it to work. Can you please post the full example including the DetailsView and CheckBox tags? Thanks alot! :)

    ASP.NET question wpf wcf xml help

  • Constant timer in asp.net
    L lvq684

    I cannot run this on my webhost..

    ASP.NET csharp asp-net sysadmin 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