|
Hi,
I have a two pages.I have a check box in the second page.if i check the check box in the second page i want to populate the values from the first page with out postback. i.e i want it to work at the client side.Can someone help me out.It is important.
|
|
|
|
|
hi uma ,
I have a one solution but our value will papulate on pop up window if this is your requirement then i will send u code .
or refer this link u will got solution i think so.....
http://www.dotnetbips.com/articles/displayarticle.aspx?id=306 :
jitendra
|
|
|
|
|
Hi Jitendra,
WE are not using a popup but anyway u send me the code I will make use of it.
bye
|
|
|
|
|
Hi Jitendra,
I have gone through the code but it will not suit my requirement.Would u pls send me the code that u have done.I will make use of it.Its urgent.
Bye
|
|
|
|
|
Hi.
I have created and image in the Page_Load event:
Bitmap bm = new Bitmap(300, 300);
Graphics g = Graphics.FromImage(bm);
g.FillRectangle(brush, 50,50,100,100);
g.DrawLine(Pens.WhiteSmoke, 10, 10,180,10);
g.DrawLine(Pens.White,10,10,10,180);
After the line drawing code I added:
bm.Save(Response.OutputStream, ImageFormat.Jpeg);
bm.Save("C:\\mypic.gif", ImageFormat.Jpeg);
bm.Dispose();
g.Dispose();
I would like to be able to save that image to my hard drive but I haven´t been able to do that, can anyone help me? This compiles just fine but when I want to view it in the browser and an error occurs. What am I doing wrong? Can someone please show me the error of my ways?
Thanks,
F
|
|
|
|
|
So what is the error you are getting? Are you certain the account running the ASP.NET worker process has permission to write to the C:\ directory?
|
|
|
|
|
Hi.
I am just running this on my own PC and I pretty much copied the code from a book to learn and modify later. Everything seems to be OK but when I right-click and choose view in browser I get:
A generic error occurred in GDI+ and this line gets the red color:
bm.Save("C:\\Mypic.gif", ImageFormat.Jpeg);
This just doesn´t make sense
F
|
|
|
|
|
Perhaps you need to look at the InnerException of the exception you are getting? The outer exception may say "generic error", but often the InnerException will have more details.
I'm still betting that your ASP.NET worker process does not have permission to write to your C:\ directory. Any comment on that?
|
|
|
|
|
Hi.
I am not really following you If you are right, how do we fix the problem?
F
|
|
|
|
|
|
Hi.
It just so happens that I have 2 hard drives, c and e. I changed the code to:
bm.Save("e:\\mypic.gif",ImageFormat.Jpeg);
and it made all the difference in the world , the image appears on drive e. You were absolutely right!! Very impressive. On the other hand I don´t understand why this small change makes such a big difference? Do you have any suggestions on how I can make the pic save to c?
F
|
|
|
|
|
Hello dear,
I have just use this code of yours and it is working absolutely fine. Storing the picture in the given folder and displaying it in Browser or anything else.
Bitmap bm = new Bitmap(300, 300);<br />
Graphics g = Graphics.FromImage(bm);<br />
g.DrawLine(Pens.WhiteSmoke, 10, 10,180,10);<br />
g.DrawLine(Pens.White,10,10,10,180);<br />
<br />
bm.Save("C:\\mypic.gif", ImageFormat.Gif);<br />
bm.Dispose();<br />
g.Dispose();
I have modified a little bit.
regards
Mubashir
|
|
|
|
|
Hi.
If I comment out this line: bm.Save("C:\\mypic.gif", ImageFormat.Gif);
I get no error reports but I want to save it to my hard drive.
F
|
|
|
|
|
i want to drag and drop list box item in the tree view. in c#
any ideas ,
thanks in advance.
|
|
|
|
|
Hi
this is balavardhan,
Is there any chance to auto refresh the data in datagrid after some time of the first retrival
Thanking you for info
Balu
|
|
|
|
|
Hi there,
You can put this tag <META HTTP-EQUIV="Refresh" CONTENT="5; url=http://yourpagehere"> into your page...
<< >>
|
|
|
|
|
Hi,
But if use any session variables tehn meta tag will refresh the session variables also.
|
|
|
|
|
Do you mean that the session variables will be lost after auto-refresh?
<< >>
|
|
|
|
|
Ya I mean the same.After the metarefresh tag the session variables will be lost.Not all the times.SOme times it happens.I have experienced it.
|
|
|
|
|
it sounds strange
But this issue might be that the interval time in metarefresh tag is greater then the session timeout value. so when when the page is refreshed, all session variables will be reset. I'm not sure this cause is correct or not
You can check it again and let me know then, ok?
<< >>
|
|
|
|
|
Only return & l t ; or & g t ; .
How to do?
Thanks!
|
|
|
|
|
it sounds strange....Does your method return any value????
<< >>
|
|
|
|
|
Yeah.
The << and >> could not show in the page.
|
|
|
|
|
can you post ur code? and briefly describe the way you deploy ur service?...
<< >>
|
|
|
|
|
[webservice]
public string test()
{
return "b<c>";
}
|
|
|
|