|
please show your aspx code.
Did you use a TemplateField with an asp:Image control to display the image?
Does the database store a BLOB field or a URL to an image?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
y_mmohd wrote: SELECT itemName, itemEmail, itemPhone, itemImage, itemDate, itemPrice, itemDescription FROM Item
All the data appear in the gridview except the itemimage. Itemimage should show an image from sql. I try to use imagefield in the gridview, but instead of the image a small white box with a red cross.
So, did you you set the image url for the imaage box.
Here is an article which describe, how to show image in grid view from database,
isplaying Image in Gridview from Database
|
|
|
|
|
Dear,
Thanks you for answering. I had read many articles about this topic, my problem is that i can't retrieve the image that i saved in sql server as binary to grid view.
I make DataImageUrlField for the ImageField is itemImage, but instead of the image a white box with red cross appear.
What is the problem?
Thanks in advance....
|
|
|
|
|
I am working on an online based website. I wud like to display the number of views of every product. ex: if a user go and click the product to chen then the view number shud increase by one. Can i get coding for this?
|
|
|
|
|
Pratheepa wrote: I wud like to display the number of views of every product. ex: if a user go and click the product to chen then the view number shud increase by one.
From where are you displaying the product ? Is it from database? if yes, then with the product column and another column, Viewer. Now on each click on product, update the field.
|
|
|
|
|
This seems so basic, and obvious. What have you tried, anything ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Is there a way to display the total number of visitors being online in my webiste. plz help me by providing the code
|
|
|
|
|
Pratheepa wrote: Is there a way to display the total number of visitors being online in my webiste.
Use database. Store login use in database. Display the information as Online information list. When any user logs off, update the database entry.
|
|
|
|
|
You need to think about this stuff, instead of asking us to do your work for you. There's no real way to know for sure how many people are online, you need to apply some sort of timeout to the last activity you got from a user, as you have no idea when they 'leave'.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Can anyone send me the code of displaying popup when the user clicks a link( in asp.net c#)
|
|
|
|
|
Pratheepa wrote: Can anyone send me the code of displaying popup when the user clicks a link( in asp.net c#)
Window.Open().
I will suggest you, before post this type of question, please search google first. If you are new in ASP.NET then Buy a book and start reading.
|
|
|
|
|
You can use AJAXModalPopup control. Go to ajax.asp.net.
There is no foolish question, there is no final answer...
|
|
|
|
|
Hi
I am not able to download file from Web Server...
I am using following code
string filename = "Resume.doc";
string path = Server.MapPath("~/Resumes/" + filename );
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment;
filename=" + filename );
Response.ContentType = "application/octet-stream";
Response.WriteFile(path);
Response.End();
this code is working fine in localhost...
but when Execute in the server it says 'File not found in the Directory',but file exists on the server.
The website id done in ASP only the file upload and download is done in ASPX,
upload is working fine but download is creating the problem.
may be because of Version compatibility,I am using GODaddy Share WebHosting.
please help me to find the solution.
Thanks and Regards
Vayanan
|
|
|
|
|
vayanan wrote: string path = Server.MapPath("~/Resumes/" + filename );
Try to print the file path on screen and then check....
|
|
|
|
|
Hi
Thanks for your kind reply..
Path is correct only..
It is working fine when I use the same code
in different Domain in the same server
|
|
|
|
|
Please check the folder rights in the error domain.
Do the current user have read rights on folder.
Also try to download the file from direct link.
|
|
|
|
|
Hi
I can't do drag selection in ASP .NET Web Forms.
Because of this i can't do design correctly.
Please give me any solution.
Thanks in advance.
lingam
|
|
|
|
|
munnalingam wrote: I can't do drag selection in ASP .NET Web Forms.
Because of this i can't do design correctly.
So, you are talking about VS, ASP.NET Design view. You are not able to Drag control in your page. Isn't it?
Check your Layout mode? GOTO > Layout Menu > Position > Select Absolute .
|
|
|
|
|
It is in Absolute Layout Only.
The thing is i can drag control in the form.
But i can't select the controls by dragging the mouse pointer.
Thanks for your reply.
lingam
|
|
|
|
|
Hey guys and gals
need advise. Is there a way to return print function status whether is printing or cancel after clicking to print function using <script>window.print</script>
Cos i need to check if the printing is successful then i will have to trigger something if the user click cancel . it will not trigger the function
KaKaShi HaTaKe
|
|
|
|
|
HatakeKaKaShi wrote: Cos i need to check if the printing is successful then i will have to trigger something if the user click cancel . it will not trigger the function
There's nothing. It's not possible.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
how to chk a control is present or not using codebehind
for eg if
tis hyperlink ctrl "HylEdit.Text" is not present then the code should skip the control
and apply changes to the controls present on that pages
for egs,
if HylEdit.Text is not present then it should chk for next ctrl lik
HylView.Text
if the above ctrl is present the it shoul apply for HylView.Text=rm.GetString("View", ci)
the fn is lik tis
Private Sub LoadStrings(ByVal ci As CultureInfo)
HylEdit.Text = rm.GetString("Add", ci)
BtnClear.Text = rm.GetString("Clear", ci)
BtnSave.Text = rm.GetString("Save", ci)
HylView.Text = rm.GetString("View", ci)
|
|
|
|
|
findControl(Control). If it is NULL it is not there.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
if the ctrl is not there declaration error is
comin in find control statement...
if i fincontrol gridviw which is not in t page it shows
errror tat gridview is not declared
|
|
|
|
|
Are you testing Visual Studio.NET? By the way, not a bad idea for next version of VS2010.
There is no foolish question, there is no final answer...
|
|
|
|