|
That makes no sense. Consider reading the posting guidelines and rephrase your question.
|
|
|
|
|
I want to embed link of my site in some other site. the link is having querystring. when a user clicks on that link in that site he will be redirected to my site. i need to generate link programmatically and embedd it in other site. how to do that plz help.
|
|
|
|
|
S_Aijaz1 wrote: when a user clicks on that link in that site he will be redirected to my site.
What do you mean ? Is this also your site or some third party site ?
|
|
|
|
|
actual im selling some service and need to give client a link to click on to reach to my site. it is a third party site.
|
|
|
|
|
You can't change contents of other website programatically. All you can do is to provide a text that other website owner can copy and paste to their page. Something like
<a href="Yourwebsite.com?querystring=value">YourWebsite</a>
|
|
|
|
|
|
Hi All,
I want to build a image uploading websites in ASP.net. For every image I want to show number of views. (i.e. how many times a particular image is viewed).
Can anyone let me know how to perform image file view count for my application? Should I hit database update column on every image click event? Or any other best possible slandered solutions are available for this problem?
Thanks,
Bikash
|
|
|
|
|
I guess persisting in database would be the best method. You may need to record IP address as well to avoid counting requests from same user multiple times.
|
|
|
|
|
Navaneeth, Don't you think that It may causes the performance issue ?
|
|
|
|
|
Usually DB update operations are almost quick and performance impact will be negligible. I don't see any other method to persist the count.
|
|
|
|
|
So, let me put this in this way. I keep a list in session and each time when the user clicks on the image then it will check whether the image id already exists in the list or not (i.e. if image id exists then the image is previously viewed by the user in this session). If it doesn’t then update the view_count column in database. Is this the best possible way to count image viewed?
|
|
|
|
|
Looks Ok. I hope you are aware that this method will increment the count when the same user visits the same image again in another browser instance.
|
|
|
|
|
I have a pre-existing web application that moves files through HTTPS protocol between client and server. I have create an AJAX upload ( over 2 years ago so my knowledge of AJAX at the time was limited). Now I am re-visiting the application because I used the traditional methods for downloading a file ( code snippet below ). We have noticed that downloads of files that exceed 1 gig are killing our web server.
My questions are:
-How to handle a chunked downloads so I am not loading every bit into memory then sending it.
-Has anyone used a purchased asp.net control that handles both Uploads/Downloads of large file(s) that they would recommend using.
try
{
if (File.Exists(fullFilePath))
{
using (StreamReader _streamReader = new StreamReader(fullFilePath))
{
using (Stream _stream = _streamReader.BaseStream)
{
Response.Clear();
Response.AddHeader("content-disposition",
String.Format("attachment;filename={0}", Path.GetFileNameWithoutExtension(fullFilePath)));
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.ContentType = DataAccess.GetMIMEType(Path.GetExtension(fullFilePath));
Response.BufferOutput = false;
byte[] _buffer = new byte[1024];
int _counter = _stream.Read(_buffer, 0, 1024);
while (_counter > 0)
{
Response.OutputStream.Write(_buffer, 0, 1024);
_counter = _stream.Read(_buffer, 0, 1024);
}
Response.End();
}
}
}
}
catch (Exception)
{ }
All comments will be helpful and appreciated, thank you.
I'm listening but I only speak GEEK.
|
|
|
|
|
I assume you don't want to, or can't, just place a link to the file on your page? What about making a temp copy and giving a link to that?
only two letters away from being an asset
|
|
|
|
|
To download a file, just give them a link as the previous post suggested
Or do you have any special requirements?
Alexei Rodriguez
|
|
|
|
|
Restrictions:
-Firewall restrictions will not allow me to pass specific file types.
-Upon upload the file is appended with a hashed value as a file extension (to prevent execution of uploaded files).
-Currently I have a getFile.aspx?file-id=[id] that returns the file.
My understanding of a hyperlink via [filename] vs. [getFile.aspx]:
-[filename]: allows IIS to handle the transfer of the file (more efficient of the 2 choices).
-[getFile.aspx]: is not registered with IIS so it is managed at the code level.
Is my understanding correct?
I'm listening but I only speak GEEK.
|
|
|
|
|
AreJay wrote: -Firewall restrictions will not allow me to pass specific file types.
What would happen if you change the extension of files befre being downloaded via a hyperlink??
Alexei Rodriguez
|
|
|
|
|
This would work but I still run into the content/type restrictions which could be changed prior to download.
This creates a new issues:
-How to update filename and file type once it file reaches the client's PC.
I am unable to rely on the client to have the ability to rename the file (half the time they don't know where it went once it was downloaded).
I would accomplish his if I used an ActiveX control on the client's PC. Not an ideal solution but still plausible. I would prefer purchasing a control that handles all of this for me. I don't have allot of time available to me for this project and am looking for a quick fix.
I also need to update the Upload functionality to allow multiple files and folder uploading so my thoughts where to purchase a control that kills multiple birds with one stone.
Thanks for all your assistance in helping me come to a solution.
I'm listening but I only speak GEEK.
|
|
|
|
|
I'm fairly new to Nhibernate but I'm having a problem integrating my Nhibernate code into an asp.net app. My C# Console and form applications work just fine but whenever i use a simple call to retrieve a record, I get the following error:
"An exception occurred during configuration of persistence layer."
I've searched and searched but I am unable to resolve this issue. Has anyone else had this problem?
for the record, I'm writing this with .net 3.5 and Nhibernate version 2.2.
|
|
|
|
|
All it took was posting to fix this prob!
I did not specify the full path name for the cfg.xml file in .configure.
|
|
|
|
|
can you post how you reference it - ie. naming convention for the file. did you just use the full path name - c:\...\myconfig.cfg.xml
|
|
|
|
|
configuration.Configure("C:\\Documents and Settings\\USER\\Desktop\\Development\\LICDB_Library\\src\\LICDB.Library\\hibernate.cfg.xml");
This is what i had to do to get it to work. Before i just had "hibernate.cfg.xml"
|
|
|
|
|
Hi!
i have a web site application i need some one to help me in coding in the log in page when i log in into the database i want to see the different background picture as every time i log in as different user
|
|
|
|
|
dominic kMalisa wrote: i have a web site application i need some one to help me in coding in the log in page when i log in into the database i want to see the different background picture as every time i log in as different user
What is your problem ? You are expecting some one will write code for you ? did you search google ?
|
|
|
|
|