|
Ive just discovered the ~ sign and how it can be used to reference the root path of your application when building .Net web apps and am overjoyed at how much easier things have become while using it. Thing is I now find myself using it everywhere.
Is this causing the server to do more work than it needs to though. Each page uses it at last 40 times in the header and footer and some pages can almost equal this.
Any opions?
|
|
|
|
|
Sam Heller wrote: Is this causing the server to do more work than it needs to though
I wouldn't have thought so, except in the compilation phase - but that isn't all that important given the life cycle of ASP.Net apps.
"It was the day before today.... I remember it like it was yesterday."
-Moleman
|
|
|
|
|
Hi,
I have one user control which has one Submit button, I have ASPX page and it has one Repeter Control and in repeter I placed this user control in repeter's Item template.
Now I want to handle the user control Button click event in repeter i.e in ASPX.How can I do this.
Regards,
Kalyan
Kalyan
|
|
|
|
|
1-I work in ASP.NET (VB)2003 and the database is in the SQL Server 2005
When i Start the application it give me an error.
Assaf
|
|
|
|
|
|
Assaf82 wrote: When i Start the application it give me an error.
What Error?
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Was da error, can u quote it so we can help u!!
kagiso
|
|
|
|
|
That's officially a triple post right here
|
|
|
|
|
Hello Assaf82,
Wat is the actual error you are getting. If you give then i can solve your problem
Regards,
Niranjan
|
|
|
|
|
Hello Assaf82,
Wat is the actual error you are getting.
Post that error so that we can help you.
Regards,
Sandeep Kumar.V
|
|
|
|
|
First i'm sorry that i didn't specify the error
i thought it's common error
when i use the Wizard to estblish a connection using Visual Studio 2003 to the DataBase in SQL2005 they said to an error has occured while generating the adapter
Thanks for your help
Assaf
|
|
|
|
|
Whats the error you are getting?
Just thought I would join in since everyone else seems to have asked
|
|
|
|
|
Hello,
never waste our precious time, by answerng these kind of posts
warm regards
Sebastian
|
|
|
|
|
hi friends
i have a class CC.vb in vb.net in my application.
And my page AA.aspx has C# language
now i want to call this class in AA.aspx.cs then how can i?
Amit Metkar
3i-infotech, Mumbai
|
|
|
|
|
create a reference to the project CC is in and use
using (namespace.to.CC myCC = new namespace.to.CC())
{
myCC.DoSomething();
}
(if CC is not disposable, leave the using()...)
|
|
|
|
|
i am designing a website in asp.net using visual studio2005, how to use AJAX in it to enhance website appearance
|
|
|
|
|
|
hi
download the ASPAJAXExtSetup.msi setup from
http://ajax.asp.net/[^]
install it, and now when u create a new website it will ask some more options like "asp.netAjax-Enabled website", select this option
u will find no diff between ajax enabled website and normal asp.net website
but there is a diff in web.config file, so merge this file with ur web.config file in ur appln
after this u will get some more tools in ur toolbox "Ajax Extension"
use these tools in ur appln
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
hi manoj,
following is the VB code, do convert it in .Net by upgrade wizard, it will add header and footer both to word page
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then<br />
ActiveWindow.Panes(2).Close<br />
End If<br />
If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _<br />
ActivePane.View.Type = wdOutlineView Then<br />
ActiveWindow.ActivePane.View.Type = wdPrintView<br />
End If<br />
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader<br />
Selection.TypeText Text:="this is the header"<br />
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter<br />
If Selection.HeaderFooter.IsHeader = True Then<br />
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter<br />
Else<br />
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader<br />
End If<br />
Selection.TypeText Text:="this is the footer"<br />
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter<br />
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
thanks i got the problem sorted finally, doin it like
<br />
Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As DataGridCommandEventArgs) Handles dgPriv.ItemCommand<br />
<br />
If e.CommandName = "cmdDelete" Then<br />
delete(sender, e)<br />
ElseIf e.CommandName = "cmdSelect" Then<br />
getUser(sender, e)<br />
<br />
End If<br />
End Sub
|
|
|
|
|
Hi,
I have a html button btnBroadcast on my page on click of which i am opening a popup window. When i login i check for user access which can have a value of true and false.I store this value in a session variable and depending on whether the session value is true or false i have to make the html input button "btnBroadcast" visible or hidden.
Does anybody know how to do it.
Thanks,
riz
|
|
|
|
|
hum?
btnBroadcast.Visible = (bool)Session["value"]; ??
|
|
|
|
|
Yes. need to add "RunAt="Server" "
|
|
|
|
|
write runat="server" in button tag and access by button name in code behind.
after accessing that button use visible property to hide that button
God Bless you.
Always do good to others
|
|
|
|
|
write a java script function i.e.,
function window.onload()
{
var sessionValue = '<%=Session["sessionname"]%>';
if(sessionValue != null)
{
document.getElementById("btnBroadcast").style.visibility="hidden";
}
}
regards
GV Ramana
|
|
|
|