|
yea I totally agree with u. I just want to learn using DIVs as well u know.
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
|
As Paddy said, if you are displaying tabular data then use tables - that is what they are designed for. The whole issue surrounding tables is to not use them for other purposes, such as page layout. Google does not give preference to divs, but it may give preference to sites that are semantically clean as these sites will be 'easier' to parse. A site that uses a table to display tabular data is semantically clean and will display properly in all browsers. A site using divs to display a table of data will likely look a mess in some browsers (for example, a screen reader will have no idea what it is you are trying to display).
|
|
|
|
|
Is it able to get the physical (MAC) address of the network interface card from client side?
|
|
|
|
|
With plain old HTML and JavaScript? No
|
|
|
|
|
Hi all,
I am trying to develop a web application in which I want to have a list box in a form.
It should be able to drag and drop the files on to it. It should just capture the file name with the path.
I am able to do this in a Windows application, by setting the "AllowDrag" property of the list box to true.
How can I achieve this in Web application? For the matter of fact I just want to capture all the names of the files that are dragged on to the form. It need not be list box alone. any other control will also do.
Any ideas please.
Thanks you all in Advance.
-Ram
|
|
|
|
|
Sorry, but it's not possible to do that in a standard web page
|
|
|
|
|
Hi,
Is there any work around? or using AJAX is it possible?
or Can I call a Windows application from a web application and get the file names using DB or through session?
-Ram
modified on Wednesday, December 19, 2007 3:56:48 AM
|
|
|
|
|
ram1974 wrote: using AJAX is it possible?
No.
ram1974 wrote: Is there any work around?
If you are using Flash or ActiveX and the user of your side added your side in trusted list in IE then it's possible..
|
|
|
|
|
Hi all,
am using asp.net 2.0 with ajax...
how to do drag and drop a child node of a treeview to another treeview.....
i have two treeview with same nodes
Ex:-
treeview1
-Oasys
-Accouts
-Finance
-Admin
-Sales
-Administration
treeview2
-Oasys
-Admin
here if i drag accounts from treeview1 and drop it in treeview2 it should come under the oasys of treeview2....
how can i do this?.....
|
|
|
|
|
Hi everybody...I'm required to make changes to somebody else's system and they've got deprecated DOM references all over the place. I would prefer to write using calls to the current DOM, but I honestly can't think of a replacement for a call that was made. Does anyone know of a call to replace this?
function populateCallingForm(value){
var obj = document.all.txtControl.value;
parent.opener.document.all(obj).value = value;
}
...the gist of this: a web application was developed that tries to provide client/server functionality(oh gee....surprise surprise) and a button click event fires off a javascript function that opens a form inside a "window.open()" call and passes disgustingly ambiguous parameters(you don't want me to explain lol) into the QueryString. The form inside the new window reads the QueryString and stores the id of the calling control in 'txtControl.' When the "new" form is closed, the value that was selected on it needs to be transported back to the page that called it in the first place....never done this on the web before, because this is client/server functionality ...and for some reason they chose against AJAX to do this, (they used the old IE4/Nav4 DOM)
"I need build Skynet. Plz send code"
|
|
|
|
|
Hi Guys,
I'm using FileUpload control, but Im having problem putting the value of FileUpload1.FileName to a Textbox1.Text. I tried using prerender but still it doesn't work.
Is there a way to reflect the value from FileUpload1 to textbox1?
Below is my simple sample code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>test upload</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload ID="FileUpload1" runat="server" />&nbsp;<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" Width="228px"></asp:TextBox>
</div>
</form>
</body>
</html>
'----------------------- VB Code Behind ----------------------
Partial Class testupload
Inherits System.Web.UI.Page
Protected Sub FileUpload1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles FileUpload1.PreRender
TextBox1.Text = FileUpload1.FileName
End Sub
End Class
hifiger2004
|
|
|
|
|
|
I tried that already but still doesn't work
hifiger2004
|
|
|
|
|
have you invoked the debugger? Put a breakpoint and a watch on your line and see what "FileUpload1.FileName" contains at the point of the PreRender event where you are trying to assign it to the text value. My guess is that you're trying to access the property at the wrong stage of the Page Event Lifecycle[^]
"I need build Skynet. Plz send code"
|
|
|
|
|
yep, I tried debugging thru breakpoints to all events in page and fileupload but still I can't find the problem. It will not stop to any of the breakpoints I marked after I choose a file thru the fileupload browse button.
hifiger2004
|
|
|
|
|
Really? It won't stop on your breakpoints? Try putting in something like:
int i;
i = 1+1;
in your page_load (and your PreRender) event and then try debugging it again. ...If it won't stop on your breakpoint, try cleaning your solution, make sure that your Configuration Manager is set to "Debug" and rebuild the solution. Then hit F5 and see if it hits your breakpoint...once you can get it to actually hit a breakpoint, try to put a watch on the relevant line and come back and tell me what FileUpload.FileName is storing.
...And btw, what exactly is happening when you try assigning this value to Textbox1.Text? Are you getting an Object Reference not set to an instance of an object exception? Does the text get assigned an empty string? A little bit more information as to what exactly is happening might help diagnose the issue.
"I need build Skynet. Plz send code"
|
|
|
|
|
At first when the page open it will stop at the breakpoint which I marked, but when after clicking the "Browse" button and select any file the breakpoint won't stop.
And my configuration in web.config and in my page were set to debu="true".
Do you think the upload control can trigger the page_load or prerender event?
Any idea?
hifiger2004
|
|
|
|
|
hifiger2004 wrote: Do you think the upload control can trigger the page_load or prerender event?
ASP page events such as Page_Load and the PreRender events can not be selectively fired. Any time a page refreshes or posts back, the ASP page event lifecycle determines your processing order.
...If the upload button that you have on your page to submit the file is actually executing, you should be fine.
You do realize that the FileUpload control can't be used by itself, correct? You have to have another server control on the page that posts your FileUpload control's file to the server. Did you read the msdn entry that I posted in here? ...Read the whole thing including the example and Remarks section at the bottom(as I intended you to do when I posted it in the first place). It should have all of the information you need. You're probably trying to access the FileName before it is actually posted to the control....and if your breakpoint isn't being hit in a Page_Load, you have some kind of a configuration issue(which can be as extremely minor as selecting the wrong deployment mode)
hifiger2004 wrote: And my configuration in web.config and in my page were set to debu="true".
...What IDE are you using? Visual Studio? ...you need to make sure that the configuration MANAGER (not the config file) is set to "Debug" mode(the drop down box next to your "play" button) ...if you try to build in Release mode, the information required for debugging will not be generated.
"I need build Skynet. Plz send code"
|
|
|
|
|
I am using Visual Web Developer 2005 Express Edition. And the configuration also of the configuration Manager here is set to debug. But still no luck.
I'm having hard time for two days already about this issue
hifiger2004
|
|
|
|
|
If that is ALL of the code in your class(the first time I read it, I thought it was a snippet), then part of the reason you can't assign anything to the text property of the textbox is that the FileUpload control has no FileName specified for it. I honestly don't see what you are trying to do with this. You might need to consult some beginner's programming literature.
btw, never leave your controls with names like "TextBox1" and "FileUpload1"; rename them to something meaningful, for example "txtFilenameInput" and "upHomework" or whatever names would be applicable to your specific business rules.
"I need build Skynet. Plz send code"
|
|
|
|
|
when I added a button and place the code here - textbox1.text = FileUpload1.Filename, when I click the button it will display the filename in the textbox1, fine there's no problem.
But what I am trying to do is to display only the filename and not the complete filepath (c:/temp/temp.xls) of the file. Because in FileUpload control once you select a certain file it will bring up the entire filepath. That's why I am trying to make a program that will pass the Upload1.filename into the textbox1 (Filename alone, ex. temp.xls, temp.doc, temp.exe, etc.)
I hope you understand what I mean
hifiger2004
|
|
|
|
|
Hai,
I have a grid in my application with the revenue values of a company in one coloumn. I need to validate the data entered in that field and need to change the background color of that perticular field if it contains negetive value.
Thanks in advance......
Chandu.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|
|
Add an event to the control you are willing to validate for value.
eg: textbox1.Attribututes.add("onclick","javascript:checker1();");
in the page load and write your validation script in the javascript.
|
|
|
|
|
Hi,
I’m using Visual Studio 2005 and Access 2000 on Win XP. (I have Access 2007 also, but I’m concerned about backward compatibility.)
After working as a computer programmer for years, I changed careers and became a school teacher. I still love to program, but I have fallen behind on the learning curve. I have plenty of experience with VB6, Access, and SQL Server, but I have zero experience with web apps.
I now want to develop a very simple website that lets students log in and check their grades and missing assignments. Can you suggest a good tutorial/example for a VERY SIMPLE web app that includes MS Access 2000?
Thanks,
Joe
|
|
|
|