|
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.
|
|
|
|
|
*****************for prompting message box*****************
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
ImageButton img = new ImageButton();
img = (ImageButton)e.Row.FindControl("imgdelete");
img.Attributes.Add("onclick", "javascript:return " +
"confirm('Are you sure you want to delete this record " + DataBinder.Eval(e.Row.DataItem,"propertyid") + "')");
}
***********delete row after click on ok of prompt window***********
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
if (GridView1.Rows.Count > 0)
{
string s = GridView1.DataKeys[e.RowIndex].Value.ToString();
SqlCommand cmd = new SqlCommand("delete from property_info where propertyid=@propertyid", conn);
cmd.Parameters.Add("@propertyid", SqlDbType.Int).Value = s;
cmd.Connection.Open();
cmd.ExecuteNonQuery();
cmd.Connection.Close();
}
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Delete")
{
int s=Convert.ToInt32(e.CommandArgument);
SqlCommand cmd = new SqlCommand("delete from property_info where propertyid=@propertyid", conn);
cmd.Parameters.Add("@propertyid", SqlDbType.Int).Value = s;
cmd.Connection.Open();
cmd.ExecuteNonQuery();
cmd.Connection.Close();
}
}
|
|
|
|
|
hi
You Bind GirdView every Time or In IspostBack Event..
try with
bind girdview in PageLoad event Like this
if(!IsPostBack)
{
bindgrid();
}
may be ur problem solve
Jintal Patel
|
|
|
|
|
ya i have caught this problem, anyways thax alot for helping.
|
|
|
|
|
hi,i am display image in gridview but when i click a image button error display,
//**********************error*******************
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %>in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation
//***********************************************
how to solve the problem.if u know the answer replay soon
modified on Saturday, February 16, 2008 4:40 AM
|
|
|
|
|
Hi,
I want my application to automatically read the unread email from mailbox and store the content i.e sender, subject and body of the mail etc in the database.
I don want to restrict my application to read mails only in the outlook.
Is is possible to do this using ASP.NET. If yes then please tell me how to go ahead with this.
Thanks a lot!
|
|
|
|
|
|
Hi - there are loads and loads and loads more articles on CodeProject which show this. Do a search!
"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.
|
|
|
|
|
How can i fetch a row of values from dataset, I Prefer to the row type, the one that created by dataset.
What is a advantage and Disadvantage of Dataset and DataReader?
|
|
|
|