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
S

sam L 0

@sam L 0
About
Posts
22
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problems with generic list data structure
    S sam L 0

    Thanks a lot for the sample code...I guess the indexer here would be numbered based, so I can initialize the int index = 0??? But how is it going to get incremented for the subsequent factory values (AFactory, Bfactory, etc)????? Should there be a loop??? Can you please clarify?

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    C# database oracle help

  • Problems with generic list data structure
    S sam L 0

    Hi there, I'm not sure if I followed what you meant here? Could you perhaps show me some sample code? I'd really appreciate it!

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    C# database oracle help

  • Problems with generic list data structure
    S sam L 0

    I have two factory classes that both return a generic list of a data object class. Currently the code is using a switch statement to call a particular factory depending on some input. Code below the switch statement below depends on getting the list of data objects from different sources, but processing them the same. List<Product> products = null; switch (i) { case 1: products = ProductFactory.GetProducts(); break; case 2: products = ItemFactory.GetItems(); break; default: break; } The problem is that if I want to add more factories from different sources... I would have to rewrite the code for the current builder class, i.e. add more statements to the switch. Since an unknown number of factory calls could be made to get the data objects from different sources (one factory returns from Oracle, one from SQL one from SAP, etc) the code needs to accommodate any new factory sources without having to recode. Is there an easy way to accomplish this, please show me some sample code if there's a way to do so. Thanks

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    C# database oracle help

  • QUestions regarding the Checkbox list in ASP.Net
    S sam L 0

    Hi there, thanks for the speedy response... well I just started out with .Net so I really didnt know about these generic classes in 2.0, thanks for pointing out, I looked at them and the sample code you posted, Following is what I kinda came up with. //Member Level variable string mJurisdictionSelected = null; protected void GetUserSelectedValues() { string dateSelected = this.mDateRestrictor.SelectedItem.Value.ToString(); //this.dateTest.Text = dateSelected; //for (int num = 0; num < mJuristictionCheckBoxList.Items.Count; num++) //string[] jurisdictionName; string jurisdictionName = null; System.Collections.Generic.List<string> list = new System.Collections.Generic.List<string>(); foreach (ListItem item in this.mJuristictionCheckBoxList.Items) { //ArrayList jurisdictionName = new ArrayList(); if (item.Selected) { list.Add(item.Text); //jurisdictionName = item.Text.ToString(); // this.StateTest.Text = jurisdictionName.ToString(); } } this.mDateSelected = dateSelected.ToString(); if (!string.IsNullOrEmpty(jurisdictionName)) //this.mJurisdictionSelected = jurisdictionName.ToString(); this.mJurisdictionSelected = list.ToString(); } Now as you can see, after retrieving the values (from drop down) into string variable dateSelected and from checkboxlist into string variable mJurisdictionSelected, I need to pass them to our company's middle tier folks...so thats why I'm putting them in member level variables....the question regarding the implemenation you showed me is that " should I just create System.Collections.Generic.List as a member level thing, outside of the function and then directly keep the values into the list of type System.Collections.Generic.List. Instead of putting them into string mJurisdictionSelected? I mean the issue is that user could be selecting more than one value from the checkbox list so is this implemenation you told me about would be able to hanle more than one entry selected by user in the checkbox list?????? Or do I need like an array or something??? Please help?? Thanks Sam

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET csharp asp-net database data-structures tutorial

  • QUestions regarding the Checkbox list in ASP.Net
    S sam L 0

    I have a checkbox list that is being populated by a database object. User should be able to select more than one option from the checkbox list....now I wanna be able to grab all the values that the user is selecting and be able to put them into a variable....now since there could be more than one value that a user may select, I can't put save them into a string variable...it has to be a string array or something along those lines...to be able to hold multiple variables. Now can someone please post something on here that shown me how to do that. Thanks

    ASP.NET csharp asp-net database data-structures tutorial

  • ASP.Net browser capabilities
    S sam L 0

    I was wondering if we could use Asp.Net to query a users browser that is displaying an ASP.Net page. Now I know for a fact that using either client side Java Script or even the browser object in ASP.Net, we could figure out the type of browser a user is using. What I need to know if it's possible to know what other software the user may have installed on their machine (such as some assitive technology software such as screen readers). I called the manufacturer for one of such screen readers and although they agreed that they work with the browser to use their product, they don't provide any information that we could query from the browser which will reveal the whether the AT product is on the users box or not. Thanks

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET csharp java asp-net database tools

  • ALT keys usage in ASP .Net pages Navigation
    S sam L 0

    Thanks for the article Vasudevan, appreciate it. -I was wondering if the same would apply to the user contols also? The site that I'm woring on has lots of user controls and my manager wants the menus on the site to be driven by these Hot keys (alt + something else) as well. -In addition I would like a key combination, for instance to get to the main page (perhaps ALT + H...to get to the homepage located at www.google.com). As this would just be a link how do I set up these access keys property you told me about. Or is it that a link will probably renders as a div...so I could aplly it on there. Please let me know if you have anymore information available on these topics. Thank you very much for the time. Sam

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET csharp asp-net tutorial question announcement

  • ALT keys usage in ASP .Net pages Navigation
    S sam L 0

    Hey guys, I was wondering if anyone knows how to navigate using differnt hot key combinations in ASP.Net. For instance if you do...alt + 1, and then release the buttons and press enter, it will do something (perhaps take you to contact us or homepage) depending on how you program it. Please let me know if ASP.Net has these capabilities? Thanks sam

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET csharp asp-net tutorial question announcement

  • Server side controls and their markup in ASP.Net 1.1
    S sam L 0

    Thanks for your response, is there anyone else out here who may have done something along these lines. I would appreciate it. Thanks sam

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET html question csharp asp-net design

  • Server side controls and their markup in ASP.Net 1.1
    S sam L 0

    hey guys, well I'm working on a web site, medium sized, pretty heavily data driven. Now I need to pretty much figure out on my own how to make this site more accessible (to comply with American Disability Act). Anyways here are some of my concerns: 1- Server side controls such as datagrid, repeater, drop down lists, combo boxed and things like that renders HTML 4.01 (XHTML 1). Now I'm no expert in HTML, and that's why this is going to be challenging. So question is if I just dive in the HTML mode of for instance default.aspx page....and start messing around with HTML in their...well chances are design view will disappear if i make a mistake. I need guidance as to what's the best approaach here to make these markup changes. 2- HTML tables, frames and things of that nature don't seem to work well with screen readers (used by blind/low vision folks). In other words, what is the best approach/practice here. I'm sure some of you guys have done things like this in the past. Please help me out here. Thanks Sam

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET html question csharp asp-net design

  • Error in run ASP.Net
    S sam L 0

    Open up the command prompt for VS and type in aspnet_regiis - i at the appropriate location. That should install asp.net for you. Sam

    ----------------------------- If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET csharp asp-net com help

  • Reading from a 2003 word document & saving to sql table!
    S sam L 0

    Well I'm no expert in that, but it sounds like you just have to figure out how word o3 works...I mean Document Object Model must have some sort of an API to be able to read...just like we read from a text file in notepad.

    If you don't go after what you want, you'll never have it. If you don't ask, the answer is always no. If you don't step forward, you're always in the same place. -Nora Roberts

    ASP.NET database help question

  • How to Create a Property Which will contain a Dropdown?
    S sam L 0

    Not sure what exactly you are looking for, but it sounds like you need to know how to populate a drop down list. ddl.Items.Insert(0, "--Select--"); ddl.Items.Insert(1, "Value 1 or whatever"); This is how you hard code the values to be displayed, if you want to load 'em dynamically, then use a dataset or something as a datasourse for this drop down list. Look at the code below: ddl.DataSource = ds; ddl.DataTextField = "Columns_Name"; ddl.DataValueField = "Column_Name"; // note this won't be diaplayed ddl.DataBind(); *NOTE : ddl = drop down list Hope this helps. sam Eating, drinking and coding...you can't have it better than that!!

    ASP.NET question csharp design help tutorial

  • Changing the location of _viewState in the aspx page
    S sam L 0

    Aamir, check out my response above to Fred's post. sam

    ASP.NET question

  • Changing the location of _viewState in the aspx page
    S sam L 0

    Fred, thanks for the explanation I guess I didn't pay attention to the SEO aspect of it. I did some research and found this article www.wwwcoder.com/main/parentid/457/site/6173/68/default.aspx. It seems like the popular opinion on this issue is that if you are concerned with your page's ranking by a search engine, then you may want to remove the view state completely and rely on the good ole session state. Here's another article using DNN, it tells you how to do that. www.wwwcoder.com/main/parentid/224/site/3507/68/default.aspx Sam

    ASP.NET question

  • ASP.Net Applications and accessibility!
    S sam L 0

    Hey fellows, does anyone has anymore input on my questions/concerns. Appreciate all your time and effort. sam

    ASP.NET csharp html asp-net question

  • paging
    S sam L 0

    As Guffy said, a column named 'rating' is already part of your DataTable, and then in your code dc=new DataColumn("rating"); dt.Columns.Add(dc); You are adding the same column again to the data table, ofcourse it'll complain. Good luck sam

    ASP.NET

  • Changing the location of _viewState in the aspx page
    S sam L 0

    You can either turn the view state off for a particular control, or even for the entire page...however that's not adviceable as you won't be able to keep the state of your other controls around across post back. Now if you turn it off for the page, then when you go do source -> view, you are not going to see the view state field there. I am not sure why would you be concerned with where the view state shows up in your source...I mean if you are concerned with the date that you are storing in there being displayed, well its base 64 encoded so a reader can't just read it. However it's not encrypted or anything and there are base 64 decoders out there that can simply decode it for you. I hope this helps. Sam

    ASP.NET question

  • "differ b/w viewstate and hidden fields"
    S sam L 0

    Yeah, that's absolutely correct...but just to emphasize the main point here, view state IS one of the three hidden fields available in ASP.Net. sam

    ASP.NET

  • Event Handling
    S sam L 0

    Check out this article, it may help you understand them better. http://weblogs.asp.net/frank\_hileman sam

    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