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
R

Rhys Jacob

@Rhys Jacob
About
Posts
35
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ASP.NET IIS login problem
    R Rhys Jacob

    Sorry Gjm, my mistake. Put the app_data directory into your production environment.

    ASP.NET csharp help asp-net visual-studio sysadmin

  • ASP.NET IIS login problem
    R Rhys Jacob

    Have you deployed the app_code directory to your production environment? This is where the membership datebase is stored. Alternatively you can create the database in SqlServer like this: http://msdn.microsoft.com/en-us/library/x28wfk74.aspx[^] Which will let you store users in a proper database. If you go down this route make sure you change your web.config to point to the external DB.

    ASP.NET csharp help asp-net visual-studio sysadmin

  • wdsl to create a proxy class
    R Rhys Jacob

    It's going to be difficult to test without an actual web service to test against. Is it a commercial service? If so they should have a test service for you to code against? If not you could create a mock webservice of your own. You know the methods and return types from the wsdl so you could code against that.

    Web Development wcf question csharp xml

  • Insert variable into string
    R Rhys Jacob

    lukasz_nowakowski wrote:

    And personally I consider first form more readable.

    I agree, String.Format is more readable, especially when you have a few more arguments.

    C# question

  • wdsl to create a proxy class
    R Rhys Jacob

    You do need the URL yes but you could host it locally for testing. Rather than use the command line, it might be easier for you to just add a Web Reference to the .net project directly. This will create your proxy class and add the URL of the webservice to your web.config. That way you can change this to a production server on release. This is explained here: http://msdn.microsoft.com/en-us/library/ms169816.aspx

    Web Development wcf question csharp xml

  • how to access local website by ip address instead of localhost
    R Rhys Jacob

    Is your local firewall blocking port 2076? If you run the site on your local IIS server, the default port is 80 which again you'll need to make sure isn't blocked by your firewall.

    ASP.NET question security tutorial

  • how can we know the client has requested an image from the server
    R Rhys Jacob

    This article should point you in the right direction. generating-asp-net-images-fly Ignore the parts about generating the image but if you look at Response.ContentType and the way to link to the image this should let you create an aspx page in which you can save request details to a database and then send your image to the client browser.

    ASP.NET sysadmin windows-admin question

  • Process large file in asp.net
    R Rhys Jacob

    You could allow your clients to FTP the files to you and then process them with a dedicated application rather than through the web application?

    ASP.NET csharp asp-net xml question

  • PostBack Problem
    R Rhys Jacob

    Your page_load event will get called each time there is a postback. So when you click your save button it's setting your flag back to -1. you should look at:

    page.isPostBack

    Web Development help question tutorial

  • Locking excel file while writing
    R Rhys Jacob

    If you are opening the excel file using a filestream you could use the fileshare parameter to prevent any other users from reading the file.

    C# tutorial

  • Search and Replace String Value
    R Rhys Jacob

    You could try this: http://msdn.microsoft.com/en-us/library/system.data.dataset.merge(v=VS.71).aspx[^]

    ASP.NET database tutorial

  • Search and Replace String Value
    R Rhys Jacob

    OK, so is the report a datagrid bound to the dataset created by this query? Why don't you try something like this: Create a view of your main query which returns all possible columns you might want to display on the report. Then in your stored procedure have a parameter for each column you might want to filter on.

    @col1 varchar(50) = null,
    @col2 int = null,
    @col3 bit = null

    SELECT col1, col2, coln
    FROM view1
    WHERE 1 = 1
    AND isNull(@col1, col1) = col1
    AND isNull(@col2, col2) = col2
    AND isNull(@col3, col3) = col3

    Then depending on what the user has requested by drilling down, show/hide columns in the datagrid and pass in only the parameters that you want in the where clause. The isNull() will ignore any parameters you pass in as null and so won't take effect. If you want OR's you could run the procedure multiple times and join the datasets that are returned.

    ASP.NET database tutorial

  • Search and Replace String Value
    R Rhys Jacob

    Hi, I sort of see what you're trying to do here but I think there are neater ways. You're not really going to get the benefits of stored procedures but building up your sql like this and it's going to be very difficult to maintain. I think you're trying to get one procedure to cater for all possible data access that you might want at any point in your application. How many different combinations of data do you need from exactly these tables? I'd recommend splitting this procedure into several more specific procedures and then calling the procedures with strongly typed parameters. Or if you're building a much bigger system try reading up on ORM. If you want to post a typical query that you might need from this database I can have a look at reformatting it for you.

    ASP.NET database tutorial

  • Search and Replace String Value
    R Rhys Jacob

    It's probably not ideal to be dynamically generating WHERE clauses and passing the to your procedures. Could you post the Stored Proc code as there might be an easier way round this?

    ASP.NET database tutorial

  • word press with asp.net web app
    R Rhys Jacob

    Word press is written in PHP, I don't think you'll be able to easily integrate it into your asp.net app. There are plenty of other blogs you could use that are implemented in asp.net.

    ASP.NET csharp css asp-net question

  • generate xml file with sql query
    R Rhys Jacob

    Do you mean you want to save an Etudiant to the DB or you want to populate an Etudiant from the DB?

    ASP.NET database csharp linq design ai-coding

  • Fastest way to get data accross the internet
    R Rhys Jacob

    The local DB will probably be mySql and the remote will be Sql Server so I don't think that would work. Also the data is not replicated as such, it's used to alter the data in the remote db. I should also say that this transfer will occur pretty regularly but not at time defined intervals. So what I'm thinking is that there would be a local app to get data from the local db and to send it to a remote webservice which would use that information to update the remote db unless there is a faster way to do it? Is remoting likely to be faster? Thanks, Rhys

    ASP.NET database business sysadmin question announcement

  • Fastest way to get data accross the internet
    R Rhys Jacob

    I have some vague requirements at the moment but basically I need to take some data from a local database and use it to update the data in a remote database. The local application does not have direct access to the remote db. Because of the nature of the business, this data update needs to be a fast as possible. My first instinct would be to put up a webservice on the remote server and use this to update the remote database but does anyone know of a way that would be significatly quicker? Thanks very much

    ASP.NET database business sysadmin question announcement

  • href in asp:ListItem
    R Rhys Jacob

    Could you post your code please?

    ASP.NET question

  • Avoid Duplicate record insertion on page refresh(F5)
    R Rhys Jacob

    You could check your database to see if a record with all the information has already been inserted.

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