Click here to Skip to main content
15,921,941 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: What's going on with this javascript? Pin
Expert Coming21-May-07 20:41
Expert Coming21-May-07 20:41 
GeneralRe: What's going on with this javascript? Pin
Mundo Cani22-May-07 7:59
Mundo Cani22-May-07 7:59 
AnswerRe: What's going on with this javascript? Pin
Guffa21-May-07 21:08
Guffa21-May-07 21:08 
GeneralRe: What's going on with this javascript? Pin
Mundo Cani22-May-07 7:59
Mundo Cani22-May-07 7:59 
AnswerRe: What's going on with this javascript? Pin
Lalafaraz21-May-07 23:43
Lalafaraz21-May-07 23:43 
GeneralRe: What's going on with this javascript? Pin
Mundo Cani22-May-07 8:00
Mundo Cani22-May-07 8:00 
QuestionModal dialog form unable to return values to a webpart Pin
singhmanpreet21-May-07 13:17
singhmanpreet21-May-07 13:17 
QuestiongetElementById() when element is in MasterPage Pin
Mundo Cani21-May-07 11:53
Mundo Cani21-May-07 11:53 
AnswerRe: getElementById() when element is in MasterPage Pin
JimmyRopes21-May-07 13:32
professionalJimmyRopes21-May-07 13:32 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani21-May-07 18:09
Mundo Cani21-May-07 18:09 
GeneralRe: getElementById() when element is in MasterPage Pin
JimmyRopes22-May-07 1:22
professionalJimmyRopes22-May-07 1:22 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani22-May-07 9:45
Mundo Cani22-May-07 9:45 
GeneralRe: getElementById() when element is in MasterPage Pin
Guffa22-May-07 1:35
Guffa22-May-07 1:35 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani22-May-07 8:01
Mundo Cani22-May-07 8:01 
AnswerRe: getElementById() when element is in MasterPage Pin
Guffa21-May-07 23:36
Guffa21-May-07 23:36 
AnswerRe: getElementById() when element is in MasterPage Pin
Lalafaraz21-May-07 23:50
Lalafaraz21-May-07 23:50 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani22-May-07 8:02
Mundo Cani22-May-07 8:02 
QuestionLINKBUTTON - CENTER TEXT in ASP.NET Pin
hifiger200421-May-07 4:16
hifiger200421-May-07 4:16 
AnswerRe: LINKBUTTON - CENTER TEXT in ASP.NET Pin
Christian Graus21-May-07 12:00
protectorChristian Graus21-May-07 12:00 
GeneralRe: LINKBUTTON - CENTER TEXT in ASP.NET Pin
hifiger200421-May-07 22:31
hifiger200421-May-07 22:31 
QuestionIs there any event to identify that AJAX Collapsible panel extender is Expanded/Collapsed ? Pin
Sarang_Deshpande21-May-07 0:14
Sarang_Deshpande21-May-07 0:14 
Questionimage hendeling help me Pin
jayvaishnav8220-May-07 20:12
jayvaishnav8220-May-07 20:12 
AnswerRe: image hendeling help me Pin
Christian Graus20-May-07 21:03
protectorChristian Graus20-May-07 21:03 
GeneralRe: image hendeling help me Pin
jayvaishnav8221-May-07 0:43
jayvaishnav8221-May-07 0:43 
hi
thanx for response

here my code:
string strconapprove = ConfigurationSettings.AppSettings["connection"].ToString();
string strcmdapprove = "select * from coc_prayer_request_pending where ID='" + idi + "'";
SqlConnection conapprove = new SqlConnection(strconapprove);
conapprove.Open();
SqlCommand cmdapprove = new SqlCommand(strcmdapprove, conapprove);
SqlDataReader rd;
rd = cmdapprove.ExecuteReader();
if (rd.Read())
{
//picture#1:
string root = Server.MapPath("~");
try
{
byte[] barrImg1 = (byte[])rd.GetValue(rd.GetOrdinal("Picture"));
string strfn1 = root + @"\iimage\" + rd.GetValue(rd.GetOrdinal("Picture")).ToString() + ""+idi+".gif";
FileStream fs1 = new FileStream(strfn1, FileMode.Create, FileAccess.Write);
fs1.Write(barrImg1, 0, barrImg1.Length);
fs1.Flush();
string strpath1 = "~/iimage/" + rd.GetValue(rd.GetOrdinal("Picture")).ToString() +""+idi+ ".gif";
//thumbnail #1
if (fs1.Length != 0)
{

h1.Visible = true;
System.Drawing.Image img1 = System.Drawing.Image.FromFile(Server.MapPath(strpath1));
System.Drawing.Image thumbnailImage1 = img1.GetThumbnailImage(50, 50, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallBack), IntPtr.Zero);
MemoryStream imageStream1 = new MemoryStream();
thumbnailImage1.Save(Server.MapPath("~/image/thumb"+idi+".gif"), System.Drawing.Imaging.ImageFormat.Gif);
byte[] imageContant1 = new byte[imageStream1.Length];
Response.Clear();
h1.ImageUrl = "~/image/thumb"+idi+".gif";
h1.NavigateUrl = "show_picture.aspx?id=" + idi + "&type=pp&name=prayer&profile=aapprove";
fs1.Close();
}
else
{
h1.Visible = false;
}
fs1.Dispose();
}
catch (Exception ex)
{
h1.Visible = false;
}

conapprove.Close();

//problem is that some times it gives the error of GDI.
or outOf memory.
GeneralRe: image hendeling help me Pin
Christian Graus21-May-07 14:28
protectorChristian Graus21-May-07 14:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.