|
string OnLoadString = ((HtmlControl)Master.FindControl("masterBody")).Attributes["onload"];<br />
<br />
((HtmlControl)Master.FindControl("masterBody")).Attributes.Add("onload", removed + "function2();");
Unless I'm missing something
removed is actually OnLoadString but CP changes it
only two letters away from being an asset
|
|
|
|
|
You ARE and asset! Thanks for the tip, I can be clueless sometimes
Nila
"...for that, I will need a large cup of coffee and a bran muffin!" -Samantha Bea
|
|
|
|
|
Sometimes I need to be reminded of the simple things also.
only two letters away from being an asset
|
|
|
|
|
i hear ya... remember debugging for hours just to find out you are missing that d*mn semicolon?!?
Nila
"...for that, I will need a large cup of coffee and a bran muffin!" -Samantha Bea
|
|
|
|
|
Hi I made a control custom.ascx, to display in different pages, this control has a datagrid that I use to display certain info from my database... everything works fine.. but I am using the datagrid property of asp:hyperlink,
<asp:datagrid id="menuSubjectgrid" runat="server" CellPadding="0" OnPageIndexChanged="MenuSubjectGrid_Page"> <asp:HyperLinkColumn DataNavigateUrlField="subjectID" DataNavigateUrlFormatString="../stfront/strProductList.aspx?CategoryID=1&IdentifierID={0}" DataTextField="Description" HeaderText="Subjects" Target="_blank">
I want to display the info of the link in the page where I sent the DataNavigateUrlFormatString, how can I achive that...
thanx
-- modified at 15:01 Wednesday 29th November, 2006
|
|
|
|
|
um, what?
|
|
|
|
|
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...
|
|
|
|