|
I have 2 images lines vertically
Byut I dont want any oixels in-between them at all
I tried br and that didnt work
I tried at a table with 0 bottom and top margins. but that didnt work either.
Any ideas?
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
table with 0 cellpadding and 0 cellspacing...
|
|
|
|
|
I did that tool
div style="position:absolute; left:10px; height:50px;"
table cellpadding="0" cellspacing="0" width="128px"
tr style="margin-bottom:0px" valign="top"
td style="margin-bottom:0px; width: 129px; height: 71px;" valign="top"
asp:Image ID="ImageParchTop" runat="server" ImageUrl="~/parchment_v1.JPG" Width="128px" Height="100%"/
/td
/tr
tr style="margin-top:0px;" valign="top"
td style="margin-top:0px; width: 129px;" valign="top"
asp:Image ID="ImageParchBottom" runat="server" ImageUrl="~/section_parch_v1.JPG" Width="128px" Height="100%"/
/td
|
|
|
|
|
place two divs beside each other and just put the images in them. Use css to make the images block elements.
html:
<div class="ImageList">
<img .../>
<img .../>
<img .../>
</div>
<div class="ImageList">
<img .../>
<img .../>
<img .../>
</div>
css:
.ImageList { float: left; width: 100px; }
.ImageList img { display: block; }
---
b { font-weight: normal; }
|
|
|
|
|
thanks
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Hi,
I've tried a simple app with a gridview, sqldatasource connected to Oracle.
On the Update COmmand i've wrote a simple query :UPDATE X SET field=77.
In SQLBUilder when i execute it it works just fine but from app i get this "ORA-01036: illegal variable name/number"
Can anyone help please ?
thanks!
|
|
|
|
|
you write query like:" UPDATE X SET field=77"
so as per your query,
Table Name : X
Field Name : field
so u must understand that "field" must be field name of table X. and datatype with any numeric.
try this.
Dipan Patel.
|
|
|
|
|
Hi and thanks you for your reply,
yes i understand.. the exact SQL is :
"UpdateCommand="UPDATE TABLOU SET STADIU=77"
the field called STADIU is type number. I've tried also with integer but i get the same error
-- modified at 17:40 Saturday 6th May, 2006
|
|
|
|
|
I am developing an application for which I have to provide a hosted version for the client.Well the problem that is bugging me is as follows:
Different users from different companies will be connecting to the ASP.net application. I want to keep
each company's data and login information in a separate database and one ASP.net application in the
front. Now the problem is how to make this possible? In SQL Server Role and Membership provider, database connection string is in web.config. If I have to write a custome provider, then what should be the approch by keeping one ASP.net application in the front for multiple databases.
I would appreciate ideas and comments on the problem
Thanks,
Fahad
|
|
|
|
|
When a user logs in you could produce the connection string "<first part="">" + companyName + "<lastpart>" and store it in a Session variable, then everytime you use the connection string you do Session["ConnectionString"] rather than ConfigurationSettings.AppSettings["ConnectionString"].
If each company has their own login frontend then this should be easy.
|
|
|
|
|
The problem is the Membership provider has no interface to change the
underlying connection string, it is in the web.config file. Should i try to add connection string
property to the SQLMembership provider and try to use that. How that sounds?
|
|
|
|
|
<pre>
<asp:textbox id="txtUserName" Runat="server"></asp:textbox></td>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" ControlToValidate="txtUserName" ValidationExpression="[0-9]" ErrorMessage="Must be numeric" runat="server" EnableClientScript="False" Display="Dynamic"/>
</pre>
This code always display errormessage "Must be numeric", even though i enter only numbers.Can anyone please reply for this.
-- modified at 11:45 Friday 5th May, 2006
|
|
|
|
|
|
You have specified that the field may only contain one digit. If you try to enter a one digit number you will se that it passes.
You can use the \d code instead of [0-9]. Specify how many digits you allow, for an example unlimited: "\d+" or 1 to 5: "\d{1,5}".
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have one XmlFile, how to create a menu using that xml file
the xml file is like
<menu>
<file>
<new>
<open>
<add>
<edit>
<cut>
<copy>
<paste>
<debug>
<startdebug>
<exceptions>
the output is like
File Edit Debug
if i click File it will show all the childs of it
How can i achieve this in asp.net
|
|
|
|
|
Why don't you do this with javascript? (then you won't have any postbacks, think this is better to handle with).
Just add your elements to the screen, put'm all in span blocks and set the onClick javascript events (which can set the visibility on true by css). The ones you want not to be seen on load, make on the body tag an onLoad javascript event which sets the visibility by css on false.
|
|
|
|
|
Or .net 2.0, use the menu control.
|
|
|
|
|
Is it possible to access the Master Page in VS2005 and change the from GET to POST? Or can this only be done inside the Module?
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Hi,
How do i Access .aspx page attribute, in vb code file.
actually i want dynamicaly change value of href in link attribute
"<link id="link1" href="styleSheet3.css" rel="stylesheet" type="text/css" />"
Thanks
lakshya26@gmail.com
|
|
|
|
|
put it in a label and change the text value of it?
maybe not the best way but it could work ...
|
|
|
|
|
Or just use a Hyperlink control
|
|
|
|
|
A GridView has it's AutoGenerateColumn set to true
This is how the code is
grid.DataSource = dt
grid.databind()
dt is a datatable and there is definitly data in it.
The problem is that the grid does not get populated.
Thanks
|
|
|
|
|
hi there I am an asp.net virgin and really want to get to grips with some of the features of using asp.net I recently finished a course on asp.net and we learnt the basic templates to building a shopping basket. However when at home on my own computer...for some strange reason the internet browser doesn't display the web page, but displays all the code instead??? Before you ask, yes I have tried it in firefox also? I'm sure it is a ridiculously simpe thing, but in order for me to start messing around with the templates and customising them to features that I want, I'll need to be able to see it....what should I do?(P.S I'm using dreamweaver also)....Please be gentle...I am fragile!
|
|
|
|
|
What's the code in your page look like (feel free to shorten it if there's a lot...)
|
|
|
|
|
hi thanks for the reply, it is literally the source code for the web page. From some research I found that maybe I cant view these files locally as I have windows xp home, not professional so I can't install some ssi or something. Does that sound about right. Therefore does this mean I will only be able to view these pages remotely?
|
|
|
|