|
Colin Angus Mackay wrote: Not professional web developers I suspect
Colin Angus Mackay wrote: Yusuf.A wrote:
I use tables to position my controls, and in most cases I don't see any problem using it.
It buggers up many accessibility features. People with vision difficulties who use screen readers won't thank you. There are also Search Engine Optimisation implications (according to the SEO specialist in my office) that make tables a poor choice.
Well, may be I should have put some disclaimer on my statement. I know and I agree with the HTML table you raised. But then it depends on who your target audience are. In my case, our application is targets to specific audience, for that this is not an issue.
Colin Angus Mackay wrote: It buggers up many accessibility features. People with vision difficulties who use screen readers won't thank you.
This is true, but how will these people use screen reader for DataGrid? we all use them pretty much in many pages. They get rendered as tables.
Colin Angus Mackay wrote: There are also Search Engine Optimisation implications (according to the SEO specialist in my office) that make tables a poor choice.
This is not an issue for us. We don't allow search engines to crawl our app, because there are many customer proprietary data we can not spill out there.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Adding to that, browsers take more time to render the page if it is contained in a main table. Something like
<body>
<table id="main" >
...............
...............
...............
</table>
</body> Browser can render the main table only when it gets the ending node of it which is at the end of the page. This may make rendering slow if your page is big. But a page design with small tables (without wrapping in a main table) looks OK to me.
|
|
|
|
|
Colin Angus Mackay wrote: Not professional web developers I suspect.
Could you please suggest another approach, a more "professional" one ?
|
|
|
|
|
I am working on a website remotely using VS2005. When I change a file, I save my changes and then close the file in the editor. Once I compile, I get a message:
This file has been modified outside the source editor. Do you want to reload it?
The file is not open anywhere else and I am the only person working on it. Whether, I press ReLoad or the Ignore it causes weird behavior: For example, I have a break point set at the login screen but debugger skips the login screen and stops somewhere at another breakpoint.
If I close VS2005 then re-open the website all is fine and the debugger stops where it is supposed to. But this is very tedious because everytime I make a change I have to close VS and re open the website.
Why is this happening? I do not have the project open in multiple instances of VS or anywhere else
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
I am making a website and want to integrate a plagiarism software in .NET, can any one please tell me that where can i find or use plagiarism software for detection or any software with source code.
Thanks
|
|
|
|
|
What do you want to detect, someone copying your website on another site, or someone copying your code ? If the former, use google, if the latter, I assume you are joking.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
sorry sir i forgot to mention that, i am making a website in which a research document can be uploaded and an online plagiarism application/software can check plagiarism with results for e.g(www.plagiarsimdetect.com). Can you please tell me that is there any application with source code or online services which can do that
thanks
|
|
|
|
|
I have an ASP web application. with three asp:dropdownslists. The lists work fine in IE, but when on Firefox (v3.0.7), I can not gain focus on the control with the mouse. I can however tab onto the controls, and use the arrow keys to select focus. I can't get the list to "drop down" even when using the keyboard. Any one have any ideas?
Code For one of the drop downs is......
**********************************************************************************************************************
<asp:dropdownlist id="cmbRaceDates" runat="server" autopostback="True" xmlns:asp="#unknown">
VB Code
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
getRaceDate()
End Sub
Private Sub getRaceDate()
Try
cmbRaceDates.Items.Clear()
cmbRaceDates.Items.Add("Please Select A Race Date")
While Reader.Read
cmbRaceDates.Items.Add(Value To Be Displayed)
End While
cmbRaceDates.Visible = True
Catch ex As Exception
System.Diagnostics.Debug.Write(ex.Message())
Finally
End Try
End If
End Sub
Protected Sub cmbRaceDates_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbRaceDates.SelectedIndexChanged
Do Stuff
end sub
**********************************************************************************************************************
Any Help would be greatly appreciated!
Ryan
|
|
|
|
|
Have you tried removing the autopostback property ? Obviously, ASP.NET is generating HTML that FIrefox doesn't like.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
1) Next time you post a question, post it in proper english. Type 'we' instead of 'v' and someone might help you.
2) Post the portion of code where you are having a problem with
3) Use google to find your answer
To move to the next record, use the .Read method.
SqlDataReader dr = comm.ExecuteReader();
dr.Read();
|
|
|
|
|
I have created a simple gridview in my aspx file and tried to add this gridview to a placeholder in the aspx.cs file, but it does not work. To control the placeholder I am using a sytle sheet. If I create the gridview in the aspx.cs file, then add it to the placeholder it does work. Code snippets are below. All I want to do, is add gridviews to placeholders, which seems simple enough. Any help is appreciated.
Created gridview in aspx file as:
<div id="CssGridView1" runat="server"><asp:PlaceHolder ID="PHGridView1" runat="server"> </asp:PlaceHolder>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
Page load in aspx.cs file:
protected void Page_Load(object sender, EventArgs e)
{
PHGridView1.Controls.Add(GridView1);
}
Stylesheet:
#CssGridView1
{
background: #f9f;
position: absolute;
top: 45px;
left: 0px;
width: 900px;
height: 400px;
border: thin solid #990000 ;
}
|
|
|
|
|
You should be able to do it without any problems.
Are you getting any error?
but if you are dynamically changing the hierarchy of controls on apage they can;t make use of the View State.
Let me know whatz the problem you are facing.
Regards,
Cybernate
|
|
|
|
|
There are no errors, the gridview has the correct data, except the gridview is not is the placeholder, it is where I have positioned the gridview on the form. If I create the gridview in the aspx.cs page, then it works. Thanks
|
|
|
|
|
OK, I'm fairly green with ASP.net and I keep running into the same problem and I've solved it in various ways but none to my satisfaction.
What I want:
- To be able to click on a button/link or choose an option from a dropdownlist and have a tab be updated immediately with data supplied by the event set off by the button/link/dropdown.
What I can do so far:
- First click updates the tab and *then* sets the necessary variables that my tab needs to update properly. A second click re-updates the tab correctly.
So, I use the OnClick event (or similar) of the button to set Session variables (values of which may come from a db) that the tab's OnLoad event needs to load itself properly. Unfortunately, the OnLoad of the tab happens before the OnClick of the button.
Question:
- What is the standard, non-javascript, way of making a C# function happen before the button engages the OnLoad event? Preferably I'd like the OnLoad to only happen once, but if the only way is for the thing to be set off twice, I can live with that.
Alex
|
|
|
|
|
google ASP.NET page life cycle. The on load event will ALWAYS occur before the On click event. Once you understand the cycle better it will help you rearrange your code to fit it to get the desired results
|
|
|
|
|
That's my question: How *do* I rearrange my code to fit the desired result?
Or, is there some AJAXy thing I can do to the button that will allow code to run first and then load a control?
(I should have mentioned that I have looked at the page lifecycle and I still have no idea how to accomplish what I need. My workaround so far has been requiring a selection of an item (datagrid selection, dropdown selection, etc.) and then a button click to confirm the selection.)
Alex
|
|
|
|
|
You had not indicated it was in a ajax call. Typically when an item is not updated in a ajax call even though you attempt to on the server side, the item that does not update isn't in the ajax container that is being updated and therefore doesn't change on the client but the server thinks it has still. A 2nd postback reveals the change.
edit for typo
modified on Wednesday, March 25, 2009 8:58 AM
|
|
|
|
|
Well, in this case, the problem is that I click the button and...
1. The tab, I want updated, gets updated with old information thanks to obsolete session variables and whatnot.
2. The C# code executes - changing the session variables to the values I need (the values being decided by which GridView row the user selected and/or by querying the db).
Result: A tab with old information.
What would I need to do to recover the correct values I need and then update the tab with one click/selection?
Alex
|
|
|
|
|
make sure the tab is part of the ajax update. Make the changes in the onclick event. Is the tab in a update panel that is updated by the button? If not your changes will not be visible until another postback occurs. On sucessful execution of a ajax call, only items in the panel for that update change on the client. The server side viewstate however is updated with all changes. When a 2nd post back occurs, the changes from the viewstate end up showing on the client. I don't know how to be more specific.
|
|
|
|
|
I think I'll be able to figure it out from there - thanks for all the help.
Alex
|
|
|
|
|
I have a collection of 50 textboxes. I was wounding if it is possible to run a TextChange Event on a collection of textboxes instead having to add each event handler in individually.
The code behind is VB
modified on Tuesday, March 24, 2009 12:02 PM
|
|
|
|
|
Hi,
If the text boxes are not dynamic then it is very easy to make that as :
<asp:textbox id="TextBox1" runat="server" ontextchanged="TextBox_TextChanged" autopostback="True" xmlns:asp="#unknown">
<asp:textbox id="TextBox2" runat="server" ontextchanged="TextBox_TextChanged" autopostback="True" xmlns:asp="#unknown">
so on and so forth ....
in code behind
protected void TextBox_TextChanged(object sender, EventArgs e)
{
TextBox txt = ((System.Web.UI.WebControls.TextBox)(sender));
}
you can easily get which textbox changed event is called
Regards,
Milind
|
|
|
|
|
U must have assigned ID to all of ur textboxes whether u create it dynamically or us it beforehand as a static control
so u can create a centralized event handler for all ur textboxes
for eg. if i have two textboxes with their ID as say t1 and t2 respectively then
i will use this method to act as a centralized event handler for textchange d event of both as
void TextBox_TextChanged(object sender,EventArgs e)
{
TextBox t = (TextBox)sender;
switch(t.ID)
{
case "t1": Response.Write("Text Changed in t1");
break;
case "t2": Response.Write("TextChanged in t2");
break;
}
}
|
|
|
|
|
Hi
i am in requirment that,
i have a gridview with data binded. different row has different status.
on mouse hover of the status in the grid, i want to display a some message based on status of the record,
ex: if the rec is at initial stage, on mouse hover it should show all pending status like approval,review,close......
these status should be links. should be able to click on links also.
is it possible to give me some code example......
Would be very thank ful if this is sorted out.
Regards
Naina
|
|
|
|