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
M

Member 8217517

@Member 8217517
About
Posts
22
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • is this good C# linq to sql code?
    M Member 8217517

    In this code I wanted to retreive the 5 items. I think this code returns all 5 items.

    C# csharp question database linq help

  • is this good C# linq to sql code?
    M Member 8217517

    I would like to know if the following code is written ok or is there a better way? If there is a better way, can you explain and/or point me to a reference I can use? Is the linq writing from one datacontext object to some data fields ok? Also is the try catch adequate? I do know the code works since I stepped through the code. I am asking the question is this is my first time working with linq to sql in a C# 2010 application and I am the only programmer at my company.

    protected void Ready_Data(Attes att, AtsDataContext attDataContext)
    {

            try {
    
          var results = from s in attDataContext.Attes\_Schedules
                          where s.Pay\_Month == att.Pay\_Month\_Date
                          select new
                          {
                              PayDate = s.Pay\_Month,
                              CurCStopDate = s.Current\_C\_Stop\_Date,
                              PriorCStopDate = s.Prior\_C\_Stop\_Date,
                              RptsReceviedMonth = s.Rpts\_Rec\_Month,
                                                         
                          };
    
            foreach (var r in results)
            {
                att.Pay\_Month\_Date = r.PayDate;
                att.Current\_C\_Stop\_Date = r.CurCStopDate;
                att.Prior\_C\_Stop\_Date = r.PriorCStopDate;
                att.C\_Rpts\_Rec\_Date = r.RptsReceviedMonth;
            }
           
            }
            catch (Exception ex)
            {
                lblErrorMsg.Text = "Attes Page Processing problem";
                lblErrorMsg.Visible = true;
                hold\_Exception = ex;
    
            }
    
        }
    
    C# csharp question database linq help

  • controls in asp.net
    M Member 8217517

    In a C# 2010 web form application that I will be working on, I want to place a dropdown list control in a detailview control. I do not these that control as one of embedded controls you can use. I do see controls like a hyperlink. Thus can you tell me or point me to a reference so that I see how to place a dropdown list control within a detailsview control?

    ASP.NET csharp asp-net hardware tutorial question

  • several input sources for web form 2010 control
    M Member 8217517

    I am looking for addititonal references for how to bind data to a C# detailsview 2010 web form control. Some of the links I have located so far are the following: http://www.learn-asp.net/asptutorials/DetailsView.aspx http://www.asp.net/data-access/tutorials/using-templatefields-in-the-detailsview-control-cs. A standard linq datasource control can be connected to the detailsview control in standard situations as listed above. For data that is loaded into the detailviews control, I need to add 2 dropdown list controls values, data from an excel spreadsheet, and data obtained from tables not in the production database. Thus in this case, I am looking for additional refernces on how to bind these other references to the detailsview control when data is first loaded into the control.

    ASP.NET csharp asp-net database linq tutorial

  • supply data for web control field
    M Member 8217517

    I thought [^] as the samething as (

    ) to put around the code. In the future, I use will (

    ) to put around my code.

    ASP.NET csharp database asp-net sql-server linq

  • supply data for web control field
    M Member 8217517

    Problem: I want the "TextBoxOrgName.Text" of a detailview control to contain the organization name. I am working on a C# asp.net 2010 webform application. In a detailview control I want to place the organization name into the cell called "TextBoxOrgName.Text". The problem is I do not have the 'organization name' in the LinqDataSource1 listed below. I want setup a new linq data source to obtain the organization name value value listed below or place the value from a session variable here. Can you tell me how I could accomplish this goal? [^] [^] Here are a few additional notes: 1. I know the best solution probably would be to bring in value in linqdataource1. However the organization name column is not part of the table that I want to update in the sql server 2008 r2 database. I am thinking linqdataource1 should only be the table I want updated from this particular webpage correct? 2. This is a data entry application and the user enters the organization name on the first webpage. The user clicks the next button from the first page and now we are on the second data entry page. I have the organization name available on the second page as a session varirable obtained from the first page

    ASP.NET csharp database asp-net sql-server linq

  • linq with web form
    M Member 8217517

    I have a linq data source control question for a new C# web form 2010 application I am writing. I need to bring in one schedule date table and one main table to the .net 2010 control to display. The schedule table is based upon the current processing month and year. The main table is based upon what was entered on the orginal application web. Would you setup two separate linq data source obejcts and point them to the appropriate cells in the web form control? Would you select all the data you need from the 2 unrelated tables in one linq statement and bring the data to the web form control? (The schedule dates are used to make data enter easier for the user. This keeps the user from having to enter dates.) Can you tell how you suggest I accomplish this goal and point me to a references on how to complete my objective?

    ASP.NET csharp question linq tutorial workspace

  • custom validator
    M Member 8217517

    I have setup a custom validator on a checkbox list 2010 C# asp.net control. The custom control does 'work', but I still have a question about it. When an item is not selected from the checkboxlist control, the OnServerValidate code is executed once the 'submit' button is clicked. Is there a way to display the error message once the foucs has moved from the checkboxlist control to the next item on the web page? If so, can you explain how this would occur and point me to a reference that would explain this process? I have one additional question that is once the OnServerValidate event is fired, the error message does not display. The display occurs once I have code in the 'submiton event' that says if (!Page.IsPostBack) return; I would think once the OnServerValidate event finishes executing, I error message should be displayed. The error message should not wait until the logic in the submit button fires. Thus can you tell me if this is ok and why? if this is not ok, can you tell me why not and possibly point me to a reference to solve this issue? The following is the code I am referring to: [^] public void ValidateNumber(Object source, ServerValidateEventArgs args) { args.IsValid = false; for (int i = 0; i < ChkBoxLstPlan.Items.Count; i++) { if (ChkBoxLstPlan.Items[i].Selected) { args.IsValid = true; } } } protected void submitbutton(object sender, EventArgs e) { if (!Page.IsPostBack) return; } [^]

    ASP.NET csharp help question asp-net workspace

  • header on server control
    M Member 8217517

    I am adding a checkboxlist control to a new asp.net 2010 web form page. I want a header to showup on the control. For this to occur, I am thinking of having the first now in the column to be the header row. The checkboxlist control will be loaded with data from the database with code. However to load this first row with 'header' datq, i am wondering how you suggest I code it? Initially would I load the checkbox list control to look like the following before the control is loaded with data dynamically: [^] cCompany Name [^] If not, what would you suggest I try? Also, can you tell me any other way you suggest I add a header row to the checkbox list control?

    ASP.NET csharp asp-net database sysadmin question

  • asp.net 2010 table control problem
    M Member 8217517

    I am having the following problems with a C# asp.net 2010 checkboxlist control that I drag from the toolbox onto the designer or source view. 1. When I drag the checkbox list control to be embedded within an asp.net table in either the desginer or source view, I do not see all all the options for the smart tag like to connect to the datasource. 2. When I drag the checkbox list into the designer or source view and outside of a web table control, I do see the data source control. However, I have the following problems: a. The wizard does not see the linq controls that are in the master page.Do you know of a way for the wizard to see the datasource in the master page? If so, how do you accomplish this task? b.Thus I create a new datasource and select the appropriate datacontext object. However when I want to connect the checkbox list object with a textbox for a where statement, there is not an option to find the textbox I am looking for. The only selection option is the checkbox list itself. The textbox I want to obtain the value from is embedded within the asp.net table. Thus basically can you make a suggestion how the checkbox list control can obtain the value in the textbox? Is the problem due to embedding the controls in an asp.net table? The folllowing is the code I am referring to: ^

    ASP.NET csharp asp-net linq hardware help

  • 2010 aspx wiring together issue
    M Member 8217517

    I have a C# asp.net 2010 webform page that I am developing and I have the following two questios: The following is the line of code I am referring to; [^]<%@ Page Title="" Language="C#" MasterPageFile="~/Rpt.Master" AutoEventWireup="true" CodeBehind="Atts.aspx.cs" Inherits="Rpt.WebForm3" %>[^] When I first setup the new webform page, I used the default name of WebForm3 for awhile. After starting to work with the markup file, I renamed the WebForm3 files to Atts in solution explorer. Now the line of code that says Inherits="Rpt.WebForm3" will not allow the web page to work if I change the "Rpt.WebForm3" to ="Rpt.Atts". I do not see a WebForm3 file in the solution file. 1. What could I be doing wrong? Could something be 'wired together' wrong? 2. When the application does not run, I do not know where to check for the real error message that happens? Is there a file a brakpoint spot I should set to see where the problem comes from. What I see is the generic error message in the web config file that displays the final default error message if nothing is runnning.

    ASP.NET help csharp html asp-net question

  • formatting in source view
    M Member 8217517

    I am currently working on adding a new page to an existing C# asp.net web forms 2010 application. Since I am new to working with C# webforms (but have desktop expereince), I have following question: When I drop and drag a control from the toolbox onto sourceview, I lose the formatting I setup in sourceview. Thus can you tell me if there is any way to keep the formatting in sourceview so it does not change?

    ASP.NET csharp asp-net question workspace

  • C# asp.et web form
    M Member 8217517

    I am currently working on adding a new page to an existing C# asp.net web forms 2010 application. Since I am new to working with C# webforms (but have the desktop expereince), I have the following questions/items to mention: 1. The new web page will use the master pages already setup and I am suppose to put all web objetswithin a webfrom table. **This is a requirement of the project. 2. When I am working with the webform table, I am using the designer to create more rows in the table when I need it. However on one row I want a label and a text box embedded in one row of the table. I can not figure out how to drag the label and textbox into the correct cells on the table. The only thing I figured out was to go into the source code side and copy the asp.net label and textboxes into the correct cells. Thus can you tell me how to drag and drop items from the toolbox into the correct tables within the table? 3. Can you tell me how to drag a gridview control into the correct cell of the table? 4. If you were me, would you create separate tables for each line I am trying to setup in one orginal table? 5. In the source code, I would like the code to line up so I can match the label tags. When I am in source view, I do have the code line up. However, when I drop and drag an item from the toolbox onto the designer, my formatting gets messed up. Is there a way to keep this formatting?

    ASP.NET csharp asp-net hardware regex tutorial

  • access to ajax controls on toolbox
    M Member 8217517

    I am having trouble accessing the ajax control toolkit that I installed on my visual studio.net 2010 professional ide. I followed the directions that are listed on the following link: http://www.asp.net/ajaxlibrary/act.ashx. I setup a new C# website and had the default.apx file open. I was then able to see the ajax toolkit controls from the NEW website I setup. However now for an existing C#. asp web form 2010 application, I am adding a new page webpage and I want to use the ajax controls I just added to my ide. However, when I click on the toolbox, I do NOT see the ajax control toolkit I just added to the my visual studio ide from this existing project. However when I go back to the new web application I just setup, I DO see the ajax control toolkit. Thus I can see the AJAX Control Toolkit on the toolbox when I open the 'new' website project. However, I do not see AJAX Control Toolkit on the toolbox when I open my existing application. Thus, can you tell me how I can access the AJAX Control Toolkit from the tooltox for my existing application?

    ASP.NET csharp visual-studio asp-net question workspace

  • add master page to new web form
    M Member 8217517

    I want to use some add a few page to an existing C#.net 2010 webforms application. I want to use the same master pages that the entire site uses. Thus to add new pages pages to the with the same master pages, i would like a reference on how to accomplish this task and/or directions on how to accomplish this task

    ASP.NET csharp tutorial

  • C# asp.net 2010
    M Member 8217517

    I have a C# 2010 web forms application that uses master pages, themes, and cascading styles sheets on the same web pages. Since I am new to master pages, can you tell me how I would know what part of the web pages uses css and what part uses master pages, and the base master page, and what part uses themes? If there some kind of a rule on what takes precedence if the same part of the master page is access? Does css, theme,and or master page precendence. If there is no precendence, can you tell me how I would knowwhat part uses css, what part uses themes, and what part uses themes?

    ASP.NET csharp asp-net css wpf question

  • asp.net 2010 debugging
    M Member 8217517

    I am new to working with a C#.asp.net web forms applications. I have expereince stepping through code in C#.net 2008 desktop application. Thus I would like to be able to step through all the code in this application. Thus far I have been able to step through code in aspx.cs and aspx files However, would like to know how to step through code in .js, html, css, and other types of files. If this is not possible, can you tell me or point me to references (urls) that will tell me how to debug these other types of files?

    ASP.NET csharp asp-net javascript html css

  • override to master page
    M Member 8217517

    I am working with a C#.asp.net 2010 web forms application that I need to modify. Since I am new to asp.net (i Have other C#.net expereince), i have the following questions: 1. In this application all the web pages at the start looking basically alike except for one where you can select 'menu' items from. The one web page where you can select mwenu items from, must being overriden with ajax and/or a content area? can you tell me to look for to determine how any area of the master page is being overwritten? 2. When I look at the source code behind a webforms designer (look at the HTML), I only see the code for content place holder #4. This is the actually processing for the web page. This does not show the html (code) for the master page. (THe master page is gray and the application will not let me click on the master page section.) Thus can you tell me: 1. What can I do to see the master page code? 2. Do I need to learn something about how the master page is 'wired in'? Can you explain this to me and/or point me to a url I can use as a reference?

    ASP.NET csharp asp-net html question

  • master pages 2010
    M Member 8217517

    I have a C#.asp.net 2010 webforms application that I need to modify. I have C# desktop experience, but I do not have C#.asp.net 2010. *Note I have read of asp.net books to update my skills. I have a master page that has root-> root-> root-> root-> root-> at the bottom of that page. I know that is the master page since the area is gray and i can not click on the 'root' items. I know the 'root' items are probably changed in the update_panel of ajax since there is a script manager also used. However, I to not know how the 'root' items are changed? However I still have a few questions: 1. How can I find what code applies to each one of the 5 roots? I look at the source code (HTML), but I can not tell what applies. I know the 5 'roots' are like 5 tabs in a desktop applicatiom. What I see is what thec webpage is setup for. I believe this content place holder 4. 2. What I am looking for is probably content placeholder 2 or content placeholder3. Can you tell me how to tie the designer/code with each of the conent placeholders? 3. Is there a way I can step through this code to see how the controls are all wired together? At least step through code to the point right before the html is rendered by the browser?

    ASP.NET csharp question html asp-net tools

  • C#.asp.net 2010 development plan
    M Member 8217517

    I am trying to decide the best way to develop and add some new web forms to an existing C# asp.net 2010 webform application. Basically my new webpages need to be kept separate from the other developer since his new pages are due sooner than mine are. I am basically going to have the user select my pages from the 'main' selection menu. I am, thinking of using one of the following options: 1. I am thinking of using a version of the general webforms solution file and add my code to it in a new aspx file. This way I will use the same master pages, site navigation, and user login credentials. Thus when my code is ready, i will add the new aspx file to the general webforms solution. Is this possbile? How would i accomplish this task? Would i setup a user control? 2. I would create the new webforms in a solution file separate from the general webforms solution file. I would not put the 'master' pages logic into my individual web forms. When I am finished, i will add by code to the general webforms solution file. Note: I am in a small company and we use subversion as our version control software. What mehtod would you use and do you have any recommendations that I should follow? Would you accomplish this task differently? if so, would you tell me how to accomplish this task in a different manner?

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