|
It's easy, you create a "Product" class and fill it with values fetched from database. Alternatively you can use some OR/M tools which does this.
|
|
|
|
|
|
You're going to use a repeater for something like this forum, b/c a repeater gives you absolute control over the layout.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I am using Web Developer 2008 express edition. When I drag images into my webform from the App_Data folder, they are visible at design time but won't show when I "Preview in browser". The only thing that works right now is to hard code the entire path of the image. (which won't work when the site is deployed)
Here's a sample of what works and what doesn't:
Does Work:
style="width: 255px; height: 108px" />;
Doesn't Work:
style="width: 255px; height: 108px" />;
I didn't seem to have this problem in VS 2005. Thanks in advance.
"Make it as simple as possible, but no simpler" Issac Newton
|
|
|
|
|
Are you running the site from localhost ? That is, not localhost/something ? What if you put a / at the start of the path ? ~/ also forces start from the root, I believe.
Is the control in a subfolder ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Thanks for the reply. Yes I'm running local host.
I have also did the ~/ syntax and it has not changed anything. That's also the standard syntax that generates when you set the image url in the design mode. The jpg is located in a sub folder but the generated code from the designer compensates for that. To make sure all this is not confusing, I was originaly using design mode to set all my image urls but when I got no results at run time, I started trying to modify the source code. Any further suggestions will be greatly appreciated!
"Make it as simple as possible, but no simpler" Issac Newton
|
|
|
|
|
Hi!
I can't understand it...
I'm using a table control with "CssClass" property inside an user control.
If I set 'CssClass="footer"', the '.footer' style is applied ok; but if I set 'CssClass="report"', this style don't work.
Of course, both '.footer' and '.report' exist in css file and the master page that contains the user control have a '' in the 'head'.
Do you have any idea?
Thank you in advance.
--
[Adrián Córdoba]
|
|
|
|
|
Open the error console in Firefox so that you see if it reports any errors in your css.
Get the FireBug plugin for Firefox. There you can locate the element in the document outline and see exactly what css applies to it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I'm not using Firefox. It isn't installed.
--
[Adrián Córdoba]
|
|
|
|
|
Do you have any other browsers than IE installed, or don't you test that what you build works?
I think that there is a developer toolbar for IE that is quite similar to Firebug.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi All
In my asp.net 2.0 web application i am using AjaxToolKit version 1.0.20229.0 . Now the Issue is with modal pop up in IE 6.0 whenever the modal pop up is displaying browser hight is getting increased.
AJAX modal pup is adding pixels to the height of the browser now user can scrolls down the vertical scroll bar to infinite.
this is happening in IE 6 only its working fine in Mozilla and IE 7.0
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... "
|
|
|
|
|
|
hai friends
in a page i have a panel, in that panel i added a image control
for panel i set both horizontal and vertical scroll bars
when the page is postback then i have to maintain the panel scroll bar position same as it is.
plz help me
thanks in advance
vijay
|
|
|
|
|
use MaintainScrollPositionOnPostback ="true" in page directive
|
|
|
|
|
|
use "split" function ....
Thanks,
Arindam D Tewary
|
|
|
|
|
string s="6/30/2008";<br />
string [] s1= s.split('/');<br />
console.writeline(s1[2].ToString());
|
|
|
|
|
DateTime m = new DateTime(2008,03,21);
int s = m.Year;
Sathya
|
|
|
|
|
|
How to visible false particular column in DataGrid but It is auto generated so that it is not fixed how many columns is there.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
What?
I Wish the Life Had CTRL-Z
Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
I mean
suppose now DataGrid have ID,Name,ResourceId
and I wnat to do visible false ResourceId column
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
in visual studio u can click on smart menu and select "Edit Columns..." or in properties select "Columns" and do what ever you want to do
I Wish the Life Had CTRL-Z
Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
dgrid.Columns[i].Visible =false
Sathiya
|
|
|
|
|
if it is autogenerated or not .. you still be able to set visiblity of a particular column to false(or true) but columns collection. You have to identify index of the column you want to set to false(or true).
After your databind is done, you can write following line to achive that.
datagrid1.databind();
datagrid1.Columns[3].Visible = true;
Thanks,
Arindam D Tewary
|
|
|
|