|
C# Tea Boy wrote: Newbie question !!
A newbie answer .
You have to reinsert dynamic controls as the ASP.NET does not persist that for you, that said you shouldn't put your code to create the dynamic control in the if(!Page.IsPostBack) statement.
|
|
|
|
|
Rookie Error !!!
Works perfect now. Thank you for your help.
|
|
|
|
|
I made a GirdView and fill it with data from database. In this GirdView
i have five columns. First column is Name of item that is represented
in this grid. I want to make items in this column url addresses so when
i click on item name it opens another page to edit the item on which I
clicked.
Can this be done? And if can, how?
Thanks!
Vasini
|
|
|
|
|
Have you checked MSDN at all ? The answer is that you can define your columns, and you can define them to be hyperlinks, if you want to, and specify a URL which includes data items of your choice on the querystring.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi all.
I put my swf file in asp.net ( visual studio 2003 ) using this code :
<object width="200" height="150"> <param name="movie" value="myFlash.swf" /> <embed src="myFlash.swf" width="200" height="150" /><object>
and then I run my program. the program has no errors and runs but there is nothing to show in browser ( ie )
why ??
the page has no swf in it .
what shoul I do ? I just use the code above . no other things...
please help me.
|
|
|
|
|
Try this.
<object width="200" height="150" >
<param name="movie" value="myFlash.swf" />
<embed src="myFlash.swf" width="200" height="150" />
<object>
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
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.
|
|
|
|