Denaes
Avatar/Signature-
Posts
975 -
Joined
-
Last visited
Denaes's Achievements
Newbie (1/14)
0
Reputation
-
Yes, readonly seems to do what I want. Was this propert new to 2.0? None of the older 1.1 developers have heard of it. Maybe just something they never realized. Just means I have to learn to dynamically swap in a combo for certain textboxes. Part of the reason for this Edit/View mode was about 800k of viewstate brought on by 10 or so comboboxes with long lists. Only loading that data when it's needed will help things out a bit
-
Re: Container control Maybe so. If that worked consistantly with all the basic controls without making the text nearly unreadable to anyone with less than perfect vision. Yeah, thats the lowdown. That is very interesting. That sounds like it could be a relatively easy client-side option... well easy is relative when the only thing you know about CSS is how to set some basic skinning. I'll look into that :) Hrmm... I think I'd have to learn how to do part of that in javascript to leave that option of swapping controls on the client. doing it severside would definately be far easier, just not the performance I'm aiming for. Thank you both for your point of views :)
-
I can't use enabled/disabled controls due to requirements for having a user friendly app (they're hard to read and you can't copy/paste from them). So I'm working on a screen where I have duplicate Panels that I hide/show on postback. One has textboxes/dropdowns/etc and the other just displays labels (which are turned into spans) and basically shows up as text.I hate having to duplicate all the data filling and any changes made to one on the other... and I'm thinking of the other 20 screens I have to do this on. I'm just looking for a decent way to get the "here is the readonly mode" and "here is the updatable mode with editable controls". My one thought is to use Ajax to write HTML, but I'd lose possible server side support as well as component/control support. I'd love to just be able to say "here is my textbox, display it like a span now". Maybe a user control that swaps textboxes for labels? I'm using Infragistics tools, Asp.net 2.0 and MS Ajax 1.0. Any help/advice would be appreciated.
-
Well thanks for that. That should work. :) Seems odd that Atlas wouldn't address this as they're trying to make clientside coding easier for 2005 and super integrated for "Orcas"
-
I'm using asp.net 2.0 and the Ajax Web Extensions. I create a control with a label (lblStudentID) and when the page renders, it becomes XXXXX_XXXXX_ControlInstanceName_PanelInstanceName_OriginalControlID If I use Javascripts document.forms[0].getElementById(OriginalControlID) or Microsoft Ajax's $get(OriginalControlID) they wont find a reference to the control. If it were an HTML control, this wouldn't be a problem as ASP.Net 2.0 doesn't rename their ID's. The problem I'm seeing is that in my control, I only have control over the PanelInstanceName & OriginalControlID. I have no idea which control(s) (if any) that my usercontrol will be used in. Is there a programatical way to determine what that name would be? We were hoping that MSAjax would take the ServerSideID and find the ClientSideID, but no dice. On all examples I've seen (AppDev videos, Ajax.ASP.Net or documentation) they use either an html control or hardcode the generated name. I'm looking for something via Javascript or MSAjax Javascript that would get me the "XXXXX_XXXXX_ControlInstanceName" portion that I don't know about and would allow me to append the portion of the name I will know. Something like $get(ControlParent + "_PanelInstanceName_OriginalControlID" that would allow me to create the dynamic client name. Anyone have any tips or advice? I've been googling for days and maybe I'm not using the correct terms, but I'm not finding anything. I'd greatly appreciate any help on this subject
-
If I have a Stored Procedure and use the SqlDataSource to connect to it, my grid (MS or Infragistics) picks up the schema no problem and gives all the columns a basic formatting with what it believes the schema is intending. Not always perfect, but it's a starting point. Now I take the same Stored Procedure and access it through a WebService or an SQLServer Endpoint (turns a stored procedure into a web service call) and I add the WebReference to my project. Everything is looking fine and when I view the ASMX file (for the WebService) I get a list of methods and when I Invoke one, I see a schema prior to the returned information. But I connect an ObjectDataSource to a WebMethod on the WebService and connect a grid to the ObjectDataSource I get nothing. Just a blank grid. It's not showing the schema at all. All the examples I find of a GridView consuming a WebService shows it being bound in code, which doesn't allow you any designtime support and the GridView then displays all columns with default types and column names. How do you actually consume a Web Service correctly so that it conveys the schema?
-
Technically speaking, yeah. They're rendered into 100% HTML & Javascript, ie DHTML ie AJAX. They expose many Client Side and Server Side events, so you can choose how you want to handle them. You can also configure if you want to run them clientside (Ajax) or server side. From draggin a combobox or a grid onto your WebForm, you can define or choose a datasource, configure how the control will be laid out, which columns will show, etc and just run the form and the page renders with all the data. Not a single line of code. It is great. It really bothers me when a company totally undermines their own employees and efforts by not supporting their employees with training and proper hardware/software. I've seen companies not want to buy training material, then spend 10x as much money on employees floundering around to get a job done; a job they could have done faster and probobly better with some good solid training. Same with software. One company paid a developer for over a year to write an internal ASP.Net application for tracking projects and status because they couldn't fit it into their budget. True, the developer learned a LOT in that time, but they spent way more on salary and had to wait a year to get software with 1/100th the features the commercial versions have. Some companies would rather you do things yourself than buy controls, which is so silly. for less than 1 weeks pay for each developer, you can purchase a suite like Infragistics or ComponantOne which would save way more than 40 hours over the life of a project between development and debugging. I'm very happy that our management gets this and is super supportive.
-
On this new project we're working on, it seems like less and less. Data/business layer is in TSQL in the SQL Server supplying Web Services. The front end is using Infragistics controls primarily and will be 100% client side DHTML/AJAX, so everything after the Page_Load event will all be in javascript. So far with my Infragistics controls for the last 10 pages I've made yesterday, not a single line of C# (that I've written at least!) in them. Between the configurable controls and javascript, everything is taken care of. We'll have to write some code and maybe even a postback for logging in and Permissions/Roles. The really funny part is that the company bought us AppDev training videos for C#, but not the Atlas/Ajax one yet, so we're watching videos and learning all about .Net and not really using most of what we're learning right now. Anyone else have a similar situation?
-
Every time I think I figure out how to make a dataset really viable (over just datareaders and functions calling SP's) I think it through further and it seems like they're too much overhead for how little functionality they give you (at least in comparison to the 'sets in WinForms). Doing a normal declaration, your dataset won't be there for a postback (it'll be on the old pages instance and not the new pages instance) and if you're not going to keep data around, you might as well just hose it out. Datasets are more for being a temporary cache of data. You could serialize the data and send it back & forth, but that seems less efficient than just requerrying it. You could declare the dataset as Shared, but it seems that all users using the same page will be using the dataset, which may not be what you want or expect. It looks like I'll be using a lot of AJAX by way of Infragistics controls and maybe theres a solution in there with partial loading pages and querrying the database without postbacks. But am I missing something obvious? Am I just expecting too much of datasets in WebForms because of how I use them in WinForms?
-
Yes, I'm still new to ASP.Net 1.1 & 2.0, but I've been using WinForms for a few years (since 2003 I think?), so maybe my perception on bottlenecks is skewed here. We're running an enterprise level ASP.Net 1.1 application which also has many pages still in Classic ASP. The Server is "2003 Server" on a modern cutting edge server... core duo or core quad or whatever. The database is SQL Server 2000. This app has been around for a while, so this hasn't always been the OS or server computer. In comming to this project, the developers keep on saying that we need to handle things clientside when possible. Not for ease of use, but to save the server from bottlenecking. We have like 400 users max, spread throughout the day (if everyone had to use the app in a single day, which isn't always the case). How would you figure out how many concurrent users? Maybe a few hitting at relatively the same time. I don't know, it just seems that we're stressing ways to prevent serverside processing and from my perspective, it doesn't even seem like we're comming close to maxing out the Web Server or SQLServer's capabilities, yet we're doing silly optimizations to avoid the overhead of a datatable. Maybe I'm just spoiled being a winforms developer. Any thoughts?
-
I'm not sure if it's just cookies... maybe sessions or something else I'm not aware of. I've heard that as a concern. Maybe if I found a site or document that compared using both versions in the same webapp. Personally I have a lot to update from ASP as part of my learning of the app and it seems silly to upgrade it to 1.1 if we do want 2.0. Especially because I've been learning 2.0 and I really like it. While the theory goes that the company will pay us to upgrade to 2.0 someday, we have a lot of custom projects from paying customers within the same app so if it's possible, it's most likely going to happen a few pages at a time as needed, which is why I was checking. I found a msdn 1.x -> 2.0 conversion guide and it doesn't even address what I'm asking, just talking about doing the whole site in one fell swoop.
-
I'm working for a new company, the application is mostly 1.1, with ASP pages and compiled com objects. My first job is to get rid of all the ASP & COM objects by bringing them up to ASP.Net. We all want to use 2005, but we don't have the time to convert the entire application (it's pretty large with hundreds of pages). Would it be possible for me to upgrade the asp/com to 2.0 while the rest of the app is 1.1? Then convert sections, to 2.0 one at a time? I know it's possible to have them as seperate pages on the same server, but we need them to share cookies and whatnot as part of the same application login. So you might login to a 2.0 page, then navigate to a 1.1 page, then a 2.0 page, etc. Doing this, if it's not too Hacky, would save us from having to upgrade to 1.1 then do 2.0 in an entire fell swoop.
-
Cool, good to know. Thanks for the info :) I'm beyond that, normally using a code behind file now as well. I guess the book was trying to keep things simple early on. One thing I noticed when they first talked about the <script> tags and assigning a language there as well as in the page directive, my first thought would be that it would be mad cool to have a VB & C# tags in the same page, but the book says that you can only choose one language. so if you have VB as your page directive, you can't do a script block of C#. Can you mix it up with Javascript or one of the intellisense supplied scripting languages? Like have a VB Page and insert a JScript Script block?
-
Yeah, this is pretty minor and kinda silly, but when I type this line: <script runat="server" language="VB"> and I get to the language tag, it suggests: ecmascript, javascript, jscript & vbscript. I'm using VS2005 and following a book on learning ASP.Net. It's just annoying each time I try to type "VB" "vbscript" is inserted and I have to go back and delete it. In this case I do not have a page directive stating that I'm using VB, so the tag is required. Thanks if anyone knows why.