|
hi.
where should I put this code ? I write it in HTML ( not design) part of my form . but it doesnt work and the writing of this code changes otomaticaly. why ? please help me ...
give me example that have been run in your program plz
|
|
|
|
|
That looks like a working example to me. It's obviously meant to go in the aspx file.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
the problem have been solved...the location and address was wrong.!
|
|
|
|
|
|
Sure there are plenty of them here [^] and here [^]
only two letters away from being an asset
|
|
|
|
|
|
What kind of session? A database session? A browser session? A web server session? The Session object? A session variable?
---
Year happy = new Year(2007);
|
|
|
|
|
hi guffa
i want databasa session
regards
saravanan
|
|
|
|
|
I mostly added that for some kind of completeness...
Why do you ask in the ASP.NET forum if you want to know about database sessions? It has nothing to do with web development, you should have better luck asking in a forum that handles databases or the forum specific for the programming language that you are using.
You should also specify what kind of database you are using, and a bit more specifically what you want to know about database sessions.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi frndz,
Can anybody explain me in detail what is the purpose of creating user controls, as there are default controls in .net toolbox?? I really don't get an idea why we use user controls as often this question comes in my mind!!
Regards
Vijay.
|
|
|
|
|
They are basically the same as includes in ASP. You can use them throughout multiple pages without recreating them.
|
|
|
|
|
The purpose of creating user controls is so that you don't have to have the same code written in a bunch of places. For example, one user control I use in all my projects is a calendar textbox. The control has a text box along with a calendar icon that calls a popup calendar. The reason it is in a user control is two fold. Throughout the entire application it functions the same and the code is one place.
|
|
|
|
|
You create user control just one time but use it for many times ... with a simple drag into your form ... !
you create it your self by your need and work , and use it whenever it is needed.
|
|
|
|
|
Great question!!.. I struggled with this question for quite sometime and could not understand why User Control were needed. Many senior developers answered my question by saying "It's the same as the #include file in classic ASP". Nonetheless, I never learnt or wrote classic ASP since during my Undergrad I was taught ASP.Net. Basically, the sole purpose of a user control is re-usability. The best explanantion would be that of the calendar as described in one of your previous response. A user control, for example is a login page, hence if a user needs to be logged-in to access a certain page on your site you can place the login (user) control on that page instead of re-writing that code on every page you need it on. In effect you write the code once and you can place it on as many pages as you like. It can be place in a table, placeholder or the page itself. This is done either programmatically using the @register directive or simply by dragging and dropping it on the page.
-- modified at 22:55 Wednesday 10th January, 2007
Skan
Coding makes the world go round!!!
|
|
|
|
|
If I can I would like to piggy back a question to yours. I would like to know, I am certain that it possible but unsure of how it is done, if the is a way a user control from a different project be imported into a current project which I am working. If so, would I use the namespace attribute of @register directive or do I need to use the @import directives. In the past the only way I have used a control from a different project was if I added it to the server toolbox. However I do not want to added to the toolbox content. All, I want to do is import the control and use it direct on the page. It this possible?
Skan
Coding makes the world go round!!!
|
|
|
|
|
For custom controls, just add a reference to the built dll of the control project.
For user controls (.ascx) you need to copy the files to your new project. If your not using 2.0, then the easiest way is to assign this control to the namespace of the page you want to use it on. 2.0 has no namespaces (you can use them, but there's no need to)
|
|
|
|
|
hi, can someone help me, I just check my website from firefox and the images are very big!! in internet explorer the images are good with my height and width size for the images. But with firefox, images are showing in their default size. how can i solve this problem
The website is: www.ivanandsimone.com/query/home.aspx
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
For firefox, you'll need to set the height and probably width attributes for the IMG element. Setting the height for a table and not for the image isn't likely to be honored by many browsers when the image is larger than the table cell.
|
|
|
|
|
thanks, but how to set the attributes please?? Thanks alot..
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
|
I have it like this:
asp:imagebutton id="imgItem1" runat="server" Height="75px" Width="93px" ImageAlign="Middle" asp:imagebutton
But its not working
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Not sure why you're using ImageButton when Image should work fine on it's own. However, look at the code for your page: http://www.ivanandsimone.com/query/Item.aspx[^]. It seems to be sizing the image as it should. Compare what's different in your code and that should solve your problem.
|
|
|
|
|
hi, i am using imagebutton because i want the user to click on it and it leads him to another website with the picture's contents as you can see from www.ivanandsimone.com/Query/Home.aspx..
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
When a page looks different in Firefox and Internet Explorer, it's almost always Firefox that renders the page correctly.
The input fields that you use to display the images are inline objects, so setting width and height does not apply to them. Internet Explorer incorrectly applies the size to the fields anyway. Opera and Netscape handles it correctly, though, just as Firefox. You have to turn the fields into block objects using display:block if you want to be able to set the size.
Do yourself a favour and test the page in Firefox while you are building it. Then there is a very good chance that it will also look the same in all the other browsers, except Internet Explorer or course. You will often need to do some tweaking to make it work in Internet Explorer also, but it's much easier than to tweak a page that only works in Internet Explorer into working in all the other browsers also.
---
Year happy = new Year(2007);
|
|
|
|
|
Hey experts,
I have a aspx page with a datasource that select images from a mysql database. This datasource i binded with two FormViews.
1st: Displays all images as thumbnails in a left column.
2st: Displays the full image that is selected in left column.
Now for my question. I have noticed that the selected and selecting events is fired twice. Guess this is the way the sqldatasource control works...
By is there any way to stop the events firing twice. Seems like big overhead selecting images as blob from a database twice, when one time would be enough.
Hope somebody out there know someting about this.
Regards Anders, DK
|
|
|
|