|
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
|
|
|
|
|
Hi to all,
I want to implement blog and forum in my project.
Is there any open source available which in written in asp.net and
vb.net through which i can implement blog in my project.Please
tell me if there any opensource software available and how can
i use it in my project?
Thanks.
Rahul
Rahul.
|
|
|
|
|
rahul.net11 wrote: I want to implement blog and forum in my project.
Is there any open source available which in written in asp.net and
vb.net through which i can implement blog in my project.Please
tell me if there any opensource software available and how can
i use it in my project?
Yes. You might want to look at SubText - I don't know what language it is written in though.
There are also blog and forum modules for DotNetNuke which is open source, so you might want to look at that - They are written in VB.NET to my knowledge.
|
|
|
|
|
Thanx
I seen SubTex but it is written in C# and it support asp.net 2.0 and
same as DotNetNuke. I need an opensource software which is written in
vb.net and support to qwp.net 1.1. Is there any?
Thanks.
Rahul.
|
|
|
|