 |
 |
Index ‹ Web Programming ‹ ASP.Net
|
- Previous
- 1
- Frontpage Client >> Changing Font or Size on Navigation BarHave a link bar on my page, and cannot fit the text that I would like onto
the buttons. The solution would be to either expand the size of the buttons,
change the size of the font, or have two lines of text on the button (or some
combination of the above)...problem is, I cannot figure out how to do any of
these......the buttons are based on a theme....
Can anyone help??? Thanks.
Andy
- 2
- ASP/Active Server Pages >> Refresh and redirectHi!
I have a framset and I want to refresh the bottom.asp whenever i do a change
in Input.asp so that bottom.asp reflect the changes made? How do I do
this???
I would also like to bee redirected back to where I came from. I use
ONCLICK="window.history.go(-1)" on a button in a form, but how do I do this
on an asp side that only have asp code and nothing that shows to the user?
Hope someone can help me.
best regards
Hege
- 3
- IIS >> event id 203Hello
I have recently built a W2K3 server with IIS installed, only for FTP services.
I disabled the anonymous accoutn associated with this as I do not believe it
will be used.
I am receiving an error ion the application log - event ID 203. The user
could not save the data LLSUSER.LLS. The data is in the error code.
I cannot seem to find much on the MS Site in this regards and was wondering
if anyone could shed some light.
Thank you,
Mark Clark
- 4
- Frontpage Client >> Watch NFL Games OnlineWatch NFL Games Online!
For every one who wants to watch the games online because they dont live in the teams town or are at work i found a site that has basically every game covered. Its perfect if you have afford a monthly $70 direct tv nfl access subscription. they got a bunch of channels
The sites http://nflonline.wizhoo.com
- 5
- ASP.Net >> populating asp:dropdownlist programmaticallyI need to display a drop down list which holds up to 250 listitems.
I'd like to create this programmatically rather than have to hardcode it
into the page.
For example
<asp:DropDownList id="numYears" runat="server" name="numYears">
<asp:ListItem Value="0" Text="0 years" Selected="true" />
<asp:ListItem Value="1" Text="1 year"/>
<asp:ListItem Value="2" Text="2 year"/>
<asp:ListItem Value="2" Text="2 year"/>
<asp:ListItem Value="3" Text etc............. up to 250 years
Thanks in advance..
Simon Ames
- 6
- IIS >> .avi files visualizationHello,
I have a w2k server with IIS. When I put a .avi file in my web, when I try
to visualize the files with internet explorer Windows Media is istarted,
connects but nothing is shown.
Can anyone help me?
Thanks
- 7
- ASP.Net >> OpenFileDialog vs JavascriptHi All,
I was wondering if it is possible to use(if it will work) the OpenFileDialog
class in ASP.NET. Currently I am using the classic javascript
but I have I need to customize the browse button.
Does anyone knows some good source of information?
Thank you for your time.
Frank
- 8
- ASP.Net >> I've Broken Visual Studioactually, i've broken all my web apps - I got a new pc and tried to rebuild
the applications but I am having no luck.
1) my debugger will not run - I get the unable to start debugging on the
web server. I've added everyone i can think of to the debuggers group, my
security looks good on the virtual directory in iis. What else could it be?
The app runs fine if I start without debugging. Please help.
2) how do I REBUILD my projects so they work. I am so frustrated with this
I cannot tell you.
- 9
- ASP.Net >> Use of connection pooling?dear all,
i have an application which could have more than 150 users, I have set it up
to use windows integrated authentification.
What I have to do to be sure that my application will use connection pooling ?
- 10
- Frontpage Client >> Online registration questionHi folks -
I need a bit of help. The organization I belong to is asking me questions
about online registration for a seminar in 2006. I know it would have to be
some sort of a secure site because the attendees would be entering their
charge card numbers but beyond that - clueless.
What kind of things should I be looking for in a webhost? (I have one
inmind - I just need to know the kind of things to ask about.) I don't need
any special software, do I? Couldn't it be done with a form? Can data from a
form be saved in the server until the registrar extracted it? It doesn't
have to be sent as an email, does it?
I did warn you- I'm clueless but willing to learn. Where can I start?
JoAnn
- 11
- 12
- ASP.Net >> Postback or Click on Run-time created objectI have a database table of x elements. I need to loop through the database
table and add a checkbox for each entry to an asp:Table object. This I can
do.
Dim tRow As New TableRow
Dim tCell As New TableCell
Dim cbDT As New CheckBox
tblDTCodes.Rows.Add(tRow)
cbDT.Text = reader(0)
cbDT.Checked = False
tCell.Controls.Add(cbDT)
tRow.Cells.Add(tCell)
Question: How do I add a "Clicked" or "Checked" event to these new
checkboxes?
Question: If I can't do that, how do I interpret a PostBack from these
checkboxes?
- 13
- IIS >> Set up IIS to browse a folder on another domain controllerConsider the following scenario: we have two domain controllers in the same
domain called dc1 and dc2. On dc2 IIS is being used for internal web
applications and one of these applications is called 'app'. Our users browse
to \\dc2\app to view and use the web application. This works very well.
Now we wish to allow the users of this web application to browse a folder
which is located on dc1. The folder is shared as 'share'. On dc1 IIS has not
been installed.
We got this working with 'Digest authentication for Windows domain servers',
but that requires the user to log in every time they wish to use the web
application. And that is not what they want.
Is it possible to use 'Integrated Windows authentiction' and still be able
to browse that folder on dc1?
We have tried many scenarios, but every time the result is the same; the
user cannot browse the folder on dc1. For example:
1. We created a virtual directory that is redirected to \\dc1\share.
2. We created a directory at the hard disk under the root directory of the
web application and redirected that directory to \\dc1\share.
3. We used a test server dc3, installed IIS, created a virtual directory in
the default web site that looks at a local directory. At dc2 we repeated
exercises 1 and 2 by redirecting to http://dc3/virtualdirectory.
We are currently at a loss. What else can we do to accomplish this?
HJ
- 14
- ASP/Active Server Pages >> Random HTTP/1.1 403 ForbiddenWhen redirecting an ASP page using the following code:
document.location.href =
"MatterBalanceDetails2.asp?matterdiwor=<%=Request.QueryString("matterdiwor")%>" & _
"&balancecode=<%=Request.QueryString("balancecode")%>" & _
"&balancename=<%=Request.QueryString("balancename")%>" & _
"&posted=<%=Request.QueryString("posted")%>" & _
"&billed=<%=Request.QueryString("billed")%>" & _
"&startdate=<%=Request.QueryString("startdate")%>" & _
"&enddate=<%=Request.QueryString("enddate")%>" & _
"&transdiwor=" &
lTransDiwor & _
"&mattername=<%=Server.URLEncode(msMatterName)%>" & _
"&mattercode=<%=Server.URLEncode(msMatterCode)%>" & _
"&location=<%=msLocation%>"
I sometime get a â??HTTP/1.1 403 Forbiddenâ?? error
The address in the window title looks correct. However looking at the IIS
log file the URL has no GET or POST, but instead has a spurious number of
characters as follows:
2008-02-21 08:42:17 192.0.0.46 PILSYS\DarrenB 192.0.0.70 80
%09%09%09%09%09%09%09%3Cxsl%3Aattribute+name%3D%22class%22%3Etext_small+text_strong%3C%2Fxsl%3Aattri
/lwc/ClientMatterEnquiry/MatterBalanceDetails2.asp
matterdiwor=28815&balancecode=WIP&balancename=Work%20in%20Progress&posted=&billed=&startdate=&enddate=&transdiwor=531&mattername=Mrs+Elaine+Mowat&mattercode=MOW%2F0001%2F00001&location=Client%20Matter%20Enquiry%20|%20Matter%20Accounts
403
Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506;+InfoPath.2)
Any ideas why this is happening?
--
Gordon Smith
- 15
- ASP.Net >> First Try With DataListHello, I am trying the DataList control for the first time and I am not
able to get the information to show up in the control.
I know that there is data in my data table.
My DataList has a field which is bound to a column in my data table with
the following code..
<ItemTemplate>
<asp:Button Text="Edit" CommandName="Select" Runat="server">
</asp:Button>
<%# DataBinder.Eval(Container.DataItem, "Narrative" ) %>
</ItemTemplate>
I use the following code to bind my dataList to the datatable.
dlHighlights.DataSource=dtHighlights;
dlHighlights.DataBind();
The statements above execute, but no data is displayed. Any Ideas as to
why?
|
| Author |
Message |
Daveyjaro

