Branching off from this link it seems that Request.ServerVariables("SCRIPT_NAME") doesn't return anything. I've just set up a simple loop to see if anything comes out at all but with no luck. Any ideas?
For Each s As String In Request.ServerVariables
Label1.Text += s
Next
ServerVariables brings back a list of Strings in key->valu...
I have an .aspx page using a login control with custom authentication. I was wondering if it's possible to have a "Welcome [FirstName] [LastName]" message using the LoginName control instead of the [UserName] that is accessed by default.
I'm thinking of storing these info in the Session object if it's not possible.
Thanks!
...
hello everybody.I have a problem .
When i try to run an ASP.NET page in VS 2008 using a browser(Internet Explorer,Mozilla,...), I get a "Internet Explorer cannot display the webpage" error. I have Windows Vista with SP1 installed.
I have tried this and I get the same error. I have even tried disabling the firewall and antivirus. I am us...
I have a linkbutton in a column of a Gridview.
When the user clicks the linkbutton, I have to redirect to another page.
Can anyone give appropriate code to accomplish this?
...
I have a form default.aspx with a scriptmanager and webpart manager.
I have 4 webpart zones. One of the zones has a basic user control for its content. The user control has a button inside an update panel and I have the following on the click event for the button:
Protected Sub cmdMarkComplete_Click(ByVal sender As Object, ByVal e As S...
Can it easily be combined with jQuery, (ASP.NET) Ajax, ASP.NET webforms, other frameworks.
What about pulling dynamic code from ASP.NET MVC into for example classic ASP?
Does the MVC model mean that it is easy to customize code?
Background:
I have some experience that it can lead to problems to integrate frameworks relying on Javascr...
Hi.
My JavaScript calender is working in IE but it is not working in Mozilla.
My code:
<table>
<tr style="height: 5px;">
<td>
<asp:TextBox ID="txtBorderedDate" runat="server" CssClass="TextBoxMandatory" Enabled="false"></asp:TextBox>
</td>
<td class="FieldButton_bg" style="height: 5px;">
<a onclick="javascr...
I have two list views. In the Item command event of the first Listview i am showing the second list view in modal popup using ajaxtoolkit.
protected void lvSelection_ItemCommand(object sender, ListViewCommandEventArgs e)
{
this.lvPopup.Visible = true;
this.lvPopup.DataSource = linqdataSource;
this.lvPopup.DataBind();
th...
When typing code in a .aspx file (an MVC view in this case), Visual Studio applies two types of formatting, one to the regular html tag structure (which can be controlled from Tools->Options->Text Editors->Html) and another to content inside the <% %> tags.
I've run into two annoyances with the second type of automatic formatting, the <...
Hi, I've created a particular server control that has some methods I'd like to call from javascript.
I know that the ScriptManager allows to call a web service or a page method. But I'd like to call a particular class method (I can do this with Anthem or even AjaxPro.NET). Is there a way to accomplish this using ScriptManager?
Thanks.
...
Is it CSS for HTML elements and SKINS for ASP controls? Or is it CSS all the way even thought it seems to take longer? And what has Specivity SKINS or CSS?
I ask because I'm creating my first ASP.NET web application (using a book), while at the same time reading another about CSS. I'm now at the point where I need to start thinking abo...
I have an ASP.NET DDL that looks like this when I view source:
<select name="testControl" onchange="DoCustomStuff();setTimeout('__doPostBack(\'testControl\',\'\')', 0)" id="testControl">
It looks like this on the .cs page:
<asp:DropDownList ID="testControl" runat="server" onchange="DoCustomStuff()" OnSelectedIndexChanged="testControl...
I have a FormView (bound to an ObjectDataSource) that contains a CheckBoxList that I'd like to bind to a single property of the underlying object that is an Enum with the FlagsAttribute applied to it. Binding to the SelectedValue property always gives me just the FIRST selected value from the list as the property's value. Anyone know h...
In a webpart I have two user controls loaded. I want to be able to populate one of the controls when an event is triggered in the other control, a parameter has to be passed between the controls.
...
I'm always looking for a way to use all the tools I can and to stretch myself just beyond where I am at. But as much as I have read about delegates, I can never find a place to use them (like Interfaces, Generics, and a lot of stuff, but I digress.) I was hoping someone could show me when and how they used a delegate in web programming...
What is a good tool or site to use to performance test a web page/site? I am trying to find a good baseline to detect how fast my page will load on one hosting provider vs another. I initially used http://www.freespeedtest.com/ but like to get opinions and links for others.
...
On my submit button, what I'd like to do is OnClick show a "Please wait" panel and hide the button, UNLESS the validators say something's invalid - then I need the buttons still showing obviously. Otherwise I have a validation summary showing erros and no way to submit again.
Most articles I find about doing this want to use Page_Clien...
I'm looking for a server-side (C#) approach to cleaning up content pasted from MS Word. I know that a lot of the Rich Text Editors like FCKEdit have this ability built in, but I'd like to handle it on the backend to make it as seamless as possible to the user.
Jeff posted an approach to doing this
http://www.codinghorror.com/blog/a...
Background: I have a Silverlight Control in a sharepoint webpart that exposes some scriptable methods. I use those methods to call a webservice and get an array of menu options. These menu options are then injected into Sharepoint ECB menu which appears on clicking an item in a list.
The problem I am having is being able to get the cli...
In my ASP.NET application, I'm saying something like this to get the client IP address:
string ipAddress = HttpContext.Current.Request.UserHostAddress;
This is the normal, straightforward way that I've always used, and it's always seemed to work. Everybody knows that the above statement is just a wrapper for the REMOTE_ADDR server va...