|
Hi all,
<body onscroll="alert('this is sandeep')">
it is not showing any error and alert also what could be the problem
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Yes, it does. I've tried it in IE7 and Firefox 2, and it works just as expected.
In what situation do you experience problems?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hey Guffa ya its working fine
but i want to display a menu that will change its position like this
http://www.publicjoe.co.uk/csharp1/sort05.html[^]
Just want to ask how can i get new co ordinate of left and top screen
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Like this:
var x, y;
var b = document.body;
var h = b.parentNode;
if (navigator.vendor && navigator.vendor.indexOf('Apple') != -1) {
x = b.scrollLeft;
y = b.scrollTop;
} else {
x = h.scrollLeft;
y = h.scrollTop;
}
(Tested in IE6, IE7, Firefox 1, Firefox 2, Netscape 8, Opera 9 and Safari 3 beta.)
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks Guffa
Sorry for late reply. I am not geting any mail notifications for the replies that's why could not able to see your answer
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi there,
Can anyone recommend the best book to learn ASP.Net 2.0 and C#.
I have been developing in these languages for a while but I need a good refresher book with good examples and easy understanding.
I need to buy myself a decent book asap.
Thanks
|
|
|
|
|
MSDN 2.0 is best one learn online or install it
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
"but I need a good refresher book with good examples and easy understanding."
Sandeep Akhare wrote: MSDN
LOL!
MSDN is anything but "with good examples and easy understanding". It's the ultimate reference, but as bok to learn from, no.
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
asp.net2.0 unleased,wrox publications asp.net2.0 begining
|
|
|
|
|
i have given form authentication for my login page.
i kept all the secured pages in one folder names "Secure".
but when am trying to access the pages in Scure folder its every time redirecting me to the Login page, its not redirecting to the corresponding page.
|
|
|
|
|
|
Greetings all,
So im new to web applications.
Im trying to come up with a simple web site in which i have different levels of authentication. Let me explain:
The are some pages in my application which are free to be viewed by all. And then there are others which are confidential and hence the user need to login in order to view them.
How can i do this? do i need several web.config files placed in the various folders of my application?
thank you all
Pete.
|
|
|
|
|
|
Hi
Can any one give me code for gridview sorting. I am using dataset as datasource of gridview.
Thanks & Regards
Mishra
|
|
|
|
|
|
private DataSet GetData()<br />
{<br />
SqlConnection myConnection = new SqlConnection(ConnectionString);<br />
SqlDataAdapter ad = new SqlDataAdapter("SELECT * FROM Categories", myConnection);<br />
<br />
DataSet ds = new DataSet();<br />
ad.Fill(ds);<br />
return ds; <br />
}<br />
<asp:GridView ID="GridView1" runat="server" AllowSorting="True" OnSorting="GridView1_Sorting"><br />
</asp:GridView><br />
<br />
public SortDirection GridViewSortDirection<br />
{<br />
get<br />
{<br />
if (ViewState["sortDirection"] == null)<br />
ViewState["sortDirection"] = SortDirection.Ascending;<br />
return (SortDirection) ViewState["sortDirection"]; <br />
}<br />
<br />
set { ViewState["sortDirection"] = value; } <br />
}<br />
<br />
protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)<br />
{<br />
string sortExpression = e.SortExpression;<br />
if (GridViewSortDirection == SortDirection.Ascending)<br />
{<br />
GridViewSortDirection = SortDirection.Descending;<br />
SortGridView(sortExpression, DESCENDING);<br />
}<br />
else<br />
{<br />
GridViewSortDirection = SortDirection.Ascending;<br />
SortGridView(sortExpression, ASCENDING); <br />
} <br />
}<br />
<br />
private void SortGridView(string sortExpression,string direction)<br />
{<br />
DataTable dt = GetData().Tables[0]; <br />
DataView dv = new DataView(dt); <br />
dv.Sort = sortExpression + direction; <br />
GridView1.DataSource = dv;<br />
GridView1.DataBind(); <br />
}<br />
Ramana
|
|
|
|
|
Go to Properties of Grid View and Set Allow Sorting as TRUE
|
|
|
|
|
How to Upload Image in asp.net 2.0?
|
|
|
|
|
Use File control of asp.net
mbmb
|
|
|
|
|
I want to Upload Image from hard drive and save in Image folder in my project.... I am using File Upload control....Send me code for button click event
|
|
|
|
|
<br />
protected void UploadBtn_Click(object sender, EventArgs e)<br />
{<br />
if (FileUpLoad1.HasFile)<br />
{<br />
FileUpLoad1.SaveAs(@"C:\temp\" + FileUpLoad1.FileName);<br />
Label1.Text = "File Uploaded: " + FileUpLoad1.FileName ;<br />
}<br />
else<br />
Label1.Text = "No File Uploaded.";<br />
}<br />
Ramana
|
|
|
|
|
I want to Save Uploaded Image in my project... But when i use ur code the image was not in the target location(C:\temp)...
|
|
|
|
|
use Server.MapPath(""); instead of c:\temp
if u are storing in sepearate folder, u have to set folder write Permissions, right click goto security tab...
Ramana
|
|
|
|
|
please help me. how can i display my content using pagination.
|
|
|
|
|
Two applications are accessing a same database.First is the vb6 application and another is the asp.net c# website.Now my question is when the website access the database , after completing the request it closes the question , still it renders the database in read only file state.y this is happening?
Soniagupta1@yahoo.co.in
|
|
|
|