|
Posted: Wed Jun 01 19:40:43 CDT 2005 |
Top |
ASP.Net >> Page Refresh
Hi there,
haven't touched my ASP.NET app for some time, but looking back at it now I
see there ought to be a better way of handling one of its functions.
I have two list boxes, where items in the Left hand box can be moved to the
Right hand box using buttons:
Add
Remove
also there are move up and down buttons to change the order in which the
items in the right hand box appear.
Now it is these buttons that are painfully slow as I don't know how to
implement drag and drop, so one has to click it up or down one row at a
time, plus each click causes the complete screen to refresh itself each
time, and so it goes blank and then comes back with the item moved.
It is of course my inexperience in these matters that is letting me down
here, so can someone please give me some pointers on how to make this
function even a little more elegant?
Many thanks in advance
Colin B
Web Programming449
|
| |
|
| |
 |
souri

|
Posted: Wed Jun 01 19:40:43 CDT 2005 |
Top |
ASP.Net >> Page Refresh
Colin,
Functionality like this is better implemented in Javascript.
Checkout the following free asp.net control that implements a similiar
functionality.
http://metabuilders.com/Tools/DualList.aspx
HTH,
Souri
|
| |
|
| |
 |
Colin

|
Posted: Wed Jun 01 20:02:05 CDT 2005 |
Top |
ASP.Net >> Page Refresh
wow, cool, thanks, I'll give it a try.
out of interest why is the button on this page titled Smack? :-)
cheers
Colin
"souri challa" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Colin,
>
> Functionality like this is better implemented in Javascript.
> Checkout the following free asp.net control that implements a similiar
> functionality.
> http://metabuilders.com/Tools/DualList.aspx
>
> HTH,
> Souri
>
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP.Net |
- Next
- 1
- ASP.Net >> SetPolicy Exception while using NUnitHi,
I am using WSE to implement security using x509 certificates. This
works when I use a windows client but throws an exception when I use
NUnit.
My Code looks as follows :
UsernameToken myCurrentToken = new UsernameToken("xxxx", "YYY",
PasswordOption.SendPlainText);
MyServicesWse adminServices = new MyServicesWse();
adminServices.SetClientCredential<UsernameToken>(myCurrentToken);
adminServices.SetPolicy("ClientPolicy");
The App.Config has
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="microsoft.web.services3"
type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGroup, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="{ModuleNamespace}.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
<section name="{ModuleNamespace}.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup>
</configSections>
<microsoft.web.services3>
<security>
<x509 allowTestRoot="true" storeLocation="CurrentUser" />
</security>
<tokenIssuer>
<statefulSecurityContextToken enabled="true" />
</tokenIssuer>
<messaging>
<mtom clientMode="On" />
</messaging>
<policy fileName="wse3policyCache.config" />
</microsoft.web.services3>
<applicationSettings>
... [Web Reference]
</applicationSettings>
</configuration>
and the wse3policyCache.config file has
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameForCertificateSecurity"
type="Microsoft.Web.Services3.Design.UsernameForCertificateAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
<extension name="x509"
type="Microsoft.Web.Services3.Design.X509TokenProvider,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader"
type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="ClientPolicy">
<usernameForCertificateSecurity establishSecurityContext="true"
renewExpiredSecurityContext="true"
requireSignatureConfirmation="false"
messageProtectionOrder="SignBeforeEncrypt" requireDerivedKeys="true"
ttlInSeconds="300">
<serviceToken>
<x509 storeLocation="CurrentUser" storeName="AddressBook"
findValue="CN=WSE2QuickStartServer"
findType="FindBySubjectDistinguishedName" />
</serviceToken>
<protection>
<request signatureOptions="IncludeAddressing,
IncludeTimestamp, IncludeSoapBody" encryptBody="true" />
<response signatureOptions="IncludeAddressing,
IncludeTimestamp, IncludeSoapBody" encryptBody="true" />
<fault signatureOptions="IncludeAddressing, IncludeTimestamp,
IncludeSoapBody" encryptBody="false" />
</protection>
</usernameForCertificateSecurity>
<requireActionHeader />
</policy>
</policies>
As I mentioned, this works when I use the windows client to access the
web service, but when I try to access the web service using NUnit, I
get the following exception :
System.ArgumentOutOfRangeException occurred
Message="Specified argument was out of the range of valid values.\r
\nParameter name: Policy 'ClientPolicy' is not configured in the
system"
Source="Microsoft.Web.Services3"
ParamName="Policy 'ClientPolicy' is not configured in the system"
This seems to imply that the system can't find or load the appropriate
config file. But I fail to see why. Both the files are present in the
project directory. I've also copied both the config files to the
directory where the Nunit project file (and the dlls being tested) are
present. I've also tried copying it to the directory where the
NUnit.exe itself is located, but it doesn't make any difference. I've
added references to both "Microsoft.Web.Services3" and
"System.Configuration" modules in both my projects (windows client,
NUnit test class).
Any help regarding this would be much appreciated. Is there something
I am doing wrong/missing here or is this an inherent problem with
NUnit?
Thanks in advance.
- 2
- ASP.Net >> Update window.returnValue from Server SideIs there a way for me to update this returnValue from server side?
(without depending on JavaScript or injecting any JavaScript).
Besides:
If I use RegisterStartupScript, do I need to de-register it? If yes,
when?
TIA.
- 3
- ASP.Net >> Dataset from a Dataset ?I have One Dataset with Invoice Data for 5 Customers.
I have 5 GridView Controls, and I want to display each Customer Records in
each GridView, how can I ?
Can I create a dataset from existing Dataset for each customer, so that I
can set the datasouce of gridview controls or anything similar.
Any idea please ?
Best Regards,
Luqman
- 4
- ASP.Net >> Recent internet explorer update and smart navigationRecently a new windows update for internet explorer was released which
seems to have broken stylesheets with smart navigation.
The first request for the page works fine, but any subsequent postbacks
when smart navigation is applied results in internet explorer not
applying the style sheet.
Has anyone else had this problem and found a solution as at the moment
I've had to disable smart navigation on the page.
- 5
- ASP.Net >> Intellisense for asp controls stopped working in VS2005 for one siteHello,
I have been working on a site in VS2005, and have noticed that the
autocomplete has stopped working for asp controls. If I type...
<a
in an .aspx file, then I get a list of possible XHTML elements in the
intellisense dropdown, but none of the ASP.NET server controls (which
are normally listed, starting with asp:).
I get the autocompletion in one file on the site, but not the majority.
If I type the name of a control by hand, say...
<asp:Repeater>
then it closes the tag for me, but doesn't give me any intellisense.
It looks like the problem is only occurring with pages that don't have a
code-behind file, but I'm not 100% sure of this. Is there some reason
why it wouldn't show server controls for a file without a code-behind?
Seems odd.
Any ideas what could be causing this? TIA
--
Alan Silver
(anything added below this line is nothing to do with me)
- 6
- ASP.Net >> Initializing Offline cacheHi,
I've recently installed .NET 2003 onto a computer and am experiencing a long
(4-5 minute) delay in this step. I do not have this problem on my laptop.
Any idea why this step is taking so long?
Thanks,
Steve
- 7
- ASP.Net >> Events Not Firing On Hosted SiteHello,
I'm just now learning how to deploy a simple, working ASP.NET application
developed in VS.NET 2002 that runs
fine on my workstation running IIS.
When I copy the project files over to the host site, the page appears okay
in the web browser, but none of the events seem to fire. I have a button
that, when pressed, is supposed to set the .text property of a label to the
current date. However, its
click event doesn't seem to be firing. Also, the page_load event for the
page doesn't seem to be firing when the page
is loaded.
Any help would be appreciated. Thanks.
Don Christine
- 8
- Frontpage Client >> FP won't delete pages on webWhen I publish to the web using FP2002 it will not delete the pages on the
web so, I have to go to the website and recaculating hyperlinks and that
fixes the problem. The problem is that when I edit my web on my Computer
which is usually every day then, publish to the site I still have to go to
the web to fix the problem. I should not have to edit up on the site after
publishing from my Computer every time. I have reinstalled Office XP and
reinstalled, Updated Office and did a publish of every page from the web to
my Computer. Help Please.
- 9
- ASP.Net >> 1 global update button to update all rows in GridviewHi there,
I've a question. I would like to create a global update button to
update all changed records gridview.
e.g. A gridview contains 5 columns an 2 of the columns can be updated
by the user. (other 3 are readonly)
e.g. a column called Status is a dropdownlistbox the user can choose a
status of the product and the other column called instructions is a
text box, the user can type in any value.
So my gridview shows 15 rows and the user can update the status (ddL
box) and instructions (free textbox).
I was able to program to make an update button for each row by using
itemcommand event and update that particular row. That works fine, but
the users don't like this they only want 1 update button above or
below or in the datagrid and the user need to able to change the
status and instructions fields and just press 1 Update button to
update all rows in the gridview.
I looked on internet and MSDN library but I can't find a sample or a
direction..
I don't even know which events I need to use. Can someone point me
to a direction? or at least where to start
e.g. which events or website or an sample ?
thanks in advance,
mesut.
- 10
- Frontpage Client >> Where am I?I have the Apache 2.0.50 web server running and I know
the IP address of my PC.
But when I use my browser to find:
http://12.34.56.789/MyFolder/MyFile.htm
I get the "not found" error. I do have a "MyFolder"
folder under the Apache2 folder (which contains
MyFile.htm). Doesn't http://12.34.56.789 resolve to the
Apache2 folder? Apparently not. How can I determine how
this IP address relates to the folders on my PC?
Thanks,
Dale F.
- 11
- 12
- ASP.Net >> Trying to migrate an anonymous profile to an authenticated oneHi
I'm having trouble with using Profile.GetProfile(e.AnonymousID) from the
profile_MigrateAnonymous event handler. I'm trying to implement this in a
code behind file for Global.asax but Profile.GetProfile() is not defined. I
understand that this could be related to Profile being a class generated at
run time and therefore I cannot use it at compile time? How do I work around
this? Global.asax is not permitted to have a <script> section and a
code-behind file.
Thanks
Geoff
- 13
- ASP.Net >> DatesHello all,
we have an app with works across the globe, and therefore dates are
displayed in a number of formats, such as dd/MM/yyyy (uk) and MM/dd/yyyy
(usa). When our app has it's language set to ENGLISH everything works fine,
but when it's set to AMERICAN the dates fail as we're trying to cast a date
such as 16/04/2007 to a US DateTime.
What I need to know is, no matter what culture/language you're in how do you
cast the dates a date dd/MM/yyyy.
Thanks,
Jon
- 14
- 15
- ASP.Net >> Can't remove cookies!Hi,
I have a login page where if the user wants his access codes to be saved are
set into a cookie. In the logout page, I want to delete those cookies. I
tried this and this is not working at all:
if (Request.Cookies[COOKIE_USER] != null
&& Request.Cookies[admin.COOKIE_PSWD] != null)
{
Response.Cookies[COOKIE_USER].Value = null;
Response.Cookies[COOKIE_PSWD].Value = null;
Response.Cookies.Remove(COOKIE_USER);
Response.Cookies.Remove(COOKIE_PSWD);
}
If I do a response.write like this right after or on another page, it shows
that the cookies are still set:
Response.Write((Request.Cookies[COOKIE_USER] == null) + " " +
Request.Cookies[COOKIE_USER].Value + " ");
Response.Write((Request.Cookies[COOKIE_PSWD] == null) + " " +
Request.Cookies[COOKIE_PSWD].Value);
Why is this not working? How do we remove user's cookie?
Thanks
Stephane
|
|
|