| Best Way to Replace string character |
|
 |
Index ‹ Web Programming ‹ ASP.Net
|
- Previous
- 1
- ASP.Net >> Javascript changes not savedI'm using Javascript to change a value in an asp:textbox control on an
asp.net page, then submitting the page and persisting the data using c# code.
I can see the value in the textbox change when the Javascript runs, but when
the page is submitted, the c# event code still sees the original value in the
textbox, not the value that was updated by Javascript.
Hereâ??s the javascript code that changes the value:
document.forms[0].txt1.value = calcCigScore();
alert (document.forms[0].txt1.value);
The alert shows me that the value has changed (I can also see it change on
the page).
And hereâ??s the c# code from the SaveRecord event on the aspx page:
mIntake.CigScore = int.Parse(txt1.Text);
When tracing through the code, I see that txt1.Text still equals the value
that was originally loaded into the page.
Is there a reason why .Net doesnâ??t see the updated value? Anything I can do
to change that?
Thanks
- 2
- 3
- Frontpage Client >> Duplicate textI am working on a real estate site. Data about rental/sale homes is duplicated on the page. Is there a way for the listing at one part of the page be tied to the second so when you change, lets say, the price it automatically changes both places? If this is possible, can it be done on separate pages also? http://villagewalksarasotarealty.com/for%20rent.htm
- 4
- Frontpage Client >> Publishing ProcedureHello.
You create a new site using FrontPage. You publish it to a server with
FrontPage extensions already installed. No problem!
Now you Frontpage website is 350-400 htm pages! You publish and FrontPage
takes forever to compare the local and remote webs in order to start
publishing!
Is that the only thing to do when publishing lareg websites through
FrontPage? ie, wait until the comparison process ends for FP to start
publishing the modified or new htm documents and pictures (if any)?
Please advise.
- 5
- IIS >> IIS 6.0 (401 Unauthorized)Hi
Is it Compulsosory to Check Integrated Windows Authentication along with
Annonymous with IIS6.0 If it is not checked I get a 401 Unauthorized Error
Page
Regards
Prasanna
- 6
- ASP.Net >> using VS with an AD server and a Broadband routerHi guys
Wondering if you can help me with a setup issue.
All my development is web based, using IIS5.1 on a Windows 2000 Server
running Active Directory.
Everything was working fine until I upgraded to Broadband. In order to get
the internet across all my machines, I have to set the Primary DNS in network
properties to the modem/router.
Unfortunately, this has stopped VS loading any web projects. It gives me a
forbidden error. If I put the IP of the server in Primary DNS, it works fine,
but I can't access the internet.
So I thought I'll put the server addy in the Alternate DNS box. If I do
that, I can access the net (primary dns is router), but still cant access the
server. If I swap them, so primary is server, alternate is router, I can
access my VS projects but NOT the internet.
What can I do to get both working?!!
Cheers
Dan
- 7
- Frontpage Client >> ASP.NET pannelsHi, perhaps my last post was a little long so I will post a new one that is
such a taxing read.
How come ASP.NET panels can't be edited in FP2003. In FP2k I could at least
apply styles and font colours etc to those funny little <?> boxes. I have to
do it all in code view now with FP2003. I have to search through all the
html to find a specific tag or area I want to edit as when I click on it in
design view the whole panel's code is highlighted. What a mission to just
add some colour or style. The panel is quite large (about 300 lines) so not
a quick job to find lots of little bits of stuffed up formatting that my
programmer has left for me to fix. Grumble, grumble, mutter, mutter.
Cheers again
"Aotearoa, still the land of the long white cloud"
- 8
- IIS >> WIN XP PRO HOSTING MULTI WEBSITES IIS 5.1I want to host 2 websites on my win xp pro box using default IIS 5.1. I am dumbfounded at how IIS knows which root directory to use when it receives a request for webpages. I only have one root directory avail on win xp pro. Knowledge database talks about utilizing multi headers, but I dont understand how its suppose to work with one IP and one port. Any help would be great. What about creating virtual directory, would that help
Cheers
Ian
- 9
- IIS >> Help with IISState Log FilesHello,
I'm supporting a web application that runs on a pair of load-balanced
servers and occasionally IIS stops responding. Both servers are IIS5/win2k
advanced server.
Any help would be greatly appreciated.
Thanks!
====================================
Opened log file 'C:\iisstate\output\IISState-1372.log'
***********************
Starting new log output
IISState version 3.1
Mon Sep 29 10:41:04 2003
OS = Windows 2000
Executable: inetinfo.exe
PID = 1372
Note: Thread times are formatted as HH:MM:SS.ms
***********************
Thread ID: 0
System Thread ID: 558
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: Other
# ChildEBP RetAddr
00 0006f89c 77e873b6 ntdll!NtReadFile+0xb
01 0006f910 77dc9385 KERNEL32!ReadFile+0x181
02 0006f93c 77dc9225 ADVAPI32!ScGetPipeInput+0x28
03 0006f9b8 77db3068 ADVAPI32!ScDispatcherLoop+0x4a
04 0006fbf4 01002884 ADVAPI32!StartServiceCtrlDispatcherA+0x7d
05 0006fd30 01001e94 inetinfo!StartDispatchTable+0x2f1
06 0006ff70 01002fbf inetinfo!main+0x654
07 0006ffc0 77e97d08 inetinfo!mainCRTStartup+0xff
08 0006fff0 00000000 KERNEL32!BaseProcessStart+0x3d
Thread ID: 1
System Thread ID: 578
Kernel Time: 0:0:0.93
User Time: 0:0:0.62
Thread Type: Other
# ChildEBP RetAddr
00 005dfd1c 77e86a15 ntdll!ZwWaitForSingleObject+0xb
01 005dfd44 77e86a3d KERNEL32!WaitForSingleObjectEx+0x71
02 005dfd54 6e6f1eda KERNEL32!WaitForSingleObject+0xf
03 005dfd70 01002440 iisadmin!ServiceEntry+0x11c
04 005dffa4 77dc9571 inetinfo!InetinfoStartService+0x2bd
05 005dffb4 77e8758a ADVAPI32!ScSvcctrlThreadA+0xe
06 005dffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 2
System Thread ID: 584
Kernel Time: 0:15:7.62
User Time: 0:5:35.687
*** ERROR: Symbol file could not be found. Defaulted to export symbols
or -
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0071fe60 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0071feb0 77e1375e KERNEL32!WaitForMultipleObjectsEx+0xea
02 0071ff0c 77e1382b USER32!MsgWaitForMultipleObjectsEx+0x153
03 0071ff28 6e5a313c USER32!MsgWaitForMultipleObjects+0x1d
04 0071ff80 7800a3c0 IisRTL!SchedulerWorkerThread+0xa7
WARNING: Stack unwind information not available. Following frames may be
wrong.
05 0071ffb4 77e8758a MSVCRT!beginthreadex+0xca
06 0071ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 3
System Thread ID: 588
Kernel Time: 0:13:42.593
User Time: 0:6:19.546
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0075fe60 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0075feb0 77e1375e KERNEL32!WaitForMultipleObjectsEx+0xea
02 0075ff0c 77e1382b USER32!MsgWaitForMultipleObjectsEx+0x153
03 0075ff28 6e5a313c USER32!MsgWaitForMultipleObjects+0x1d
04 0075ff80 7800a3c0 IisRTL!SchedulerWorkerThread+0xa7
WARNING: Stack unwind information not available. Following frames may be
wrong.
05 0075ffb4 77e8758a MSVCRT!beginthreadex+0xca
06 0075ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 4
System Thread ID: 4fc
Kernel Time: 0:0:0.125
User Time: 0:0:0.15
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 00e0fc1c 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 00e0fc6c 77e1375e KERNEL32!WaitForMultipleObjectsEx+0xea
02 00e0fcc8 77e1382b USER32!MsgWaitForMultipleObjectsEx+0x153
03 00e0fce4 769c67fd USER32!MsgWaitForMultipleObjects+0x1d
04 00e0fd30 6fc6b2c0 INFOCOMM!IIS_SERVICE::StartServiceOperation+0x1d9
05 00e0fd70 01002440 ftpsvc2!ServiceEntry+0xc7
06 00e0ffa4 77dc9571 inetinfo!InetinfoStartService+0x2bd
07 00e0ffb4 77e8758a ADVAPI32!ScSvcctrlThreadA+0xe
08 00e0ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 5
System Thread ID: 5d4
Kernel Time: 0:0:0.109
User Time: 0:0:0.15
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 00e4fc1c 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 00e4fc6c 77e1375e KERNEL32!WaitForMultipleObjectsEx+0xea
02 00e4fcc8 77e1382b USER32!MsgWaitForMultipleObjectsEx+0x153
03 00e4fce4 769c67fd USER32!MsgWaitForMultipleObjects+0x1d
04 00e4fd30 67830c3f INFOCOMM!IIS_SERVICE::StartServiceOperation+0x1d9
05 00e4fd70 01002440 SMTPSVC!ServiceEntry+0x11d
06 00e4ffa4 77dc9571 inetinfo!InetinfoStartService+0x2bd
07 00e4ffb4 77e8758a ADVAPI32!ScSvcctrlThreadA+0xe
08 00e4ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 6
System Thread ID: 5d8
Kernel Time: 0:0:0.0
User Time: 0:0:0.62
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 00e8fc1c 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 00e8fc6c 77e1375e KERNEL32!WaitForMultipleObjectsEx+0xea
02 00e8fcc8 77e1382b USER32!MsgWaitForMultipleObjectsEx+0x153
03 00e8fce4 769c67fd USER32!MsgWaitForMultipleObjects+0x1d
04 00e8fd30 65f2f217 INFOCOMM!IIS_SERVICE::StartServiceOperation+0x1d9
05 00e8fd70 01002440 w3svc!ServiceEntry+0x1b5
06 00e8ffa4 77dc9571 inetinfo!InetinfoStartService+0x2bd
07 00e8ffb4 77e8758a ADVAPI32!ScSvcctrlThreadA+0xe
08 00e8ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 7
System Thread ID: 468
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: HTTP Listener
# ChildEBP RetAddr
00 0104ff5c 77e86b69 ntdll!NtRemoveIoCompletion+0xb
01 0104ff88 6d70b5cf KERNEL32!GetQueuedCompletionStatus+0x27
02 0104ffb4 77e8758a ISATQ!I_AtqOplockThreadFunc+0x32
03 0104ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 8
System Thread ID: 604
Kernel Time: 0:0:27.937
User Time: 0:1:27.171
Thread Type: HTTP Listener
# ChildEBP RetAddr
00 0108ff50 77e86b69 ntdll!NtRemoveIoCompletion+0xb
01 0108ff7c 6d70237f KERNEL32!GetQueuedCompletionStatus+0x27
02 0108ffb4 77e8758a ISATQ!AtqPoolThread+0x40
03 0108ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 9
System Thread ID: 608
Kernel Time: 0:0:31.937
User Time: 0:1:39.281
Thread Type: HTTP Listener
# ChildEBP RetAddr
00 010cff50 77e86b69 ntdll!NtRemoveIoCompletion+0xb
01 010cff7c 6d70237f KERNEL32!GetQueuedCompletionStatus+0x27
02 010cffb4 77e8758a ISATQ!AtqPoolThread+0x40
03 010cffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 10
System Thread ID: 618
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
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
# ChildEBP RetAddr
00 0140fe24 77d5092d ntdll!ZwReplyWaitReceivePortEx+0xb
01 0140ff74 77d50781 RPCRT4!LRPC_ADDRESS::ReceiveLotsaCalls+0x74
02 0140ff78 77d50e13 RPCRT4!RecvLotsaCallsWrapper+0x9
03 0140ffa8 77d50c7a RPCRT4!BaseCachedThreadRoutine+0x11f
04 0140ffb4 77e8758a RPCRT4!ThreadStartRoutine+0x18
05 0140ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 11
System Thread ID: 620
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0148fd20 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0148fd70 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 0148fd88 778322b2 KERNEL32!WaitForMultipleObjects+0x17
03 0148ffb4 77e8758a RTUTILS!TraceServerThread+0xde
04 0148ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 12
System Thread ID: 628
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
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
# ChildEBP RetAddr
00 014dfeb8 77e86b69 ntdll!NtRemoveIoCompletion+0xb
01 014dfee4 77d470e6 KERNEL32!GetQueuedCompletionStatus+0x27
02 014dff20 77d5d195 RPCRT4!COMMON_ProcessCalls+0x9e
03 014dff74 77d5d074 RPCRT4!LOADABLE_TRANSPORT::ProcessIOEvents+0x99
04 014dff78 77d50d7f RPCRT4!ProcessIOEventsWrapper+0x9
05 014dffa8 77d50c7a RPCRT4!BaseCachedThreadRoutine+0x4f
06 014dffb4 77e8758a RPCRT4!ThreadStartRoutine+0x18
07 014dffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 13
System Thread ID: 630
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0151ff20 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0151ff70 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 0151ff88 701224fa KERNEL32!WaitForMultipleObjects+0x17
03 0151ffb4 77e8758a exstrace!RegNotifyThread+0x6f
04 0151ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 14
System Thread ID: 634
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0155ff24 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0155ff74 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 0155ff8c 70121e6a KERNEL32!WaitForMultipleObjects+0x17
03 0155ffb4 77e8758a exstrace!WriteTraceThread+0x2f
04 0155ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 15
System Thread ID: 638
Kernel Time: 0:0:0.140
User Time: 0:0:0.46
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 016dff00 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 016dff50 7503714f KERNEL32!WaitForMultipleObjectsEx+0xea
02 016dff6c 6fc66ef8 WS2_32!WSAWaitForMultipleEvents+0x18
03 016dffb4 77e8758a ftpsvc2!PASV_ACCEPT_CONTEXT::AcceptThreadFunc+0x39
04 016dffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 16
System Thread ID: 63c
Kernel Time: 0:0:0.359
User Time: 0:0:3.546
Thread Type: Other
# ChildEBP RetAddr
00 0171ff64 77e86a15 ntdll!ZwWaitForSingleObject+0xb
01 0171ff8c 77e86a3d KERNEL32!WaitForSingleObjectEx+0x71
02 0171ff9c 6ff2836e KERNEL32!WaitForSingleObject+0xf
03 0171ffb4 77e8758a FCACHDLL!CScheduleThread::ScheduleThread+0x22
04 0171ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 17
System Thread ID: 640
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0185ff18 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0185ff68 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 0185ff80 678489d3 KERNEL32!WaitForMultipleObjects+0x17
03 0185ffb4 77e8758a SMTPSVC!TcpRegNotifyThread+0x136
04 0185ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 18
System Thread ID: 644
Kernel Time: 0:0:0.0
User Time: 0:0:0.46
Thread Type: Other
# ChildEBP RetAddr
00 0189ff68 77e86a15 ntdll!ZwWaitForSingleObject+0xb
01 0189ff90 77e86a3d KERNEL32!WaitForSingleObjectEx+0x71
02 0189ffa0 67848807 KERNEL32!WaitForSingleObject+0xf
03 0189ffb4 77e8758a SMTPSVC!FreeLibThread+0x1d
04 0189ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 19
System Thread ID: 648
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: HTTP Compression Thread
# ChildEBP RetAddr
00 0195ff5c 77e86a15 ntdll!ZwWaitForSingleObject+0xb
01 0195ff84 77e86a3d KERNEL32!WaitForSingleObjectEx+0x71
02 0195ff94 732c3362 KERNEL32!WaitForSingleObject+0xf
03 0195ffb4 77e8758a compfilt!CompressionThread+0x29
04 0195ffc0 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 20
System Thread ID: 650
Kernel Time: 0:0:0.31
User Time: 0:0:0.15
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 019cfe74 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 019cfec4 77e1375e KERNEL32!WaitForMultipleObjectsEx+0xea
02 019cff20 77e1382b USER32!MsgWaitForMultipleObjectsEx+0x153
03 019cff3c 65f3916e USER32!MsgWaitForMultipleObjects+0x1d
04 019cff80 7800a27b w3svc!CMTACallbackThread::Thread+0x42
WARNING: Stack unwind information not available. Following frames may be
wrong.
05 019cffb4 77e8758a MSVCRT!beginthread+0xce
06 019cffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 21
System Thread ID: 654
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 01a0fea8 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 01a0fef8 77e1375e KERNEL32!WaitForMultipleObjectsEx+0xea
02 01a0ff54 77e1382b USER32!MsgWaitForMultipleObjectsEx+0x153
03 01a0ff70 65f2fe98 USER32!MsgWaitForMultipleObjects+0x1d
04 01a0ffb4 77e8758a w3svc!OleHackThread+0x88
05 01a0ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 22
System Thread ID: 6d4
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: Other
# ChildEBP RetAddr
00 01a8fce0 74fd17cf ntdll!ZwWaitForSingleObject+0xb
01 01a8fd1c 74fd1815 msafd!SockWaitForSingleObject+0x1a8
02 01a8fe08 75032006 msafd!WSPSelect+0x24e
03 01a8fe6c 6e2b3b6e WS2_32!select+0xe7
04 01a8ffb4 77e8758a inetsloc!SocketListenThread+0x51
05 01a8ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 23
System Thread ID: 6dc
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: HTTP Listener
# ChildEBP RetAddr
00 01b0fdfc 74fd17cf ntdll!ZwWaitForSingleObject+0xb
01 01b0fe38 74fd1815 msafd!SockWaitForSingleObject+0x1a8
02 01b0ff24 75032006 msafd!WSPSelect+0x24e
03 01b0ff88 6d70704c WS2_32!select+0xe7
04 01b0ffb0 6d7073aa ISATQ!ATQ_BMON_SET::BmonThreadFunc+0x22
05 01b0ffb4 77e8758a ISATQ!BmonThreadFunc+0x9
06 01b0ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 24
System Thread ID: 708
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: Other
# ChildEBP RetAddr
00 01b5ff54 77e86a15 ntdll!ZwWaitForSingleObject+0xb
01 01b5ff7c 77e86a3d KERNEL32!WaitForSingleObjectEx+0x71
02 01b5ff8c 74a89230 KERNEL32!WaitForSingleObject+0xf
03 01b5ffb4 77e8758a aqueue!CSMTP_RETRY_HANDLER::RetryThreadRoutine+0xce
04 01b5ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 25
System Thread ID: 710
Kernel Time: 0:0:0.15
User Time: 0:0:0.0
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 01b9fed0 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 01b9ff20 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 01b9ff38 74a6fe84 KERNEL32!WaitForMultipleObjects+0x17
03 01b9ff9c 6783c239 aqueue!CConnMgr::GetNextConnection+0x1db
04 01b9ffb4 77e8758a SMTPSVC!PERSIST_QUEUE::QueueThreadRoutine+0x23
05 01b9ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 26
System Thread ID: 848
Kernel Time: 0:0:0.203
User Time: 0:0:0.78
Thread Status: Thread is in a WAIT state.
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 020fff08 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 020fff58 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 020fff70 6959e7c4 KERNEL32!WaitForMultipleObjects+0x17
03 020fffb4 77e8758a COMSVCS!CEventDispatcher::PushEvents+0x44
04 020fffc0 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 27
System Thread ID: 84c
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: Possible ASP page. Possible DCOM activity
Executing Page: ASP.dll symbols not found. Unable to locate ASP page.
Continuing with other analysis.
Remote call is either to a MTA object or object not initialized. Also,
possible utility thread.
DCOM call being made to Process ID: 1552
Waiting on thread id: ffffffff
# ChildEBP RetAddr
00 0213fb68 77d46747 ntdll!NtRequestWaitReplyPort+0xb
01 0213fb94 77d44e4a RPCRT4!LRPC_CCALL::SendReceive+0x11e
02 0213fba0 77b2b757 RPCRT4!I_RpcSendReceive+0x2c
03 0213fbc0 77b2b684 ole32!ThreadSendReceive+0xef
04 0213fbd8 77b2b512 ole32!CRpcChannelBuffer::SwitchAptAndDispatchCall+0x130
05 0213fc18 77b2da98 ole32!CRpcChannelBuffer::SendReceive2+0x96
06 0213fc28 77aa51d2 ole32!CRpcChannelBuffer::SendReceive+0x11
07 0213fc88 77aa518f ole32!CAptRpcChnl::SendReceive+0xa9
08 0213fce0 77da350b ole32!CCtxComChnl::SendReceive+0x121
09 0213fcfc 77da2ef8 RPCRT4!NdrProxySendReceive+0x4c
0a 0213ff44 77da34a6 RPCRT4!NdrClientCall2+0x52f
0b 0213ff60 77d44ad0 RPCRT4!ObjectStublessClient+0x76
0c 0213ff70 6959e71e RPCRT4!ObjectStubless+0xf
0d 0213ffb4 77e8758a
COMSVCS!CEventDispatcher::GetEventServerInfoThread+0x10e
0e 0213ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 28
System Thread ID: 850
Kernel Time: 0:1:50.359
User Time: 0:3:30.765
*** ERROR: Symbol file could not be found. Defaulted to export symbols
or -
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0243ff20 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0243ff70 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 0243ff88 43ef5587 KERNEL32!WaitForMultipleObjects+0x17
WARNING: Stack unwind information not available. Following frames may be
wrong.
03 0243ffb4 77e8758a sqlisapi!HttpExtensionProc+0xd1a
04 0243ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 29
System Thread ID: 854
Kernel Time: 0:1:49.593
User Time: 0:3:27.562
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0247ff20 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0247ff70 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 0247ff88 43ef5587 KERNEL32!WaitForMultipleObjects+0x17
WARNING: Stack unwind information not available. Following frames may be
wrong.
03 0247ffb4 77e8758a sqlisapi!HttpExtensionProc+0xd1a
04 0247ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 30
System Thread ID: 858
Kernel Time: 0:1:43.312
User Time: 0:3:17.531
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 024bff20 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 024bff70 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 024bff88 43ef5587 KERNEL32!WaitForMultipleObjects+0x17
WARNING: Stack unwind information not available. Following frames may be
wrong.
03 024bffb4 77e8758a sqlisapi!HttpExtensionProc+0xd1a
04 024bffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 31
System Thread ID: 85c
Kernel Time: 0:1:51.875
User Time: 0:3:33.125
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 024fff20 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 024fff70 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 024fff88 43ef5587 KERNEL32!WaitForMultipleObjects+0x17
WARNING: Stack unwind information not available. Following frames may be
wrong.
03 024fffb4 77e8758a sqlisapi!HttpExtensionProc+0xd1a
04 024fffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 32
System Thread ID: 860
Kernel Time: 0:1:52.78
User Time: 0:3:32.906
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0253ff20 77e86dda ntdll!NtWaitForMultipleObjects+0xb
01 0253ff70 77e86e1a KERNEL32!WaitForMultipleObjectsEx+0xea
02 0253ff88 43ef5587 KERNEL32!WaitForMultipleObjects+0x17
WARNING: Stack unwind information not available. Following frames may be
wrong.
03 0253ffb4 77e8758a sqlisapi!HttpExtensionProc+0xd1a
04 0253ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 33
System Thread ID: 864
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Status: Thread is in a WAIT state.
Thread Type: Other
# ChildEBP RetAddr
00 0259ff88 7517b537 ntdll!NtWaitForMultipleObjects+0xb
01 0259ffb4 77e8758a NETAPI32!NetbiosWaiter+0x71
02 0259ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 34
System Thread ID: 874
Kernel Time: 0:0:0.0
User Time: 0:0:0.31
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINNT\system32\MSDART.DLL -
Thread Type: Other
# ChildEBP RetAddr
00 0269ff60 77e86a15 ntdll!ZwWaitForSingleObject+0xb
01 0269ff88 77e86a3d KERNEL32!WaitForSingleObjectEx+0x71
02 0269ff98 1f6a0dbf KERNEL32!WaitForSingleObject+0xf
WARNING: Stack unwind information not available. Following frames may be
wrong.
03 0269ffb4 77e8758a MSDART!CMdVersionInfo::IsWin2k+0x172
04 02188040 00000001 KERNEL32!BaseThreadStart+0x52
Thread ID: 35
System Thread ID: 660
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: Other
# ChildEBP RetAddr
00 03c8ff70 77e86a15 ntdll!ZwWaitForSingleObject+0xb
01 03c8ff98 77e86a3d KERNEL32!WaitForSingleObjectEx+0x71
02 03c8ffa8 6a8c8fa3 KERNEL32!WaitForSingleObject+0xf
03 03c8ffb4 77e8758a msw3prt!SleeperSchedule+0xf
04 03c8ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 36
System Thread ID: 984
Kernel Time: 0:0:23.296
User Time: 0:0:21.78
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
# ChildEBP RetAddr
00 0a15fe24 77d5092d ntdll!ZwReplyWaitReceivePortEx+0xb
01 0a15ff74 77d50781 RPCRT4!LRPC_ADDRESS::ReceiveLotsaCalls+0x74
02 0a15ff78 77d50e13 RPCRT4!RecvLotsaCallsWrapper+0x9
03 0a15ffa8 77d50c7a RPCRT4!BaseCachedThreadRoutine+0x11f
04 0a15ffb4 77e8758a RPCRT4!ThreadStartRoutine+0x18
05 0a15ffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 37
System Thread ID: 788
Kernel Time: 0:0:10.453
User Time: 0:0:9.140
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
# ChildEBP RetAddr
00 0dfafe24 77d5092d ntdll!ZwReplyWaitReceivePortEx+0xb
01 0dfaff74 77d50781 RPCRT4!LRPC_ADDRESS::ReceiveLotsaCalls+0x74
02 0dfaff78 77d50e13 RPCRT4!RecvLotsaCallsWrapper+0x9
03 0dfaffa8 77d50c7a RPCRT4!BaseCachedThreadRoutine+0x11f
04 0dfaffb4 77e8758a RPCRT4!ThreadStartRoutine+0x18
05 0dfaffec 00000000 KERNEL32!BaseThreadStart+0x52
Thread ID: 38
System Thread ID: 978
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
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
# ChildEBP RetAddr
00 00bbfe24 77d5092d ntdll!ZwReplyWaitReceivePortEx+0xb
01 00bbff74 77d50781 RPCRT4!LRPC_ADDRESS::ReceiveLotsaCalls+0x74
02 00bbff78 77d50e13 RPCRT4!RecvLotsaCallsWrapper+0x9
03 00bbffa8 77d50c7a RPCRT4!BaseCachedThreadRoutine+0x11f
04 00bbffb4 77e8758a RPCRT4!ThreadStartRoutine+0x18
05 00bbffec 00000000 KERNEL32!BaseThreadStart+0x52
Closing open log file C:\iisstate\output\IISState-1372.log
- 10
- ASP.Net >> Asymmetric EncryptionHello everybody..
I hav some confusion regarding asymmetric encryption.As asymmetric
encryption it there is one private key and one public key.So any data
is encrypted using private key and the same is decrypted at client side
using public key and vice-versa..Now i hav confusion like i.e.
* Are both the keys available to both sender and receiver.?
* When data is encrypted using public key ,Is the same data decrypted
using private key( at client side).?
* How the keys are send to the client/receiver of message..I mean are
they assigned to browsers or they are validated or send depending on
login id/password of a user.?
*If possible kindly explain (in-short) the whole process of assymetric
encryption.!!!plz
Thanks & Regards
Priyabrata
- 11
- 12
- 13
- ASP.Net >> Application FolderHello, I am taking ASP.Net at school and I have run into differences
between running the code at home and running it at school.
I have a couple of issues which I believe are related to the folder
under which I am running my application on is not designated as an
"application folder" so things like Forms authentication does not
function correctly.
I have not been successfull in getting the school to change the folder
to an application folder, so I was wondering how I would go about
setting the same situation up on my home machine to "validate" that this
is the root cause of my issues.
Using Windows Explorer, I created a directory in WWWRoot and ported over
my application. When I do, the application does fail and I get a
"different error" message, but It is failing right in the web.config
file on the <authentication. On the school machine it was giving me an
error about "<customErrors", but that was a bogus message.
Now what exactly would I now need to do to make this folder an
"application folder", so that I can see the problem "go away".
Thanks in advance for your assitance!!!!!!!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 14
- Frontpage Client >> how can i center everythingI have this web template, and i want everythign to be centered, that way when
i view it in a site or work on it i can see it in the middle of the browser
and not up against the left side, here is the code can anyone help??
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Spiral Existence</title>
<script>
<!--
active1 = new Image(26,26);
active1.src = "but1b.jpg";
inactive1 = new Image(26,26);
inactive1.src = "but1a.jpg";
active2 = new Image(26,26);
active2.src = "but2b.jpg";
inactive2 = new Image(26,26);
inactive2.src = "but2a.jpg";
active3 = new Image(26,26);
active3.src = "but3b.jpg";
inactive3 = new Image(26,26);
inactive3.src = "but3a.jpg";
active4 = new Image(26,26);
active4.src = "but4b.jpg";
inactive4 = new Image(26,26);
inactive4.src = "but4a.jpg";
active5 = new Image(26,26);
active5.src = "but5b.jpg";
inactive5 = new Image(26,26);
inactive5.src = "but5a.jpg";
active6 = new Image(26,26);
active6.src = "but6b.jpg";
inactive6 = new Image(26,26);
inactive6.src = "but6a.jpg";
active7 = new Image(26,26);
active7.src = "but7b.jpg";
inactive7 = new Image(26,26);
inactive7.src = "but7a.jpg";
active8 = new Image(26,26);
active8.src = "but8b.jpg";
inactive8 = new Image(26,26);
inactive8.src = "but8a.jpg";
active9 = new Image(26,26);
active9.src = "but9b.jpg";
inactive9 = new Image(26,26);
inactive9.src = "but9a.jpg";
//-->
</script>
</head>
<style><!--a:hover{color:#000080; text-decoration:underline; }--></style>
<style><!--a{text-decoration:none}; //--></style>
<body bgcolor="#5A6979" leftmargin="0" topmargin="0">
<table width="780" height="100%" bgcolor=white border="0" align="left"
cellpadding="0" cellspacing="0">
<tr>
<td height="270" valign="top">
<table width="780" height="270" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="592">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="592" HEIGHT="270" id="flash" ALIGN="">
<PARAM NAME=movie VALUE="flash.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="flash.swf" quality=high bgcolor=#FFFFFF WIDTH="592"
HEIGHT="270" NAME="flash" ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></td>
<td width="188"><img src="buttop.jpg" width="188" height="136"><a
href="1.htm" onMouseOver="inactive1.src=active1.src; window.status='';return
true" onMouseOut="inactive1.src='but1a.jpg'"><img name="inactive1" img
border="0" src="but1a.jpg"></a><a href="2.htm"
onMouseOver="inactive2.src=active2.src; window.status='';return true"
onMouseOut="inactive2.src='but2a.jpg'"><img name="inactive2" img border="0"
src="but2a.jpg"></a><a href="3.htm" onMouseOver="inactive3.src=active3.src;
window.status='';return true" onMouseOut="inactive3.src='but3a.jpg'"><img
name="inactive3" img border="0" src="but3a.jpg"></a><a href="4.htm"
onMouseOver="inactive4.src=active4.src; window.status='';return true"
onMouseOut="inactive4.src='but4a.jpg'"><img name="inactive4" img border="0"
src="but4a.jpg"></a><a href="5.htm" onMouseOver="inactive5.src=active5.src;
window.status='';return true" onMouseOut="inactive5.src='but5a.jpg'"><img
name="inactive5" img border="0" src="but5a.jpg"></a><a href="6.htm"
onMouseOver="inactive6.src=active6.src; window.status='';return true"
onMouseOut="inactive6.src='but6a.jpg'"><img name="inactive6" img border="0"
src="but6a.jpg"></a><img src="butdown.jpg"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" background="stripe.jpg">
<table width="770" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td>
<font color="#000000" size="1" face="Arial, Helvetica, sans-serif">>>
PAGE NAME COMES HERE</font></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top">
<table width="780" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="188">
<table width="188" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td height="20" background="lefttop.jpg">
<table width="153" border="0" align="right" cellpadding="0"
cellspacing="0">
<tr>
<td>
<font color="#FFFFFF" size="1" face="Arial, Helvetica,
sans-serif">COMPANY NEWS</font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="110" valign="top" background="leftback.jpg">
<table width="188" height="100%" border="0" cellpadding="0"
cellspacing="5">
<tr>
<td valign="top">
<div align="justify">
<font color="#FFFFFF" face="Arial" size="2">
The fusion with Vilords meant a further
step. The fusion with Vilords. The fusion
with Vilords meant. The fusion with Vilords.
The fusion with Vilords meant a further
step. meant a further.</font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="26" background="leftmiddle.jpg">
<table width="153" border="0" align="right" cellpadding="0"
cellspacing="0">
<tr>
<td>
<font color="#FFFFFF" size="1" face="Arial, Helvetica,
sans-serif">PARTNER LINKS</font></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" background="leftback.jpg">
<table width="188" height="100%" border="0" cellpadding="0"
cellspacing="5">
<tr>
<td valign="top">
<div align="justify">
<p>
<font color="#FFFFFF" face="Arial" size="2">
The fusion with Vilords meant a further
step. The fusion with Vilords. The fusion
with Vilords meant. The fusion with Vilords.
The fusion with Vilords meant a further
step. meant a further.</font></p>
<p>
<font color="#FFFFFF" face="Arial" size="2">
The fusion with Vilords meant a further
step. The fusion with Vilords. The fusion
with Vilords meant. The fusion with Vilords.
The fusion with Vilords meant a further
step. meant a further.</font></p></div></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="592" bgcolor=#B6C6D6>
<table width="592" height="100%" border="0" cellpadding="0"
cellspacing="5">
<tr>
<td valign="top">
<div align="justify"><img src="pic.jpg" align="left"><font
color="#003399" face="Arial" size="2">The
fusion with Vilords. The fusion with Vilords meant a
further
step. meant a further step in a further step in
increasing-meant
a further. Company Vilords media was established in 1998.
The fusion with Vilords. The fusion with Vilords meant a
further
step. meant a further step. The fusion with Vilords meant
a further step. The fusion with Vilords. The fusion with
Vilords
meant a further step. The fusion with Vilords. Again, it
seems.</font>
<font color="#003399" face="Arial" size="2">The fusion with
Vilords meant a further step. The fusion with Vilords.
The
fusion with Vilords meant. The fusion with Vilords.
</font>
</div>
<p align="justify">
<font color="#003399" face="Arial" size="2">The
fusion with Vilords meant a further step. The fusion with
Vilords. The fusion with Vilords meant. The fusion with
Vilords.
The fusion with Vilords meant a further step. meant a
further
step in a further step in increasingmeant a further.
Company
Vilords media was established. The fusion with Vilords
meant
a further step. meant a further step in a further.
Company
Vilords media was established. The fusion with Vilords
meant
a further step. meant a further step in a further.
Company
Vilords media was established. The fusion with Vilords
meant
a further step. meant a further step in a further.
Company
Vilords media was established. The fusion with Vilords
meant
a further step.</font></p>
<p align="justify">
<font color="#003399" face="Arial" size="2">The
fusion with Vilords meant a further step. The fusion with
Vilords. The fusion with Vilords meant. The fusion with
Vilords.
The fusion with Vilords meant a further step. meant a
further
step in a further step in increasingmeant a further.
Company
Vilords media was established. The fusion with Vilords
meant
a further step. meant a further step in a further step.
The
fusion with Vilords meant a further.</font></p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="67" valign="top" background="down.jpg">
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" valign="bottom">
<div align="center"><font color="#FFFFFF" size="1" face="Arial">
<a href=1.htm><font color="#FFFFFF" size="1"
face="Arial">HOME</font></a> ::
<a href=2.htm><font color="#FFFFFF" size="1"
face="Arial">PRODUCTS</font></a> ::
<a href=3.htm><font color="#FFFFFF" size="1"
face="Arial">SERVICES</font></a>
:: <a href=4.htm><font color="#FFFFFF" size="1"
face="Arial">SUPPORT</font></a> ::
<a href=5.htm><font color="#FFFFFF" size="1"
face="Arial">PARTNERS</font></a> ::
<a href=6.htm><font color="#FFFFFF" size="1"
face="Arial">FAQ</font></a> ::
<a href=7.htm><font color="#FFFFFF" size="1" face="Arial">ABOUT
US</font></a> ::
<a href=8.htm><font color="#FFFFFF" size="1" face="Arial">CONTACT
US</font></a></font></div>
</td>
</tr>
<tr>
<td>
<div align="center">
<font color="#B6C6D6" size="1" face="Arial, Helvetica,
sans-serif">Copyright © 2003 Your Company,
All rights reserved.</font></div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
- 15
|
| Author |
Message |
athan

|
Posted: Wed May 18 06:26:15 CDT 2005 |
Top |
ASP.Net >> Best Way to Replace string character
I have the following letters;
string letters = "a;b;c....to z";
the I need to replace the incoming string which containing letters above
with integer 1 i did following
for(int u=0;u<letters.Split(';').Length;u++) {
FilesName = FilesName.Trim().Replace(letters.Split(';')[u], "1");
}
is there better way to do that
Web Programming55
|
| |
|
| |
 |
Karl

|
Posted: Wed May 18 06:26:15 CDT 2005 |
Top |
ASP.Net >> Best Way to Replace string character
Well,
You could use a regular expression. Failing that, you could write your code
to be a lot more efficient.
StringBuilder sb = new StringBuilder(letters.Length);
char[] letters = FilesName.Trim().ToCharArray();
for each (char letter in letters){
sb.Append( letter == ';' ? ';' : '1' ) ;
}
if (letter != ';'){
sb.Append("1");
}
}
or something similar...
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Raed Sawalha" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>I have the following letters;
>
> string letters = "a;b;c....to z";
>
> the I need to replace the incoming string which containing letters above
> with integer 1 i did following
>
> for(int u=0;u<letters.Split(';').Length;u++) {
> FilesName = FilesName.Trim().Replace(letters.Split(';')[u], "1");
> }
>
> is there better way to do that
|
| |
|
| |
 |
