|
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?
|
|
|
|
|
Saksida Bojan wrote: What is a advantage and Disadvantage of Dataset and DataReader?
"As with many developer decisions, there is no clear-cut choice between using a DataSet or a DataReader."
Hmmm....in my own thinking, it seems clear that DataSets+DataAdapters are a better choice for smaller projects where:
* The development time can be considerably shortened by avoiding creating business object classes and using the nice relaitonal/table-like features of the DataSet
* The underlying tables are very simple, which again ties in with the RAD aspect of DataSets since you can rely on auto-generated Update-, Delete-, and InsertCommands.
On the other hand, when working on larger object oriented systems, a DataReader will generally always perform better than a DataSet. Using try-catch-finally/using (C# only) (like a any good developer), you can always ensure that if there is an error, you close the underlying connection. You also get more flexibility in how your object relationships are represented, but at the cost of having to build those relationships manually.
So it seems pretty clear-cut to me. DataSets are great for RAD and if your application deals with the underlying data in a table-like manner (typed-DataSets abstracts this somewhat into a more object oriented manner). If you want the best performance and most flexibility, DataReaders+custom business objects are the way to go.
SSK.
|
|
|
|
|
If my project voud require more performece, i will update it to DataReader.
It woud be easier to change from DataSet to DataReader once you have all tables.
And what about this question.
How can i fetch a row of values from dataset, I Prefer to the row type, the one that created by dataset?
|
|
|
|
|
Hi,
I need to add entries (key and values) to a EXISTING resource file (resx) programmatically. Can anyone plz help me on this?
Thanks
Carpe diem,
Krg
|
|
|
|