|
|
So I'm using asp.net 2.0 and I'm creating a table and I use the width property
<table width="100%">
But the compiler says I need to use a newer construct.
So where did the width go? Do i only use it in style now?
Whats up with that.
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
What version of (X)HTML are you using?
But yeah style="width: 100%" is nicer. And you should use layers for building the layout.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
will its 2005 so it xhtml 1.0
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
That really dosen't matter what VS you are using. You can use XHTML 1.1 with 2003 ...
But I must say that is strange becouse attribute width is perfectly valid...
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Goal - is to set focus to the next textbox in a datarepeater.
Problem - I need to perform a calculation server side after the 1st textbox is changed. I can do this but turning the autopostback = "true". However when I autopostback, I need to set the focus to the next control in the row I was working on. Anyone have any ideas?
I use VB
|
|
|
|
|
Hi Friends,
I have a query, how can we access the HTML control from ASP.NET code behind. "FindControl" is throwing error.
Thanks in advance
Sheel Gohe
|
|
|
|
|
Is the element marked with the attribute runat="server" ?
|
|
|
|
|
No mike its not marked with the attribute runat="server"? its purely a html control "
Any solutions....
Sheel Gohe
|
|
|
|
|
Please try the following code
Request.Form.GetValues("chkSelect")
|
|
|
|
|
If you want to manipulate a server control or HTML element through server-side code, you must mark the element with the attribute runat="server" . In your case, you could certainly have the following:
<input type="checkbox" id="chkSelect" runat="server"/> Server-side then, the chkSelect object would be identified as the type System.Web.UI.HtmlControls.HtmlInputCheckBox , and you could inspect or manipulate it's properties (lookup HtmlInputCheckBox on MSDN for a reference).
You could certainly use a <asp:Checkbox id="chkSelect" runat="server"/> control instead. Any reason you're not?
|
|
|
|
|
Read this please.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I want to create a page in which I ask the user to upload files. I want to upload those files into some directory which is to be created dynamically. How can I open File Dialog on a page and then create a directory where I can save the file?
Thanks,
Sandy
|
|
|
|
|
u can use input file control or asp:FileUpload control to save in to a directory
coolsweety
|
|
|
|
|
but sweety I have checked, there is no asp:FileUpload control. The intellisense of Visual studio showed no such tag.
Thanks,
Sandy
|
|
|
|
|
It's a plain html control.
|
|
|
|
|
Hi, sorry i know this isnt a java forum but i do know that a few of you have some good java / .net knowledge.
I have the following code to create a pop-up window:
string popupScript = "<script language='javascript'>" +<br />
"window.open('"+strUrl+"', 'CustomPopUp', " +<br />
"',, menubar=no, resizable=yes')" +<br />
"</script>";<br />
<br />
Page.RegisterStartupScript("PopupScript", popupScript);
How do i add a scrollbar to the window?
Thanks!
munklefish
|
|
|
|
|
munklefish wrote: i know this isnt a java forum
Nor is it a Java question...that is javascript - a very very different beast. They share almost nothing except name.
In answer to your question,You have this in your code:
menubar=no, resizable=yes
and I think this may be the answer
menubar=no, resizable=yes, scrollbars=yes
|
|
|
|
|
J4amieC wrote: Nor is it a Java question...that is javascript - a very very different beast. They share almost nothing except name.
I know, i was in a rush to post this morning, and obviously not paying enough attention.
Thanks for the reply.
munklefish
|
|
|
|
|
|
Hi,
I am using TypedDataset in my appliaction, It has 3 tables and those tables have some relations among them. In the second datatable there are some computed columns(even it has some aggregate functions). When I am trying to set the one of the computed column as a parameter to my update storedprocedure it is raising an exception when i am calling dataadapter.update() method on the ssecond table.
It is giving {"The column mapping from SourceColumn "XXX" failed because the DataColumn "XXXX" is a computed column." }, How to resolve this. Is there any possibility that we can use the computed columns in the datatable for updating. If not is there any workaround for this.
Thanks in advance
|
|
|
|
|
If the computed columns are based on the data in your dataset, surely you can just put the computations into your update sql...
|
|
|
|
|
diffrence between ASP.NET 1.1 and 2.0
|
|
|
|
|
anig wrote: diffrence between ASP.NET 1.1 and 2.0
The version number: 1.1 and 2.0 .
The article below can give you some insight:
ASP.NET 2.0 Internals[^]
|
|
|
|
|
Do not cross-post!
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|