|
Firstly thanks for reply.
yes i would like to know how to save file on client side.
brief explanation is that
i have a file which i upload through fileuploader and file path is store like this : ~/directoryname/filename.ext this data link is stored in database and file is stored in given location (directory name) all is going fine. and i show this file on a linkbutton when i click on this link button i would like that save this file on client computer and file extension may be any thing like .zip, .rar, .bmp, .jpg, .xls, .zip etc. how to save on click event of the linkbutton.
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
Hyperlink have href property just put the whole path in href including file extension
href=~/directoryname/filename.doc
it will do all things that you wanted check it
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Is it possible to display a PDF file in an ASP.NET web part when a user click a link? and how would I go about doing this?
Illegal Operation
|
|
|
|
|
I have developed one online booking application for hotel
i am showing rooms available in grid
when any room gets booked how i reflect that all open pages
|
|
|
|
|
Refresh the datasource and re-bind your grid to the datasource.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
I am developing intranet application
and i want to show outlook in to that for loged in user how i can do that
|
|
|
|
|
you want to show Web Outlook or windows one
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
|
Do hidden fields work when the form is configured to GET or only POST?
|
|
|
|
|
Hi All,
Im very new in this and i hope you can help me with this.
In my code i have to call this eventhandler:
private void ProgressBar1_ItemClick(object sender,
EO.Web.ProgressTaskEventArgs e)
How can i call this methode?
Thanks
|
|
|
|
|
It's a method, so call it. USe this for sender, and EventArgs.Empty for event args, if you don't have any. Of course, if the code expects values in the event args, then you're screwed.
it looks to me like this a third party control, I suspect you need to read their docs as to how to report progress. Why the hell are you using a third party control if you're 'very new at this' ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi all
I have a question about the cookies did not know where the error
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.Cookies("UserName") IsNot Nothing Then
Response.Cookies.Set(Request.Cookies("UserName"))
Else
Response.Cookies.Set(New HttpCookie("UserName", ""))
End If
Response.Cookies("UserName").Expires = Now.AddMinutes(30)
End Sub
Protected Overloads Overrides Sub OnPreRender(ByVal e As System.EventArgs)
If Response.Cookies("UserName").Value = Request.Cookies("UserName").Value Then
Response.Cookies.Remove("UserName")
End If
MyBase.OnPreRender(e)
End Sub
In another place, I set the cookies when a user's login
If Log.Statu = LoginEnum.OK Then
HttpContext.Current.Response.Cookies("UserName").Value = row("username")
HttpContext.Current.Response.Cookies("UserName").Expires = Now.AddMinutes(30)
End If
In another place again, I set the cookies when the user logout
HttpContext.Current.Response.Cookies("UserName").Expires = Now.AddMinutes(-30)
The problem is : when user login and click any link in page i find cookies have been deleted
What issue ?
|
|
|
|
|
blackeyes wrote:
Protected Overloads Overrides Sub OnPreRender(ByVal e As System.EventArgs)
If Response.Cookies("UserName").Value = Request.Cookies("UserName").Value Then
Response.Cookies.Remove("UserName")
End If
MyBase.OnPreRender(e)
End Sub
Doesnt this remove the cookie (It only leaves the cookie on the first visit because request wont have that cookie)??
Alexei Rodriguez
|
|
|
|
|
sorry
same problem
i want to ask about those
HttpContext.Current.Response.Cookies("UserName")
Is
Me.Response.Cookies("UserName")
Or not?
|
|
|
|
|
Yes, I think so, it just a different way to access it
Sometimes when you are inside a class, you need to use the httpcontext to access response, cache, sesion...
Alexei Rodriguez
|
|
|
|
|
thanks alex
i was solve my proplem
the problem is :
i write and read cookies from Response
i forget :
i must write => in Response
and read => from Request
|
|
|
|
|
Hi,
I have had this problem quite offten when I rebuild the project. The fist line of the page is getting messed up and producing a runtime error as shown below. I think somehow it is loosing the inherits state. How can I come over this problem.
Thanks.
ERROR IS "run time error: could not load the type 'rentaholidayadmin"
<br />
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="adm_add_property.aspx.vb" Inherits="rentaholiday.adm_add_property" MasterPageFile ="~/Administration/Admin/admin.Master"%><br />
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
It seems that path to the rentaholidayadmin is not correct. Please verify it.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Hi All,
I am using Gridview's Edit by enabling AutoGenerateEditButton="true" .I am able to Edit,but the values n't getting Updated.I am using xsd's.Even it's n't giving exception.
Regards
Sri
modified on Monday, September 29, 2008 5:08 PM
|
|
|
|
|
No one is going to look at all that code.
Blog link to be reinstated at a later date.
|
|
|
|
|
i have loading 1005 usercontrols ,each usercontrols haves 11 controls.
When i click submit button, i get browser timeout problem, i can't able to debug also..
After clicking button, empty browser is displayed.
Thanks in Advance
Regards
Senthilkumar.T
|
|
|
|
|
attalurisubbu wrote: i have loading 1005 usercontrols
I think you need to redesign that page
|
|
|
|
|
It's always better to minimise the size page.There are standards for the page size and response time too.Please check and design accordingly.
Cheers!!
Brij
|
|
|
|
|
<httpRuntime executionTimeout="450" maxRequestLength="6000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
add the above insyte system.web of your web.config
this should help yoou
Thanks & Regards
Pete
|
|
|
|
|
Hi
I have a gridview which has an onselectedindex change event.
Is there a way to apply this to only certain columns rather than the whole row?
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|