Click here to Skip to main content
15,896,348 members
Home / Discussions / Web Development
   

Web Development

 
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 
GeneralRe: image hendeling help me Pin
Expert Coming21-May-07 20:44
Expert Coming21-May-07 20:44 
GeneralRe: image hendeling help me Pin
jayvaishnav8224-May-07 19:19
jayvaishnav8224-May-07 19:19 
GeneralRe: image hendeling help me Pin
Expert Coming24-May-07 20:58
Expert Coming24-May-07 20:58 
Questionreplace title bar [Java Applcation] of the confirmation box Pin
arun rajappan20-May-07 20:03
arun rajappan20-May-07 20:03 
AnswerRe: replace title bar [Java Applcation] of the confirmation box Pin
JimmyRopes22-May-07 1:25
professionalJimmyRopes22-May-07 1:25 
QuestionHow to provide reference path for a web application Pin
Mushtaque Nizamani20-May-07 19:44
Mushtaque Nizamani20-May-07 19:44 
AnswerRe: How to provide reference path for a web application Pin
kubben21-May-07 2:29
kubben21-May-07 2:29 
QuestionRe: How to provide reference path for a web application Pin
Mushtaque Nizamani21-May-07 2:53
Mushtaque Nizamani21-May-07 2:53 
AnswerRe: How to provide reference path for a web application Pin
kubben21-May-07 3:55
kubben21-May-07 3:55 
QuestionTesting performance of website ( Thread test ) Pin
ctlqt1218-May-07 13:32
ctlqt1218-May-07 13:32 
AnswerRe: Testing performance of website ( Thread test ) Pin
enjoycrack19-May-07 6:08
enjoycrack19-May-07 6:08 
QuestionASP.Net view in MAC Pin
hifiger200418-May-07 9:02
hifiger200418-May-07 9:02 
AnswerRe: ASP.Net view in MAC Pin
Christian Graus18-May-07 16:18
protectorChristian Graus18-May-07 16:18 
GeneralRe: ASP.Net view in MAC Pin
hifiger200419-May-07 3:31
hifiger200419-May-07 3:31 
GeneralRe: ASP.Net view in MAC Pin
JimmyRopes20-May-07 6:40
professionalJimmyRopes20-May-07 6:40 
GeneralRe: ASP.Net view in MAC Pin
hifiger200421-May-07 18:21
hifiger200421-May-07 18:21 

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.