|
Hi..
In my current project i have to run a macro in the excel from IIS
please give me any suggestions.
Thanks in Advance
Mahesh.J
|
|
|
|
|
i have a db for saving an image into it with datatype image.I want to convert the uploaded image into byte and only save the image into the db.How is it possible.I tried it but i cant get it.Plz help me by sending some code to me.
The tried code is attached below
byte[] img=new Byte[Upload_Logo.PostedFile.InputStream.Length];
Upload_Logo.PostedFile.InputStream.Read(img, 0, img.Length);
string s = Path.GetExtension(Upload_Logo.PostedFile.FileName).ToLower();
insunit.InsertInto(Txt_UnitName.Text, Txt_ShortName.Text, Txt_Location.Text, img, Stream, TxtStdperClass.Text, username, date);
Here the img file is of type image...
|
|
|
|
|
Hi
Why u r saving image into database save the image in folder
on hard drive and save only image name and type into database.
Saving image into database is not a good practice.
Regards.
Rahul.
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
|
|
|
|
|
Thanks For your Relpy rahul.But I want to save it into db and when we execute a rowcommand of the grid the image of corresponding row will be displayed into the image control.So plz help me ..
|
|
|
|
|
I want my users create email themselves, such as yahoo.com . is there any API or other way to do this?
|
|
|
|
|
I think that the code will be depended on the EMail Server that you used. For example, if you are using Microsoft Exchange Server, you can find the code about how to manipulate the MS Exchange server.
To create a website like yahoo or gmail or any large website, it's not that easy. I suggest you to start with small application and read more about ASP.NET and the different kind of Exchange Servers. Once you got the solid idea, you can develop those kinda site..
|
|
|
|
|
(\b[0-9]+\.([0-9]+\b)?|\.[0-9]+\b)
can somebody explain each and everything in the above expression
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
u may get help from this link
http://www.15seconds.com/issue/010301.htm
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hi to all,
I m newbie to asp.net n its my first site which i m trying to develop (asp.net(vb)) but i m facing the tab index problem to navigate cursor to the next text box.
In my login page first focus in on user name but when i press tab again n again first it goes to the controls of top.ascx which is used in every page of my site n then goes to the addressbar n then come back to the password textbox. i fixed the TabIndex property 0(username) n 1(password)
In vb.net i use TabStop property to restrict the focus on control but i don't know how to do it in asp.net
Any help would be appreciated
I m looking forward to your suggestion
Thanks with anticipation
|
|
|
|
|
Hi,
you can have look on this.
Link1[^]
And Link2[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Thanks a lot Sun Rays for your guidance
|
|
|
|
|
How can I create a form at runtime and submit it in code behind,
all the below code is created on runtime and submitted too in test.aspx.
how can i achieve that.
|
|
|
|
|
Dear Friend,
Try this Code into your some button click from where you want to create new aspx page.
Some BUTTON_CLICK(sender,event)
{
StreamWriter sw=new StreamWriter(Server.MapPath("PTells.aspx"));
StringBuilder sb = new StringBuilder();
sb.AppendLine("<%@ Page Language='C#' %>");
sb.AppendLine("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
sb.AppendLine("<script runat='server'>");
sb.AppendLine("</script>");
sb.AppendLine("<html xmlns='http://www.w3.org/1999/xhtml'>");
sb.AppendLine("<head runat='server'><title>Untitled Page</title></head><body>");
sb.AppendLine("<form id='form1' runat='server'><div>");
sb.AppendLine("<div><asp:TextBox ID='TextBox1' runat='server'></asp:TextBox>");
sb.AppendLine("<asp:Button ID='Button1' runat='server' Text='Button'/></div></div></form></body></html>");
sw.Write(sb.ToString());
sw.Close();
Response.Redirect("PTells.aspx");
}
I hope this will helps you.
Thanks
"Good Thing Goes With Good People..."
|
|
|
|
|
I have a database with some fields,along with this fields an image field with datatype image is tehre.But after saving all details into the db.the saved data will be displayed on a grid.But whn i tried to retrieve the data by selecting into a grid row the text fields are coming properly.But the image will be displayed only the first photo that i uploded.Only one image will be displayed for all the rows.What is the reason I attach the image retreival code in the rowcommand of the grid.
DataTable dt = new DataTable();
dt = insunit.GetUnit(id);
Img_Logo.ImageUrl = d.Rows[0]["UnitLogoPath"].ToString();
The Getnit() is to retriving data from the table..
|
|
|
|
|
Hey you hav to use for loop for this..
Try this..........
DataTable dt = new DataTable();
dt = insunit.GetUnit(id);
for(int i=0; i< dt.row.count; i++)
{
Img_Logo.ImageUrl = d.Rows[i]["UnitLogoPath"].ToString();
}
it will be work...
Bye Bye.
Nisar Inamdar.
Always For U
|
|
|
|
|
Thanks for ur reply ....
But the pbm occurs in saving the image.All images in the db are same.How this happens.
|
|
|
|
|
SreejithAchutan wrote: DataTable dt = new DataTable();
dt = insunit.GetUnit(id);
Img_Logo.ImageUrl = d.Rows[0]["UnitLogoPath"].ToString();
Hey what you have done here ??
Can you try to figure out ?
DataTable dt = new DataTable();<br />
dt = insunit.GetUnit(id);<br />
Img_Logo.ImageUrl = d.<big>Rows[0]</big>["UnitLogoPath"].ToString();
Here you are taking only first rows value...
Change it..
If possible bind data in RowDataBound Event of gridview.
On every row find appropriate data and bind it properly.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
The pbm occurs is not in the rows.But the image saved is same in the db.Why the image saved is same in the db....
|
|
|
|
|
Hai
I need to access the asp:image inside asp:GridView ItemTemplate in .cs file. How can i set the imageurl Dynamically, based on conditions? The Grid view data binding is from the Database using dataset.
please help me
|
|
|
|
|
My suggestion is , In row bound function u can add the columns dynamically
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi
Create a function in code behind and pass image name to that function.
and in item template om set image url property to the function name.
<asp:image id="imgreply" runat="server" imageurl=""><![CDATA[<%# Thumbnail(Container.Dataitem("reply_imgname")) %>]]>'></asp:image>
and in code behend this id thumbnail function.
Function Thumbnail(ByVal img_name As String)<br />
If img_name <> "" Then<br />
Dim urlThumbNail As String = "thumbnails.aspx?iname=" & img_name<br />
Return urlThumbNail<br />
Else<br />
<br />
End If<br />
End Function
thumbnail.aspx is the name of the page where thumbnail of the image is
created.You can easily get the code for thumbnail if u havn't got
the reply me.
Regards.
Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
|
|
|
|
|
Thanks Rahul
It helps a lot to complete my work
|
|
|
|
|
Welcome Niya.
Regards.
Rahul.
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
|
|
|
|
|
hi...
i'm new in Asp.net..
i want to source code for online exam..
i'm using ASP.net & C# coding..
plz...
any one help me..
advance
Thanks,
For ur infor...
|
|
|
|
|
what you want tell me!
Thanks & Regards
Niranjan
|
|
|
|