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
D

dwatkins dirq net

@dwatkins dirq net
About
Posts
49
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Money vs. Flexibility
    D dwatkins dirq net

    I agree. We had a dress code change after being able to wear jeans every day except Monday. It's been over a year and I haven't seen one customer in the building - So who am I dressing up for? We're a manufacturing plant.. sheesh.

    The Lounge discussion csharp php css visual-studio

  • Money vs. Flexibility
    D dwatkins dirq net

    I work to live, not live to work. So my vote is: Flexibility

    Dirk Watkins

    The Lounge discussion csharp php css visual-studio

  • Search engine
    D dwatkins dirq net

    I am using DTSearch and it's really nice. It has APIs and does a crawl of your site. I haven't aimed it directly at a database yet but I guess the functionality is there. Otherwise, I always create some kind of webpage that the DTSearch engine can crawl. dtsearch.com/

    Dirk Watkins

    ASP.NET database design help

  • Please help in innerHTML for newline character
    D dwatkins dirq net

    You're using Javascript to get the information from a database? So you're using AJAX? In either case (using AJAX or not) you need to have a server side page that will return the results. If you want to show the results with Javascript the server side db connection page will need to display the db resultset in a way that Javascript can read: either in XML or JSON or something else. JSON works really well and is bandwidth conservative: json.com/

    Dirk Watkins

    ASP.NET help database

  • ObjectDataSource Total Row Count (HOW?!) [modified]
    D dwatkins dirq net

    The ObjectDataSource.SelectCountMethod Property just gives the name of the method to get the SelectCount.. I want the actual select count. :) Here's some more information: I am getting the e.ReturnValue from the ObjectDataSource Selected event. The ObjectDataSource is hitting a Data Access Layer that returns a List of Products: public static List GetProducts(int maximumRows, int startRowIndex, string sortExpression, int categoryId) ... I'm only getting the records I need from the database by page with this DAL method. I'm then using a ObjectDataSource SelectCountMethod to get the total number of products in that category (ALL pages): public int TotalNumberOfProducts(int categoryId, string sortExpression) ... The thing I really want is to get the value of the TotalNumberOfProducts in that category without hitting the database again. I should be able to get that from the ObjectDataSources Selected event or is there somewhere else where I should be trying to get this value? Any suggestions would be very helpful! Thanks.

    Dirk Watkins

    ASP.NET csharp algorithms question asp-net com

  • Please help in innerHTML for newline character
    D dwatkins dirq net

    You need to escape the unprintable character with a slash: newline is \n return is \r Not sure if this will help. Can you give more information if it doesn't?

    Dirk Watkins

    ASP.NET help database

  • Date Searches in aspx
    D dwatkins dirq net

    Are your database fields DateTimes or strings (varchars)? Assuming you are using DateTimes: "SELECT 8 FROM table WHERE (myDate >= CONVERT(DATETIME, '" & Date.Parse(DateCtr1) & "', 102)) AND (myDate <= CONVERT(DATETIME, '" & Date.Parse(DateCtr2) & "', 102))"

    Dirk Watkins

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

  • need help wit my datagrid's image
    D dwatkins dirq net

    you need to do this in the eval statement (from memory): ImageUrl='<%# "image/" + Eval("Pic") %>'

    Dirk Watkins

    ASP.NET database sysadmin help question

  • ObjectDataSource Total Row Count (HOW?!) [modified]
    D dwatkins dirq net

    I've been searching on this for a while and haven't found anything. How can I get the total row count from an ObjectDataSource control made up of a generic list of custom objects? I tried doing casting the e.ReturnValue to my generic object list in the ObjectDataSource Selected event to no avail: (( List < Product > )e.ReturnValue).Count Has anybody done this before? I just want to show the user how many products are in a certain category along side the GridView. I'm using C# .NET 2.0 and have a Data Access Layer doing custom paging and sorting like this article on 4GuysFromRolla. Thanks,

    Dirk Watkins

    ASP.NET csharp algorithms question asp-net com

  • Returning a DataSet from a Stored Procedure within a S.P.
    D dwatkins dirq net

    I've been trying to consolidate/reuse some business logic in a recent project and doing so would require me (within a MS-SQL 2000 stored procedure) to get a dataset from a stored procedure and aggregate some data. Is there a way to get a dataset from a stored procedure and put it in a temporary table? This is not an output variable, just the regular output dataset. I'm using Microsoft SQL 2000. Help please!

    USE PD9
    
    DECLARE @RC int
    DECLARE @datebegin varchar(10)
    DECLARE @dateend varchar(10)
    
    SET @datebegin = '01/01/2007'
    SET @dateend = '01/15/2007'
    
    --this is a dataset of our sales reps
    DECLARE sales_cursor CURSOR
    FOR
       	SELECT DISTINCT
    		[ABAN8]
    	FROM 
    		[vF0101_RepDetails]
    	ORDER BY [ABAN8]
    
    OPEN sales_cursor
    
    DECLARE @an8 int
    
    FETCH NEXT FROM sales_cursor INTO @an8
    
    WHILE (@@FETCH_STATUS <> -1)
    BEGIN
       IF (@@FETCH_STATUS <> -2)
       BEGIN  
    	-- i'm looping through a dataset of our sales reps
            -- now i need to get a dataset from the below sproc
            -- loop through that dataset and put it in a temp table
            -- the problem is getting the dataset from the next line - HOW??
    	-- EXEC @RC = [PD9].[dbo].[usp_rs_getSalesShipments] @an8, @datebegin, @dateend
    	-- print @RC
       END
       FETCH NEXT FROM sales_cursor INTO @an8
    END
    CLOSE sales_cursor
    DEALLOCATE sales_cursor
    

    Dirk Watkins

    Database database help com business sales

  • SSL and __VIEWSTATE
    D dwatkins dirq net

    Keep in mind that viewstate also slows down the transmission time and increases the bandwidth usage because it makes your page larger. .NET holds the viewstate information in a hidden form field so the text for that data is sent on each page request. Because of this, the user could try to modify the viewstate and send it back - so keep sensitive data in the session or in some data store on the server.

    Dirk Watkins

    Design and Architecture sysadmin security question

  • How should we design the programe if we like to add up more detail ?
    D dwatkins dirq net

    what?

    Dirk Watkins

    Design and Architecture design help tutorial question

  • Must see!
    D dwatkins dirq net

    I second that motion. Except for the dog-kicking scene in Anchorman...

    Dirk Watkins

    The Lounge com tools question

  • .NET3 is here!
    D dwatkins dirq net

    Are there enough "issues" in that list? WTF... :)

    Dirk Watkins

    The Lounge csharp com

  • Reading file from javascript [modified]
    D dwatkins dirq net

    Yeah, you'll have to upload to the server and do something with the file there. You can't use JavaScript to read files on a client machine. I think that Flash might be able to do that.. anyone seen this lately? Dirk Watkins

    Web Development javascript tutorial

  • New People Need help !!!!!!!!!!!!!
    D dwatkins dirq net

    I concur. Dirk Watkins

    Web Development html help question

  • float: right not working [modified]
    D dwatkins dirq net

    You shouldn't need to have a div around every button. That is extra markup and as you can see is actually using more markup than the table. Try something that will end up looking like this: CSS Float Test .btnlist {float:right;width:25%;background-color:#0FF;} .btnlist li {height:40px; list-style:none;}

    • list box item here

    • list box item here

    • list box item here

    • list box item here

    • list box item here

    -Dirk

    Web Development css sysadmin

  • Unable to post to Microsoft Forums
    D dwatkins dirq net

    I see. Microsoft is becoming a bit more "standards compliant" as you noted but even the msdn library doesn't come up "right" in firefox. Sometimes I get a little frustrated.. :) I would suggest looking at your firewall, virus scanner, router config, and maybe call your ISP cause something is either blocking it or there is something up with your connection. Good luck! Dirk Watkins

    Web Development com docker

  • security on website?? [modified]
    D dwatkins dirq net

    Maybe these: berbee.com 1and1.com Dirk Watkins

    Web Development mysql oracle sysadmin hardware security

  • How to Pass multiple arugumnets
    D dwatkins dirq net

    I think you have to do a delimited string and parse it out in the event handler. IE: CommandArgument='<%# DataBinder.Eval(Container.DataItem, "id1") + "|" + DataBinder.Eval(Container.DataItem, "id2")%>' Dirk Watkins

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