|
I have a problem I have inserted an formview control to my aspx form. I want to update the record shown in the form view without accessing the editItemTemplate.
How can I do that?
BiG RaLpH
|
|
|
|
|
In my opinion you shouldn't be doing any form of database access on an ASPX form. You should be creating a DAL to handle database interaction.
|
|
|
|
|
Hi,
I am displaying image in html image control without runat=server. The image src is set runtime by some condition, I am using server script for setting image src. This works fine in IE. But it it does not displaying image into Mozilla. I have dibugged the code the function for setting the Image src had called.
Naresh Patel
|
|
|
|
|
N a r e s h P a t e l wrote: The image src is set runtime by some condition, I am using server script for setting image src. This works fine in IE. But it it does not displaying image into Mozilla. I have dibugged the code the function for setting the Image src had called.
So what we can do without seeing a sample code ? Is your image tag refers from root like /images/imagename.gif or it refers like ~/images/image.gif ? If your image tag is not runat server then you can remove ~ ( if you are using ).
|
|
|
|
|
string _ReturnUrl;
public string SetImage1(bool _Active)
{
if (_Active)
{
_ReturnUrl = Server.MapPath("../images/button-green.gif");
}
else
{
_ReturnUrl = Server.MapPath("../images/button-red.gif");
}
return _ReturnUrl;
}
and accesing in grid view Like
" />
Naresh Patel
|
|
|
|
|
N a r e s h P a t e l wrote: _ReturnUrl = Server.MapPath("../images/button-green.gif");
To show image in browser, no need of Server.MapPath() . This gives exact location to the image. We need only virtual path. So try removing Server.MapPath
|
|
|
|
|
Server.MapPath gives you the physical address of the file on the server. That is useless to the browser, and the only reason that it may work at all is if you are browsing on the same computer that is acting as a server.
Just remove Server.MapPath.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks yaar for helping:
I got solution:
" />
Naresh Patel
|
|
|
|
|
Hai,
i have a problem i want to show my error message in a div field that placed in the master page ..
public void SetError(string errorMessage)
{
divErrorMessage.InnerHtml = errorMessage;
}
ok. then each page if something have to show then i call like'
(this.Master as View_pages_MasterPage).SetError(CustomResourceManager.ReadResourceName("Resx_ViewDamageReport_StatusUpdation_ErrorMsg"));
here the error message will come...
what i want is i want to show that div only error is come means once i set some error message in that div otherwise that div will be invisible...because div has some background color...
please give me some help..
alex.
|
|
|
|
|
i want to add image or logo beside my titlt page
some thin like this
i want this tag include text and image also
<title >my image+Home</title>
and the finale result is showing in the title bar in the browser
image + home
i hope u understand me
and thank's in all cases
Kareem Elhosseny
|
|
|
|
|
Please don't repost questions so soon. It's considered rude and clutters up the forums. People will respond in their own time.
Paul
|
|
|
|
|
i'am sorry
Kareem Elhosseny
|
|
|
|
|
That's OK
I think I gave you the answer to your question in the other thread. I should point out at it only took me a couple of seconds to find lots of articles on Google about it. If you have a question, it is better to search the internet first before posting a question on CodeProject.
Regards
Paul
|
|
|
|
|
thx my dear i got wht i want
and here is the reslet to use it if u want
in
<head>
<link rel="shortcut icon" href="Images/favicon.ico" type="image/x-icon">/head>
Kareem Elhosseny
|
|
|
|
|
plz all i want to add logo beside my title page in the browser
how can i do that?
thx for all
Kareem Elhosseny
|
|
|
|
|
Insert either a <asp:Image> or a standard HTML <img> tag before the component that displays your title.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
thx for your attention
but can u display it more
where i can insert <asp:image> tag
Kareem Elhosseny
|
|
|
|
|
Have you read any HTML books?
<body>
<form id="form1" runat="server">
<asp:image runat="server" id="myImage" ImageUrl="~/myimages/mypic.png" />
THIS IS MY TITLE
</form>
</body>
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
i think my dear u misunderstand wht i want?
i want to add image or logo beside my titlt page
some thin like this
i want this tag include text and image also
<title>my image + Home
and the finale result is showing in the title bar in the browser
image + home
i hope u understand me
and thank's in all cases
Kareem Elhosseny
|
|
|
|
|
Do you mean displaying a logo in the address bar of the browser, like CodeProject does?
If so, Google[^] has plenty of articles on it.
Regards
Paul
|
|
|
|
|
yes that is wht i mean ?
Kareem Elhosseny
|
|
|
|
|
That has nothing to do with the title.
It's called a favicon[^].
---
single minded; short sighted; long gone;
|
|
|
|
|
thx dear i got it
Kareem Elhosseny
|
|
|
|
|
hi all,i m deleting row from gridview at click on imagebutton, i m prompting message before delete, when i click on ok button row_command or row_deleting event not fire.plz reply soon if u have any solution.
thanx.
|
|
|
|
|
We cannot tell without seeing your code, why it is not firing?
SSK.
|
|
|
|