 |
 |
Index ‹ Web Programming ‹ ASP.Net
|
- Previous
- 1
- ASP.Net >> regex puzzle!The objective is to extract the first n characters of text from an
HTML block. I wish to preserve all HTML (links, formatting etc.), and
at the same time, extend the size of the block to ensure that all
closing tags are recovered.
For example, simply extracting the first 400 characters of a HTML
block may result in an <i> opening tag being including, but its
closing tag being excluding. Or a link may get chopped halfway - [...
blah blah <a href="ht] may be the last few characters of the recovered
phrase.
Ideally, if any html opening tag is included in the first n
characters, then any number of extra characters should continue to be
extracted from the source block until all paired closing tags are
found.
We can assume that the source block is well-formed HTML, and every
opening tag has a closing tag (whether optional or not). Furthermore
(if it makes any difference), we can assume that all tags are given in
their simplest forms with no attributes (e.g. <p>, <ul>, <li>, <b>),
except for anchor tags, which have the href attribute of course.
Can anyone suggest a regular expression to do this?
- 2
- ASP.Net >> "Floating Layer" when hovering over a LinkButtonI have a collection of asp:LinkButtons on a web form. Based on some
reporting criteria, I will be "highlighting" some of these LinkButtons.
I'd like the user to be able to mouseover the LinkButton and get a
"floating layer" with some text in this.
How can I achieve this on the server side? The conditions that I will
evaluate in order to determine whether or not to highlight a button
will be evaluated on the server side.
On the server side, I will be able to then add onmouseover and
onmouseout attributes to the control.
Thanks for your help
- 3
- ASP.Net >> HTTP Error 403 - Forbidden.I have a 2005 web application that is using the aspnet development
server(nothing set up in IIS). Anyhow I have a hyperlink to a file on the
development server and when clicked on I get the error above. I tried
changing the permissions on the folder that the file is in but it did not
seem to help. I have authentication mode="Windows" in the webconfig.
Thanks.
Paul G
Software engineer.
- 4
- IIS >> Multiple web sites on one serverWe want to provide web hosting for about 25 of our customers. Can someone
please point me to a white paper, tech article or good book on how to set up
multiple web sites on a single windows 2000 server. I want each site
administrator to only see their site. Thanks
Ken
- 5
- ASP.Net >> Dell's new pc ordering site -how?????is there anyone who can tell me how Dell did it?????
just saw Dell's redesigned pc customization aspx pages. very nice.
aside from the new tree view of option choices, clicking one choice in an
option group changes the dollar amounts of other options eg if I click 'no
monitor', then another monitor choice suddenly says "add $150" - all client
side!
is this lots and lots of raw coding, or are they using a control that
generates all this?
any info much appreciated
- 6
- ASP.Net >> Re-databinding after user control change event - missing viewstate second time.I have a user control that is dynamically loaded into a repeater; (so the
user control appears several times)
The user control features a text box and a delete button. When the delete
button is clicked the usercontrol raises an event indicating that the data
in the database that relates to this user control is to be deleted.
In the parent page, when a change in the user control is detected, the
repeater's data binding has to be called again so as to refresh the screen -
and this is where the wheels fall off.
Each user control is effectively dynamically loaded twice; once during
OnInit and then once during the user control's OnChange event handler. On
the second load, the user control's controls do not have the viewstate
reloaded; either because it was previously loaded or because it is happening
too late in the page lifecycle.
In any case, any text that was previously entered into any of the text boxes
vanishes.
If there is another button in the user control that just does a postback
(and does not re-call the Databinding) then the text in the text boxes is
preserved as expected.
A very simple example can be downloaded from
www.tcpiq.com/temp/doubleloading.zip (screen shot at
www.tcpiq.com/temp/doubleloading.jpg). The Delete button as described above
is replaced with the 'Redatabind this repeater' button. Place text any
text box and click 'just post back' and it remains but clicking 'Rebind this
repeater' then it disappears.
Please not that this example is a very simplified example of the real
problem. In the real problem not having the appearance of the controls
preserved between postbacks produces some highly undesirable behaviour.
(think nuclear missiles being launched, etc)
How have people solved this problem?
Is there a Page.ReLoadControlAndReloadAllViewStateSettingPlease(@"~\MyUserControl1.ascx")
method that I have not found?
Can you force a user control to reset its state from the viewstate?
Thanks in advance
Dave A
- 7
- Frontpage Client >> import fp 2000 site from slave hd, to master hd with fp2003My display driver in Me crashed so I am teporarily unable to use my old Me
fp2000 computer where I made my original web site. I can access that hard
drive now as a slave on my XP with fp2003 computer. How do I get the entire
web site from fp2000 now on slave drive F into my new fp2003 master HD so I
can manipulate and publish from my new computer?
- 8
- ASP.Net >> Loading Assemblies from a Newtwork PC - Web ApplicationHi,
I have an asp.net application from where iam loading assemblies using
ASSEMBLY.LoadFrom(AssemblyName.DLL) from my network using IP address of the
network PC. My application is ended up with an error FILE/Assembly or one of
its Dependencies not found..
awaiting for your reply
- 9
- ASP.Net >> non-english character buttonHow would I create a button which when pressed outputs a non-English
character (ä, ö etc) to a text box? I've seen a website where it was
done, but I don't remember the name of the site.
Any help would be really appreciated.
Cheers,
Mike
*** Sent via Developersdex http://www.developersdex.com ***
- 10
- ASP.Net >> My first ASP.NETI'm working with Harold Davis: Visual Basic for Windows chapter 16 ASP.NET
Web Applications page 532.
When I run the program the browser screen looks spooky !
a textbox is missing
a button is missing
a label placed near the center og the screen is placed in the upper left
corner
Why ?
KS, Denmark
- 11
- Frontpage Programming >> cellpadding for one cell only?Hi,
I am using Frontpage 2000. I have a two column table in
which I want cellpadding="0" for all cells except for the
bottom two. For the bottom two cells, I'd like to be
able to set the cellpadding to a higher value. I can't
seem to find a way to set cellpadding for specific cells
(as opposed to the table as a whole). Is this possible?
If not, is there another way I can do this?
Thanks,
Paul
- 12
- Frontpage Client >> Frontpage 2003 Preview SAME browser window - Possible?Is there anyway to have Frontpage 2003 preview in the same browser
window that is used to preview the last previewed page.
I have a site that has a lot of java applets. During development
these applets are accessing a password control area so they require me
to enter a username and password. If the preview could use the same
window, I would not have to keep entering the username and password
for the applet. Unfortunately, Frontpage 2003 is insisting on opening
a new browser each and every time. Is there a hidden option to make
it go back to functioning like older versions of Frontpage.
Thanks,
Mark DeMichele
- 13
- 14
- IIS >> iisstate.exe Executing Page: ASP.dll symbols not found. Unable toHello,
I have installed the Windows debugging toolkit and iisstate 3.2 from
iisfaq.com but in my log file I see this:
Thread Type: Possible ASP page. Possible DCOM activity
Executing Page: ASP.dll symbols not found. Unable to locate ASP page.
Continuing with other analysis.
No remote call being made
======
How do I get the asp page name?
Also how do I know which thread is using the most CPU? I'm having 99%
CPU problem and trying to troubleshoot it.
Thanks in advance.
Jim
- 15
|
| Author |
Message |
Actaeon

|
Posted: Mon May 29 07:54:52 CDT 2006 |
Top |
ASP.Net >> Themes and web.config
I have created two different themes for my web application.
I set the current theme using the web.config.
I have compiled my app usin the -u flag so that the site is updatable.
The problem is that if i change the theme in my web.config file, the
appearence of my site remains the same.
Even if i change something in my .skin file of the current visible
theme, the visualization doesn't change.
What can i do?
Web Programming98
|
| |
|
| |
 |
Alvin

|
Posted: Mon May 29 07:54:52 CDT 2006 |
Top |
ASP.Net >> Themes and web.config
This should be working for you.
Are you refreshing the browser so that the next request picks up the
changes?
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"dust" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>I have created two different themes for my web application.
> I set the current theme using the web.config.
> I have compiled my app usin the -u flag so that the site is updatable.
>
> The problem is that if i change the theme in my web.config file, the
> appearence of my site remains the same.
> Even if i change something in my .skin file of the current visible
> theme, the visualization doesn't change.
>
> What can i do?
>
|
| |
|
| |
 |
dust

|
Posted: Mon May 29 09:03:46 CDT 2006 |
Top |
ASP.Net >> Themes and web.config
Thanks for your answer!
Yes, i even try to restart iis!
|
| |
|
| |
 |
Alvin

|
Posted: Mon May 29 09:28:44 CDT 2006 |
Top |
ASP.Net >> Themes and web.config
Have you tried programmtically changing the theme? If you can
programatically change it, refresh the browser and it still doesn't work,
the problem is with your theme file configuration. Try this:
Configuration cg = Connfiguration.GetWebConfiguration("/");
HttpRuntimeSection section = cg.Sections["HttpRuntime"] as
HttpRuntimeSection;
sec.theme_or_whatever_section = "new val";
couple things with this code. It probably won't compile so make the
adjustments. You need write permissions on the worker process for the config
file.
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"dust" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Thanks for your answer!
> Yes, i even try to restart iis!
>
|
| |
|
| |
 |
dust

|
Posted: Mon May 29 11:25:17 CDT 2006 |
Top |
ASP.Net >> Themes and web.config
I don't need to do it programmatically.
For insance, i have a form that sends an email developed with asp.net.
I need to use this form, with some different settings, on two different
html web site.
So i created an asp.net application with an xml file settings and two
theme.
I deploy the application for the two web site in two different folder
on my web server.
So i don't need to change the theme by code, becase the code is the
same for the two application. I need to change it with my web.config
that can be different for the two web site.
|
| |
|
| |
 |
Alvin

|
Posted: Mon May 29 12:17:45 CDT 2006 |
Top |
ASP.Net >> Themes and web.config
reread my post
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"dust" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>I don't need to do it programmatically.
>
> For insance, i have a form that sends an email developed with asp.net.
> I need to use this form, with some different settings, on two different
> html web site.
> So i created an asp.net application with an xml file settings and two
> theme.
> I deploy the application for the two web site in two different folder
> on my web server.
>
> So i don't need to change the theme by code, becase the code is the
> same for the two application. I need to change it with my web.config
> that can be different for the two web site.
>
|
| |
|
| |
 |
dust

|
Posted: Wed May 31 10:12:18 CDT 2006 |
Top |
ASP.Net >> Themes and web.config
I resolved the problem...
The aspnet_compiler command automatically ADDS the 'theme' on the Page
directive...
If you don't believe it... try to do it!
Alvin Bruney ha scritto:
> reread my post
>
> --
>
> ________________________
> Warm regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> Professional VSTO.NET - Wrox/Wiley
> The O.W.C. Black Book with .NET
> www.lulu.com/owc, Amazon
> Blog: http://www.msmvps.com/blogs/alvin
> -------------------------------------------------------
>
> "dust" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> >I don't need to do it programmatically.
> >
> > For insance, i have a form that sends an email developed with asp.net.
> > I need to use this form, with some different settings, on two different
> > html web site.
> > So i created an asp.net application with an xml file settings and two
> > theme.
> > I deploy the application for the two web site in two different folder
> > on my web server.
> >
> > So i don't need to change the theme by code, becase the code is the
> > same for the two application. I need to change it with my web.config
> > that can be different for the two web site.
> >
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP.Net |
- Next
- 1
- ASP.Net >> ASP.net Tab Missing IIS ManagerI am running SBS 2003 R2 and have installed the dotnet framework version 2.0
and registered it with IIS. However I do not have the ASP.net tab in IIS
Manager, how can i enable this?
Thanks
- 2
- ASP.Net >> retrieveing entire user agentHow do i do this WITHOUT the use of javascript...
I need the entire user agent string, for example
"Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
I need to have this in ASP.NET to be added directly to a database field
without the use of java script... how would i retrieve this whole string?
thanks!
- 3
- ASP.Net >> how can i insert <br> between the items in the checkList ?hi.
i have a checklist that is his items are created dynamcily.
the question is, how can i write "<br"> after the 4 item for example.
and in general,how can i write html code between each item.
hope im clear.
have a nice day.
chkListGeneralSearching.RepeatDirection = RepeatDirection.Horizontal
For Each dr In dsUserGeneralSearching.Tables(0).Rows
chkListGeneralSearching.Items.Add(New ListItem(CStr(dr("sf_sName")),
CStr(dr("sf_nID"))))
Next
- 4
- Frontpage Client >> hit counters to say publish or not publish?I have FrontPage 2003. I notice that right now one of my invisible hit
counters is showing itself marked as "don't publish" (in my live webs and in
my documents). They are all working ok, so no problem there, but I am
wondering if the publish status on this one should be changed to "publish"?
When I have inserted a hit counter on a page I have never marked the file as
either one but I think it starts out as publish and then later I notice that
some show they are "don't publish." What causes this? I am a little confused.
- 5
- ASP.Net >> DLLs in /bin do not loadI have a web app that I have written on a test server. I have written
my own classes and compiled them in several DLL files, which are
located in the /bin directory.
I am now trying to move the project to a production server. I have
copied all the files from the test server to the production server and
set up the directory as an Application with IIS. When I open my first
page, I get a compilation error when it tries to create on of my
custom classes in the DLL.
It is acting like it didn't even load the DLLs into memory. Is there a
setup issue I am having here or would it be a coding problem.
Thanks for the help,
Neil
- 6
- ASP.Net >> Error running SSIS from .Net 2Howdy,
Trying to run a SSIS package in my .Net app. The error is below. The
connection string in the package has the complete connection with user name
and password, DELPHI\OPTIMUSPRIME is my workstation...
FailureError in Microsoft.SqlServer.Dts.Runtime.Package/Connection manager
"DestinationConnectionOLEDB" : An OLE DB error has occurred. Error code:
0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Native
Client" Hresult: 0x80040E4D Description: "Login failed for user
'DELPHI\OPTIMUSPRIME$'.".
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/Destination -
tblTrafficStops [131] : The AcquireConnection method call to the connection
manager "DestinationConnectionOLEDB" failed with error code 0xC0202009.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/DTS.Pipeline : component
"Destination - tblTrafficStops" (131) failed validation and returned error
code 0xC020801C.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/DTS.Pipeline : One or more
component failed validation.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : There were errors
during task validation.
Script is below:
Dim app As New Application
Dim pkg As New Package
Dim pkgLocation As String
Dim pkgResults As DTSExecResult
Dim vars As Variables
Dim el As New EventListener
pkgLocation = Server.MapPath("app_data/import.dtsx")
pkg = app.LoadPackage(pkgLocation, el)
pkgResults = pkg.Execute(Nothing, Nothing, el, Nothing, Nothing)
Response.Write(pkgResults.ToString)
Response.Write(el.EventLog)
--
David Lozzi
Delphi Technology Solutions
Blog: www.lozzi.net
- 7
- ASP/Active Server Pages >> ASP/XML stream to ExcelMy webpage opens a vbscript only page that gets data in xml format and
streams it to Excel. (As described at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_xl2003_ta/html/odc_XLxmlhowto_.asp
- Using VB and ASP with XML to generate Excel 2003 workbooks).
This works fine.
The problem is that in XP SP2, the IE instance opened for the vbscript only
page no longer closes when Excel is closed. The user has to manually close
this window. This didn't happen in XP SP1. Obviously there is a security
change, but I have been unable to determine how to reverse it.
Does anyone know how I can get the IE instance to close when Excel closes in
XP2 SP2?
Thanks
- 8
- IIS >> IIS authorization problem?I'm trying to write a web service that uses CDO for part of its functionality. Whenever I try to instantiate a CDOEXm object (such as CDOEXM.ExchangeServer), my program starts to misbehave. If I examine the event log of the server, I see about a billion of these:
"ASP.NET Admin Service has rejected a request from user 'NT AUTHORITY\NETWORK SERVICE' because the user does not belong to the IIS_WPG group."
The only member of the IIS_WPG group is IWAM_[COMPUTERNAME], so I thought, aha, I'll just change the Application Pool to identify as that user. However, that didn't work. Even after I changed a bunch of permissions, I ended up having similar problems (same error message), even though IWAM_DEV1 is patently a member of the requested group.
I'd be perfectly happy to add NT_AUTHORITY\NETWORK SERVICE to the requested group if only I could, but when I try it says that it can't validate the username.
Please help me! This is my first attempt at web services and it's driving me crazy.
- 9
- ASP.Net >> How Determine Binded ColumnI have a simple TextBox and i have Binded with a column through design
mode.
In my code i have used TextBox1.DataBind()
Is there any way to determine in runtime at which column of my table
the textbox is binded??
- 10
- ASP.Net >> How can I do this?Hello,
I am new in ASP.NET. I read several books and know the concept but since
I am a C++ programmer I am lost in programming methodology in ASP.NET. Here
is my problem:
I have a page which consists of two sections. A tree view on left and a
detail view on right. The tree view would get its data from a database. For
simplicity I wrote a C# class to fill the tree with some dummy data. When
user click on any node, based on the node depth and also node content and
user name, the detail section should display some information. To do this I
created a master page. Since tree view would shows on all pages I put it on
master page. I fill the tree on master page load event.
When the user clicks on any node, I redirect the user to a new page based on
the depth of node.
Everything is working well till this point but the problem started from here
and they are:
1-Every time that user redirected to a new page, tree is populated. This
process is slow. The content of tree is not changed in any session but
master page load event is called for all child pages of this master page and
hence the tree is filled un necessarily.
2- Since the tree is populated when a new page is shown, it loses its state.
3- Since tree looses its state when user is redirected to a new page, I can
not detect what I need to show in the new page.
Now my questions:
1- Where is the best place to fill the tree view?
2- Is there any sample web program similar to what I want to create that I
can download and look at?
3- Is there any way that only detail section be rendered during a post back
and not the tree view itself? I read about AJAX and Atlas. Are they any
good? Can I use them with ASP.NET? Where can I read more about them and how
they are compared with each other?
4- Any other suggestion.
Regards
- 11
- ASP/Active Server Pages >> asp engine sets cache-control to privateHi, i am trying to set cache control from iis to no-transform it works fine
but when asp runs it alsoe sets it automaticly to private.
see the example below
-----------------------------------------
HTTP Status Code: HTTP/1.1 200 OK
Connection: close
Date: Wed, 02 Apr 2008 21:44:09 GMT
Server: Microsoft-IIS/6.0
Cache-Control: no-transform
Content-Length: 2523
Content-Type: application/xhtml+xml
Set-Cookie: ASPSESSIONIDCSBDCRTR=FGAKMIMBBEEFCKEMGOMAOEGF; path=/
Cache-control: private
--------------------------------------
is there any way to change this auto mode? i know i can change it in the asp
but i have 100s of pages and it wouldn't be easy to go back once its set in
asp pages.
- 12
- ASP.Net >> BC30456: 'InitializeCulture' is not a member of 'ASP.default_aspx'.Hi,
I'm using .NET V2.0
I have been using un-compiled code behind pages for my .net app using
"Src" in the @Page. I randomly get an Initialized Culture error when
trying to access the page. Many times I can simply refresh and the app
runs fine. I have not messed with the culture setting at all. At first
I thought it was the server so I switched web servers but got the same
random error. It only happens maybe 10% of the time. After researching
this error and still being unable to fix the problem I copied the code
and pasted it in <script></script> tags in the aspx page, my app now
runs fine and I have not received that error since then. A copy of the
error is listed below.
Anybody else have this problem? Do you know what's causing it or how
to fix it?
Here is the .NET error I mentioned.
-------->
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'InitializeCulture' is not a member of
'ASP.default_aspx'.
Source Error:
Line 1: <%@ Page Language="vb" Src="codebehind/KEW_Startup.aspx.vb"
Inherits="KwikEntryApp"%>
Line 2: <HTML>
Line 3: <HEAD>
---------->
Let me know if you have any idea what's causing it or how to fix it.
Jeremy Reid
http://blackstaronline.net/hgtit
- 13
- Frontpage Client >> Publishing issuei have a couple websites on http://localhost. when i try to publish one to
the correct http:// web address, i get the standard username and password
window to enter data. now, the top title bar of the window has the correct
http:// address, but under that there is an uncorrect web address above the
username. so, when i try and put the correct username and password in, it
comes back and asks again.
i have uninstall/reinstalled FP2003 and the issue is still there. i have
cleared IE cookies and temp internet files. i am not sure where this
information is coming from.
any help would be appreciated!
- 14
- Frontpage Client >> Submit ButtonI am actually using Visual Studio but I can't find a discussion group for it.
I have a submit button that saves data to a database but I also want it to
open a "Thank You" page. My code is:
Try
InsertDataIntoDB()
Catch ex As Exception
Throw New Exception("", ex)
End Try
How can I get this to also open a .htm page?
- 15
- ASP.Net >> setting default buttonWhat are the ways to set default (activiated on enter)
status for buttons?
i've tried:
TabIndex
and
Page.RegisterHiddenField("__EVENTTARGET", "cmdWhatever")
but the first button seems to be default always. I must
be missing something.
Thanks for any assistance.
|
|
|