User Profile

Collapse

Profile Sidebar

Collapse
GregoryPankov
GregoryPankov
Last Activity: May 30 '08, 05:45 AM
Joined: May 12 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • GregoryPankov
    replied to Problem with Image Uploading
    in .NET
    Hello,

    FileUpload.File Name property - Gets the name of a file on a client to upload using the FileUpload control.

    So in your case, You cannot use this property for initialize new instance of FileInfo class.
    Try this code, I think it would be work properly:
    Code:
    protected void Button1_Click1(object sender, EventArgs e)
    {
    
    if(FileUpload1.HasFile)
    {
    // get file name without
    ...
    See more | Go to post

    Leave a comment:


  • You can use WebClient.FileU pload method to send all files one by one to the server. Shortcoming: one file is sent in one request.

    You can use third party components (ex:Chilkat.Upl oad)

    Use can also write your own class, that based on HttpWebRequest. This class should implement RFC 1867 (www.ietf.org/rfc/rfc1867.txt). In this case you will need to build http request and send it to request stream....
    See more | Go to post

    Leave a comment:


  • GregoryPankov
    replied to Sending & Receiving Values
    in .NET
    Hi,

    Try this:

    Code:
    Response.Redirect(String.Format("default4.aspx?roll={0}&name={1}", TextBox1.Text, TextBox2.Text));
    And what exception do you received? Probably it is a "Null reference exception".
    See more | Go to post

    Leave a comment:


  • GregoryPankov
    replied to File Upload
    in .NET
    Hello!

    As I can see you are trying to get an acess to file system on the client's machine. It is cannot be done with standart html elements or javascript(secu rity model).

    FileUpload control is rendered on client side to
    Code:
    <input type=file name=file1>
    , so it's the same standart html.

    So, you can use some activex or java applet for solving your task.
    See more | Go to post

    Leave a comment:


  • GregoryPankov
    replied to Fille Upload control and Progress bar
    in .NET
    Hello!

    There is no simple way to display a progress information of upload process with using standart ASP.NET 2.0 FileUpload component. ASP.NET Runtime store all uploading files in temporarily location with temporarily name and these files are hard to find.

    So, you can write a HttpModule for parsing request with uploading files but it is not easy to be done.

    Or, you can use third party components:
    ...
    See more | Go to post

    Leave a comment:


  • Hello,

    I'm not sure but I think that:

    1. If you are using Form Authentication then you should grant access rights to the ASP.NET request identity. ASP.NET has a base process identity typically Network Service.

    2. If you are using local user identity then you should use impersonation as an authentication mode.

    more about asp.net authorization you can find here:
    http://www.easyalgo...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...