|
|
Hi,
My Asp.net page having a problem.First time it working properly,but next time not working.I have to refresh it every time for populated data.
modified on Saturday, March 8, 2008 8:30 AM
|
|
|
|
|
There's no way you're ever going to be able to develop if you CAN'T READ! "Please do not post programming questions here." it says so at the top of the page.
It doesn't matter that you asked your question in here too! You won't get an answer for it in this forum.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
This is the ASP.NET forum, so he/she is probably within their rights to post an ASP.NET question here.
However the question was so vague that I doubt they'll get a response.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
The question was posted in "The Lounge" forum when I replied to it. It was probably moved here by an administrator.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
sanaja wrote: First time it working properly,but next time not working
Can you elaborate on what is happening? Any specific error messages that you are encountering?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Actually my problem is I have some screens on Asp.net by using Ajax. In these screen I am using some drop downs and data grid. On page load data is populated on dropdowns by default and on run button click data is populated on data grid based on selected value from drop down. First time when I open any screen everything is working properly but next time its not loaded data on run button click, for this I have to refresh page and then the screen working.
|
|
|
|
|
how to add new fonts in fckeditor
|
|
|
|
|
Hi,
I am working on a web project which is allowing the users to upload their documents. And it should also provide the user with the option to dowlaod the documents that were uploaded by him. Documents can be of any type(work,excel,pdf etc even image files can be uploaded).Now my doubt is how to achieve the dowlaoding of the files that are stored. I am working on .net 2.0
Regards,
Uma
|
|
|
|
|
set navigateurl to physical address of that file
|
|
|
|
|
How will we set the navigate URL?
Can you pls give me an example.
I tried by setting the href of anchor tag. But for excels files it is not working.
|
|
|
|
|
SqlCommand command = new SqlCommand("proc_GetImages", connection);<br />
command.CommandType = CommandType.StoredProcedure;<br />
SqlDataReader rd = command.ExecuteReader();<br />
byte[] image = null;<br />
while (rd.Read())<br />
{<br />
image = (byte[])rd[0];<br />
str = rd[1].ToString();
}<br />
rd.Close();<br />
Response.ContentType=str ;<br />
Response.Buffer=true; <br />
<br />
Response.AddHeader("Content-Disposition", "attachment; filename=" + name + ";");<br />
Response.AddHeader("Content-Length", image.Length.ToString());<br />
Response.BinaryWrite(image);<br />
Response.End();
use this code to download file stored in database
|
|
|
|
|
Thank you but my file is stored on the hard disk.
I am storing files on the server. Now I want to download them from the application.
|
|
|
|
|
Perhaps this will help:
http://www.codeproject.com/KB/tips/HowToUseGoogle.aspx?msg=2458041#xx2458041xx[^]
The person who answered you here has given you all the important information ( that is, how to use the response object to write a file back out for download ). In fact, what you want is simpler, you just need to read the file bytes from the file system.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hiiiii friends
i m using asp.net2.0
i want to off right click in my application....
thanks...
yogesh
|
|
|
|
|
This has nothing to do with ASP.NET, it's a javascript problem. I think it's nasty, but here:
http://www.google.com.au/search?sourceid=navclient&ie=UTF-8&rlz=1T4ADBS_enAU225AU226&q=javascript+right+click[^]
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have given upload all image types using upload control.But when i retireve a gif image an exception A generic error occurred in GDI+. is occur .how to overcome it.
The code for retrieving a image is given below.
private void SetImageFeatures(System.Drawing.Image image,int maxWidth ,int maxHeight)
{
int imageHeight = 0;
int imageWidth = 0;
System.Drawing.Image fullSizeImg;
double scaleFactor = 1;
//image.Save(Response.OutputStream, ImageFormat.Jpeg);
fullSizeImg = image;
if ((fullSizeImg.Width > maxWidth) || (fullSizeImg.Height > maxHeight))
{
int deltaWidth = fullSizeImg.Width - maxWidth;
int deltaHeight = fullSizeImg.Height - maxHeight;
if (deltaHeight > deltaWidth)
{
scaleFactor = Convert.ToDouble(maxHeight) / fullSizeImg.Height;
}
else
{
scaleFactor = Convert.ToDouble(maxWidth) / fullSizeImg.Width;
}
}
imageWidth = Convert.ToInt32(fullSizeImg.Width * scaleFactor);
imageHeight = Convert.ToInt32(fullSizeImg.Height * scaleFactor);
Bitmap bitmapImg = new Bitmap(imageWidth, imageHeight, fullSizeImg.PixelFormat);
Response.ContentType = "image/Jpeg";
Response.ContentType = "image/Bmp";
Response.ContentType = "image/Gif";
bitmapImg.Save(Response.OutputStream, ImageFormat.Jpeg);
bitmapImg.Save(Response.OutputStream, ImageFormat.Bmp);
bitmapImg.Save(Response.OutputStream, ImageFormat.Gif);
Graphics new_g = Graphics.FromImage(bitmapImg);
new_g.DrawImage(fullSizeImg, 0, 0, bitmapImg.Width, bitmapImg.Height);
fullSizeImg.Dispose();
}
This is for setting the width and other to the image.But error occur.how i solve it.
|
|
|
|
|
A Graphics object cannot be created from an image that has an indexed pixel format.
this is the eror occurs when viewing a gif image.Plz tell how to to solve it
|
|
|
|
|
Hi i created one project in that ane dll file will be created,
Its a private dll,
Now i want to make it as public or shared,
how to do it?,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Basically, you replace the word private on the classes you're creating, with public.
This question also has nothing to do with ASP.NET. It's also straightforward enough that I'd be recommending you buy a beginners book and work through it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Better buy a book for this and start reading and practicing.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
i opened popup window using window.open i want to close the popup window as well as refresh the parent form
|
|
|
|
|
Create one Javascript function in Parent window
function refresh()
{
//code for refresh window
}
and then
Create one function in Popupwindow
function closeNRefresh()
{
window.opener.refresh();
window.close();
}
still you have any problem reply me
Best Regards,
Chetan Patel
|
|
|
|
|