|
hi to all
what is the use of autopostback=true in asp.net with examples
regards
saravanan
|
|
|
|
|
Used when selecting an item in one control populates another control
|
|
|
|
|
The AutoPostBack property is used to set or return whether or not an automatic post back occurs when the user presses "ENTER" or "TAB" in the TextBox control.
If this property is set to TRUE the automatic post back is enabled, otherwise FALSE. Default is FALSE.
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
I have one page where the html comes from database, (I write the html using, by example, FreeTextBox).
The html is written correctly.
Now, I wish call some user controls inside of this html. By example, my web app has a UserControl what writes a copyright notice, let's call it "copyright.ascx".
Let's say what dynamic html, what comes from DB, has this content:
<b>Test </b>
This is a test <br /> Thank You <br />
<uc1:copyright ID="copyright" runat="server"></uc1:copyright>
<b>End of Test </b>
Of course, the copyright.ascx will not to be loaded, because the html code is loaded literally.
ASP.Net has some resource to accomplish this?
Regards...
--------------------------------------
Jesus is Love! Tell to someone!
|
|
|
|
|
You can pass the ASP.NET markup to the ParseControl[^] method and the result control to the container. And to make sure that the parser can understand the prefix tag of the user control, you also need to include the @ Register markup in the text or use the TagPrefixCollection [^] to programmatically register the tag name.
|
|
|
|
|
Guy, do you always rocks, thank you
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.(John 3:16)
|
|
|
|
|
This seems like something that should be easy but it just is not working. What I want to do is set the selected date of a calendar control programatically on the page load. I tried this and it did'nt work:
myCalendar.SelectedDate = myDate<br />
myCalendar.VisibleDate = myDate
The visible date is changed and the correct month is shown but the selected date is not highlighted like it is after you click on a date. Any suggestions on what the problem is? myDate is simply a date object. Thanks in advance.
|
|
|
|
|
Are you sure myDate is a valid date?
try setting the SelectedDate to DateTime.Now()
|
|
|
|
|
Date.Now doesn't work but Date.Today does, the only difference is that date.today doesn't have hours, minutes and seconds. Now my date object does so I'm assuming that's the problem! Any idea's on how to force my date object into that format?
|
|
|
|
|
have you tried ToShortDateString()?
|
|
|
|
|
Cheers mate, that worked, didn't realise that it would take a string!
|
|
|
|
|
Hi to all
what is the name space in treenode in asp.net
regards
saravanan
|
|
|
|
|
System.Web.UI.WebControls
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
How can I convert the asp.net(code behind c#) into a .exe file in visual studion 2003?
Thanks,
Bhasker p
|
|
|
|
|
You can't. One's a web app, and the other isn't.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
You can copy the code in a win project and try to compile it, but id would make no sence.. I'd advice to create a new class library project and add your code there, then create a website and a win app, and let them refer to the same class library...
I think that's what you're up to ???
|
|
|
|
|
I have developed an asp.net application in visual studio.net2003. Thing is now, how can I convert that asp.net application into .exe file?
Thanks,
Bhasker P
|
|
|
|
|
Why do you want that... I don't understand the pupose of 'converting' is into an executable...
|
|
|
|
|
Did you not read the above replies? It makes no sense to turn an ASP.net application into an executable, they are designed as different things...
|
|
|
|
|
HI
I have created user control that containing one label control and one button control without any code written in code behind.if i use this control in asp.net page using <object> tag its working fine. if i write any code for button click event its not working
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
You don't need the object tag. Just drop the user control on the page and you'll end up with something like this.
<%@ Register Src="UserControls/FooBar.ascx" TagName="FooBar" TagPrefix="uc1" %><br />
<br />
<uc1:FooBar id="FooBar1" runat="server"></uc1:FooBar>
only two letters away from being an asset
|
|
|
|
|
Ya but i created my user control through WebContolLibrary. so i created dll files through windows application with webControlLibrary.Because i want to use some windows form controls on my web page..please give me some idea related with this
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
|
Hi everyone,
I have the follwing problem:
The web page/site that I am creating in ASP.NET has a button control or image button control which should display the calendar control. I am trying to avoid the postback from being triggered every time I press the button/image button.
So far I have learned that one of options is to declare the button as the HTML button, not the ASP.NET server executed button.
After creating the button a portion of code was inserted into the HTML code which declares and defines the OnClick() function for the HTML button. The code is marked as javascript code.
Now my problem is how to interact with other ASP.NET controls, i.e. how to populate the textbox control with some value/text? The thing I do not know is how to reference the ASP.NET controls from within the javascript? Is it possible to do so?
The code that was generated for the HTML Button:
<br />
<script language="javascript" type="text/javascript"><br />
<br />
<br />
Function Button1_onclick()<br />
{<br />
<br />
}<br />
<br />
<br />
</script><br />
Once more my question is how, if possible, to interact with other ASP.NET controls on my web page? In particular, I wish to add some text (date) to a TextBox without causing the postback event, using the HTML button.
Thanks a lot!
|
|
|
|
|
HI
Yes u can use by document.GetElementById('txt_Id').value for asp.net textbox control.
Pathan
|
|
|
|