Kevin

|
Posted: Wed May 18 07:06:50 CDT 2005 |
Top |
ASP.Net >> Best Way to Replace string character
> is there better way to do that
Sure is. You only need to split the string once, so create a string array
variable, and use that array in your loop. It prevents the recurring split,
which will consume a lot of resources creating arrays of strings that are
constantly being thrown away.
In fact, assumming that you want to use the lettters of the English alphabet
(or any alphabet, for that matter), as you do in your example, you don't
need an array of strings at all. You can create each letter in the alphabet
using its numerical value. As each letter has a numerical value that is
sequential, you can apply math to a single numerical value to get each
letter. This can be done by casting an integer to a char.
--
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.
"Raed Sawalha" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>I have the following letters;
>
> string letters = "a;b;c....to z";
>
> the I need to replace the incoming string which containing letters above
> with integer 1 i did following
>
> for(int u=0;u<letters.Split(';').Length;u++) {
> FilesName = FilesName.Trim().Replace(letters.Split(';')[u], "1");
> }
>
> is there better way to do that
|
| |
|
| |
 |
Karl

|
Posted: Wed May 18 08:00:44 CDT 2005 |
Top |
ASP.Net >> Best Way to Replace string character
egads..just got to work and saw that i had some leftovers in there...should
be:
StringBuilder sb = new StringBuilder(letters.Length);
char[] letters = FilesName.Trim().ToCharArray();
for each (char letter in letters){
sb.Append( letter == ';' ? ';' : '1' ) ;
}
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%EMail@HideDomain.com...
> Well,
> You could use a regular expression. Failing that, you could write your
> code to be a lot more efficient.
>
> StringBuilder sb = new StringBuilder(letters.Length);
> char[] letters = FilesName.Trim().ToCharArray();
> for each (char letter in letters){
> sb.Append( letter == ';' ? ';' : '1' ) ;
> }
> if (letter != ';'){
> sb.Append("1");
> }
> }
>
> or something similar...
>
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
> come!)
>
>
> "Raed Sawalha" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
>>I have the following letters;
>>
>> string letters = "a;b;c....to z";
>>
>> the I need to replace the incoming string which containing letters above
>> with integer 1 i did following
>>
>> for(int u=0;u<letters.Split(';').Length;u++) {
>> FilesName = FilesName.Trim().Replace(letters.Split(';')[u], "1");
>> }
>>
>> is there better way to do that
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP.Net |
- Next
- 1
- 2
- Frontpage Client >> targetting multiple frames with different contents?Is it possible to target multiple frames with different contents from one
source link.
I have two inline frames for different purpose, yet for a similar topic, how
do I target two inline frames to bring out to different contents when I
select an option from a menu?
I am using FrontPage 2003.
- 3
- Frontpage Client >> Frontpage keeps running producing no error message when trying to open websiteHi,
I can open one website but not another. The other
website opens fine on another computer.
When I try to open the web on the computer that won't do
it frontpage just keeps running with a blank page and no
error message.
I've checked the hard drive, defragmented the disk, ran
detect and repair on frontpage and increased virtual
memory.
Hope someone out there has some ideas?
Thanks so much for reading.
Jerry
- 4
- ASP.Net >> IIS x NetscapeDear friends,
How do I do to test my pages in Netspace 7.1 with IIS 5?
When I open any website, is requested an user and password. I put my Windows
XP user and password but return HTTP error 403...
How do I do to configure IIS for open web site in Netscape without
authentication?
Thank you and I'm sorry by my poor english.
RAMON ROCHA
from Brazil
- 5
- 6
- Frontpage Programming >> Playing two pieces of video in sequenceHow can I program a link to call up two separate pieces of video, one after
another?
I tried the .M3U playlist thing, but had a problem when the first video
would play fine, but the second would only play audio. I tried updating
everything I could find to update, but still couldn't make this work.
Any suggestions would be appreciated.
ed
- 7
- ASP.Net >> Adding Validation via OnItemDataBound event (ASP.NET 2.0)OK, I am running into some issues that I cant figure out a work-around.
I am not going to post code cause I figured out WHY my issue is
happening:
-I have a datagrid, and a button that fires a click event.
-The Datagrids onitemdatabound event dynamically creates validation
controls per values from other columns in the datagrid, one of those
controls is a textbox and it is the ControlToValidate of the validation
control.
ie - Basically, think of a shopping cart with a quantity textbox and
another NOT visible column for inventory. During onitemdatabound I
check the inventory (tempInventory = e.Item.Cells(1).Text) and create
the necessary validation for Qty.
Everything works great with client side validation, the problem starts
when I attempt to process validation server side.
When my button with the click event is fired, Page.IsValid is always
true. BUT, when I move the validation control creation to the
OnItemCreated event, it all works fine.
My problem is that the validation relies on data, which OnItemDataBound
has not fired yet for that item.
Any ideas? In theory, I am thinking of creating the validation fully at
itemCreated, then disable and change validator properties at the
itemdatabound event if applicable???? I don't know if that will even
work.
- 8
- ASP.Net >> Table or DatagridHello,
Im new in asp.net especially in web base application.
I want to ask about datagrid. I had shown my table on
datagrid, and what I want to ask is how to set the column
height fixed? Because when I have a long word it
automatically set new line instead of hide it. I want it
to be hide like this 928192... with 3 dot at the end of
the word if it is to long.
Is it possible to do it?
Thanks alll
- 9
- ASP.Net >> DropDownList Selecting itemUsing Visual Studio.net 2003 to create an aspx web form I am having a
problem selecting an item from DropDownListBox with id= ListBoxStudies.
I can see the items from the bound database table but when I click on an item
the selected item stays at itemindex 0. What must I do to have the
itemindex change when I click on an item. What's missing from the following
code?
ListBoxStudies.DataSource = BICDataSet.Tables("protocols")
ListBoxStudies.DataTextField = "Study_name"
ListBoxStudies.DataValueField = "irb_number"
ListBoxStudies.DataBind()
I have tested this using a submit button and the _SelectedIndexchanged event
and I still always get selectedindex = 0.
Private Sub DropDownListStudies_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Dim study_name As String = Session("study_name")
study_name = ListboxStudies.SelectedItem.Text
End Sub
--
Derek V. Taylor
UCI Brain Imaging Center
- 10
- ASP/Active Server Pages >> ASP Connection String for Privileged AccountI don't know if this is a unique problem, or I'm going about it the
wrong way. I currently connect to one of our SQL servers via a
priviliged account (by using RUNAS). Works with no problem. I now
need the ability to connect to the same SQL server using ASP. I have
the following connect string, but I'm not sure how to specify the
domain in the string, or is there some other way?
<%
Set demoConn = Server.CreateObject("ADODB.Connection")
demoPath="DRIVER={SQL Server};" & _
"SERVER=mysqlserver;UID=myusername;" & _
"PWD=mypassword#;DATABASE=qdb"
demoConn.open demoPath
%>
Thanks!
- 11
- ASP.Net >> Website security without javascript or cookiesWhat are the pitfalls of passing a token in the url once a user is
logged on so I can remember who they are?
I can easily implement this by adding &token=abcdefghijklmnop123 to
each internal link on my web pages once the user is logged on.
I won't be passing the username or password in the url, just a token
that is created when a user logs on. When the server receives the token
it maps it back to the account id. This saves the user from logging on
all the time and also means I don't rely on javascript or cookies.
I can make the token time out after ten minutes of inactivity. I could
also encrypt the client ip address in the token for further security
and check it on the server. Is this wise? How dynamic can IP addresses
be? Can a surfer's ip address change without dialing off and back in to
the isp?
My "token in the url" proposal isn't used by Amazon and that makes me
think I'm missing some security issue. Amazonseem to use cookies for
all but the secure pages and then seem to use a token in the url over a
https link for the more secure pages, which scrambles the token.
Thanks for any insights
- 12
- 13
- Frontpage Client >> video streamingI am using windows media encoder to stream live video.
How can I add this live stream on my web page, in a player?
The stream is http://tvministry.woomc.org:1123
How would I script this in frontpage so that viewers can access the live
stream in an embedded player on my site?
- 14
- ASP.Net >> "Thread was being aborted" exception on redirect - VERY weird!!Hello,
I have a page that is supposed to do some checking, and if OK, set a
session variable before redirecting to another page. The following code
is a simplified version, I have hard-coded the basket ID and removed a
load of extra checking...
public partial class GoToCheckout : Page {
public void Page_Load(Object o, EventArgs e) {
try {
Session["basketid"] = "178";
//x.Text = "redirecting to PreCheckout.aspx";
Response.Redirect("PreCheckout.aspx");
} catch (Exception ex) {
Response.Redirect("/?msg=" + ex.Message);
//x.Text = "exception - " + ex.Message;
}
}
}
When this page is called, it throws a "Thread was being aborted"
exception when it hits the line...
Response.Redirect("PreCheckout.aspx");
The catch block picks it up and redirects to the home page, putting the
exception message in the querystring. I did this because if I comment
out the redirect in the catch and instead use the (commented out) x.Text
bit (x is a literal, put on the otherwise empty .aspx file for
debugging), then the redirect works fine!!
If I comment out the redirect in the try block and uncomment the x.Text
line there, then the page displays the message "redirecting to
PreCheckout.aspx" exactly as expected.
So, it seems there's some weird problem with the redirect, but I can't
work it out. Nor can I work out why changing the behaviour of the code
in the catch block changes whether the exception is raised or not.
This code has been working fine for a few months now. I have recently
been changing pages to use master pages and themes, which is when I
noticed the problem. However, if I now change this page back to not use
a master or theme, the problem is still there. I am totally baffled, and
would appreciate any help you can offer. TIA
--
Alan Silver
(anything added below this line is nothing to do with me)
- 15
|
|
|