|
hasani2007 wrote: download them to access them or these files send to my computer directly and I shouldn't connect to internet to see uploaded files.
Does it have any relation to ftp? if it does please explain for me about ftp?
Can You Explain this part in brief..!
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Thanks for your response.
I edit my question by an example.
could you explain for me what is ftp and what does it do?
sincerely
|
|
|
|
|
Use FileZilla Software Tht U connect to the site and U can See all the file in the folder stucture and You Can Access the files
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi!
I have database of movies and if there is available movies, someone (member) can borow it. I need to keep track of how many more movies is available so when someone returns a movie I increase the number of available movies by one. I have a gridview of borowed movies and I can click on checkbox if some movie is returned. My question is how do I update database to increase number of available movies (for example Matrix) by one when I check "movie returned" checkbox in gridview? Is there some easy way? I also need to search through a movie database and display names and how many movies is available for each movie (I need to display it in gridview). I know how to search for a movie but don't know sql command that will display field of movie availability.
|
|
|
|
|
robotz wrote: Is there some easy way?
Yes, it's called SQL. This is a very simple SQL statement.
robotz wrote: I also need to search through a movie database and display names and how many movies is available for each movie (I need to display it in gridview)
OK, so once you do the search, you need to do a join to whatever table tells you how many movies you have on hand, that's basically it. The specifics depend on the layout of the DB, but it's all still SQL 101.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: Yes, it's called SQL. This is a very simple SQL statement.
Can you tell me this statement?
if checkbox is checked (movie returned) then number of available movies is increased by one
else number of available movies is decreased by one
How to wrote that in sql? Do I need to combine UPDATE and SELECT somehow?
|
|
|
|
|
I can't tell you the statement without seeing the db. But yes, you'd do a select to get the old value, add one and update the column to contain that value.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi all,
I have a problem. The debugger in VS1.1 is not hitting the breakpoint. I have correct configuration settings (set to Debug) under the Project Properties and also debug attribute is set to true in config file. When the application is built and the output is rendered in the browser the application gets detached and enven can be rebuilt and run again. Can any one guide me whats the issue?
Thanks in advance.
Safvi
|
|
|
|
|
Are you using Windows Vista ?
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
no i am using XP service pack 2. Thnaks for the reply.
Safvi
|
|
|
|
|
Do you have multiple framework version on your machine?
Follow the below instruction-
If Anonymous is on, then the app is running under the ASPNET account (or
possibly Network Service). These accounts (and add IUSR_ while you're
there) should also be in the Debuggers group.
Or
simply turn off Anonymous. If your web server is not your desktop, then try
turning on Basic. Then the application will be running under your user
context.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
yes i do have multiple dot net frameworks on my mechine.
i turned off Anonymous but it did not work. How to put a certain account under Debuggers group. i m using a Windows XP and the application is running on locahost.
Thanks,
Safvi
|
|
|
|
|
|
Does anyone know of a .NET solution to reading data from another website and updating data on that website? For example, there's a fantasy sports website that can read & display data about a persons "Yahoo!" fantasy sports team and send updates back to Yahoo. They also do this for about 20 other fantasy sports websites.
As you can see in this image (http://97.74.54.51/images/image1.jpg), they ask for your Yahoo account info. They then somehow retrieve your Yahoo data and display it onto their page (http://97.74.54.51/images/image2.jpg).
Does anyone know how this can be done or what programming methods I should be looking into to do this?
Thanks.
|
|
|
|
|
If they have your info, they can obviously log into your account. I'd assume there's a webservice interface they can use. The other option is screen scraping, they request a page, and then parse it for data.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Something like this[^]
only two letters away from being an asset
|
|
|
|
|
As CG Said, I think Web Service is the best option for it.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I am trying to create an ASP.NET app using C# in VS 2005. I have a number of fixed Panels in the HTML, that I dynamically populate with server controls as the user utilizes the application.
I have noticed that as I populate some of the panels dynamically, the controls render okay. But I do View Source in Internet Explorer and the generate HTML markup for the dynamically-generated controls is no where to be found in the source. However, they are there, rendered on the page.
Does that make sense? Shouldn't I always be able to see the generated HTML from ASP.NET?
Thanks,
Mark
|
|
|
|
|
If you are using normal html controls like div, input etc, it will be directly rendered as you made. The id of those controls might change sometimes.
On the other hand asp.net controls renders differently. The asp.net controls renders normal html with some javascript and css etc to handle them. For instance :
If you write
<asp:label> it will render it as <span>
This is because browser knows nothing other than HTML. So to work in Browsers the server side Handlers should render proper html.
Moreover if you are using Masterpage, the Id of each control will be placed in such a way that its name contains the ContentPlaceholder name. This is just to ensure that there is no ambiguity between Masterpage controls and Content page controls. You can get the id generated for each control in the server side by calling its ClientId.
Try to look carefully on your code.. .I think you will find them hidden somewhere.
|
|
|
|
|
Greetings,
I and my colleagues are developing a project in Visual Studio 2008 using ASP.Net C# language and we wanna share the same code-behind between 2 aspx pages. we found 2 methods to apply this:
1- Dealing with the page directive properties: change the "Inherits"
value to the base class.
2- Creating a common class: use it as base which other 2 pages inherit
from it and be considered as derived classes.
now, we're looking for using the best method to implement our goal, share code-behind between multiple aspx pages.
can anybody provide us with his experience in this?
your cooperation is highly appreciated.
Thanks.
|
|
|
|
|
|
Well, The best way I would recommend is the 2nd Option. Create a BasePage which inherits from Page class. Define your custom functions there. Now after creating your own page, just change its inheritence from Page to BasePage.
Place the BasePage to your App_Code folder so that any webform you create will have direct access to it.
|
|
|
|
|
Thank you all
sorry if my question is not clear enough. |:
To be more detailed:
In our project, we have a business and data layers. Each has a class with related methods and properties that can be accessed by any web form within the project.
What we're working on is:
Develop a bilingual system, create 2 pages for the same purpose but with different UI language. we're looking for using the same code-behind file for both of them but with a little difference which is in a Button Click event called "Back" that specify different 'Redirect' link.
we tried the the 2 methods mentioned above.
In the 1st option we considered one of the 2 pages class, which has all needed methods and properties in code-behind, as a base class of the other one, which has no methods.
e.g.
Project called: MyProject
page 1 called: Page_1.aspx
page 2 called: Page_2.aspx
Page_1.aspx.cs is a base class,
Page_2.aspx has the following page directive:
<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="Page_2.aspx.cs" Inherits="Page_1.MyProject" %>
Now, I need to know which option is the best in our case?
One more question:
while using the 2ed option, create a base class, we need to define some aspx page controls within the code to be accessed by any methods in the base class. we faced a problem when tring to declare them as a class data member?!
Note: we use a master page, so the controls in aspx pages are placed in a content holder
and because of this we use the following declaration statement:
Label Label1 = (Label)this.Master.FindControl("ContentPlaceHolder1").FindControl("Label1");
the error occured when using 'this': "keyword 'this' is not available in the current context"
any suggestions please?
Thanks again. <=
modified on Sunday, September 27, 2009 8:38 AM
|
|
|
|
|
Hello,
Did you success sharing the same code behind between many pages?
I'm doing the same thing between ascx controls.
Thanks for sharing your experience!
Nicolas
|
|
|
|
|
Hi Nicolas,
Yes, we use the 2ed option which is create a base class includes all common methods, and the web forms inherits from it instead of Page class System.Web.UI.Page as following:
Page1 & Page2 are web forms,
Base is class,
in Page1 [the same in Page2] code-behind:
public partial class Page1 : Base
in Base class:
public partial class Base : System.Web.UI.Page
Hope this helps.____________
Tfaol
|
|
|
|