|
I recently rolled out a change where I changed the old javascript menu (that only worked in IE) to a new menu using the ASP.NET menu control (so it works in other browsers). I have one user with Windows XP and IE6 where the flyouts on the menu appear at the top of the page rather than next to the menu control like it does on every other computer/browser combination I tested on (and that other users are using). I installed all the patches for IE6 from windows update, but I can't move to IE7 since the company has other internal apps that don't work on IE7. This same computer can do another application I built with the ASP.net menu control perfectly.
Any idea why this happens? I might just go with a pure CSS menu, but its hard to beat the simplicity of the menu control.
|
|
|
|
|
In my Gridview rowUpdating event, am not able to retrieve e.NewValues.
e.NewValues and e.OldValues everything returns empty.
Can you please help?
Thanks.
|
|
|
|
|
Are they by any chance keys? I run into this problem once:
"This property does not contain the key fields. To access the key fields, use the Keys property. You can also access the original field values by using the OldValues property."
msdn[^]
[ 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
|
|
|
|
|
e.Keys.Count , e.NewValues,e.OldValues, even e.RowIndex everything returns 0.
What I want to do is, store the grid in the dataset and then when the row is edited,
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) is called.
now after all rows are updated, the updated grid will be stored in the dataset and finally everything will be pushed into db on Save button click.
Can you please help me how to do this?
Thanks
|
|
|
|
|
Hi there,
it worked fine. For almost decades now:
I create a C# Webproject and set the project options to Debugging->Always
use IE = false (translated from german). When starting to debug the project
it fires up with Firefox since this is my standard browser.
Since a couple of days it does not work this way anymore. Eventhough Firefox
is still my standard browser (yes, I checked tripple), IE will fire up when
pressing F5.
Any ideas on how to solve this?
Greetings from Berlin, Matthias
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
right click the web project and select Browser With option
|
|
|
|
|
thanks a lot. that helped.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Hi,
if i make a static method, that gets Data from my DB, will the method be threadsafe? I mean while one user requests some data and the method is running, can another user that wants to do the same, read/write the variables in this static method?
I know it's a beginners question, i searched a lot but i didn't find an answer.
Thanks for helping me in advance.
|
|
|
|
|
Variables declared locally in a static method are thread safe. Static variables declared in a class or structure are not thread safe.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank you very much!
|
|
|
|
|
:(I have web site developed using asp.net 2003 with code behind C#
the main page of the web site contains header,
also has a menu (vertical) and footer .
in the center of that page i have iframe that all pages in the web must open in it. and that happened well when you use the menu
BUT when search engines list my web pages and open them they are oppend alone without header, menu or footer (not in their iframe)
any solution
|
|
|
|
|
IFrames are bad stuff as far as SEO.
What I would do is add some logic to the pages that are being iframed that will check the referer. If the referrer is Google, Yahoo, etc. then do a 301 redirect (Response.Redirect will do that) to the main page with a parameter in the query string telling which page to load in the iFrame. The main page that has the menu will need to check for that param in the query string and load the iframe with that page.
After that, redesign the site to not include iFrames and use MasterPages instead.
|
|
|
|
|
Preferred solution: Don't use an iframe. Using an iframe in that way is just like using a frameset, which has exactly the same problem.
If you absolutely want to use an iframe, you have to put a Javascript on each page that checks if the page is opened in an iframe or not, and redirect to the main page if it's not. In the main page you have to add code to handle when the page redirects with the Javascript, so that you open up the correct page in the iframe.
This solution will of course not work if Javascript is disabled. Then there is no solution at all. Other than the preferred solution, of course.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have a grid view with bind to a sqlDatasource
and I have a repeater that i want populate, according with the selected item in the grid view. and the data comes from a relational tables. here is the grid view and and the sqldataadapter, I know i am doing something wrong, but i dont know what it is, help please
asp:GridView ID="GridView1" <br />
runat="server" <br />
AutoGenerateColumns="False" <br />
DataKeyNames="EventId"<br />
DataSourceID="SqlDataSource1" <br />
SelectedIndex="1">
<Columns><br />
<asp:CommandField ShowSelectButton="True" /><br />
<asp:BoundField DataField="EventName" <br />
HeaderText="EventName" <br />
SortExpression="EventName" /><br />
</Columns>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:vpx_newConnectionString %>"
SelectCommand="SELECT * FROM [Events]"></asp:SqlDataSource>
and here is the the sqldataadpter
Sub BindData()<br />
'Read sample item info from XML document into a DataSet<br />
Dim cnn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("vpx_newConnectionString").ToString)<br />
cnn.Open()<br />
Dim cmd As SqlDataAdapter = New SqlDataAdapter("select * from mediaphotos Where EventID =" & GridView1.SelectedValue, cnn)<br />
<br />
Dim ds As New DataSet()<br />
cmd.Fill(ds)
-- modified at 10:13 Monday 17th September, 2007
|
|
|
|
|
I think u want to filter your data in GridView.
so for that u have to use DataView concept .
u can use dataview.filter=Expression.
MBMB
|
|
|
|
|
Thank for answering, i might be do that, thanks
|
|
|
|
|
For some reason when I have a Update Panel around a grid and try using a dataFormatString it doesn't work. My code is correct because I have used it before without an updatePanel.
DataFormatString="{0:MM-dd-yyyy}"
Any thoughts
|
|
|
|
|
Here is my example:
DateTime.UtcNow.ToString("MM-dd-yyy");
|
|
|
|
|
hi all,
i have a problem in asp.net, i have 2 folders in my application and i want to give permissions to the folders thru web.config file so that based on permissions to folders access will be given to them
can someone suggest me which section i need to use to get this functionality
Thanks
Sri
|
|
|
|
|
Use Authorization section from web.config file to aturorize to perticular users.
u can use <deny> tag to deny to perticular users.
<deny users="*">
<deny users="?">
|
|
|
|
|
Hi everybody,
i'm trying to run an asp.net(2.0) application on iis 6.0 with the rights of a specific user.
(Using the rights of the default networkservice resulted in an access violation while trying to write a file into a folder. So i've created a user with the rights i needed to write into the file system)
but now i have got another error message:
File or assembly ADODB or a dependency was not found. Access denied.
i suppose the account needs more rights to run the application with all its dependencies but how can i found out which rights do i have to grant to the account?
Or in other words which rights needs an account to run an asp.net application that uses the ADODB.dll
thanks for help
Andreas
-- modified at 15:10 Monday 17th September, 2007
|
|
|
|
|
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;
|
|
|
|