|
|
all dears,
iam developer vb.net2005 and i want to learn asp.net2005?
if you have any media or books not deep but beter for learning send to me
sadagc2002@yahoo.com
thanks for all
saad badr
|
|
|
|
|
|
hi,
I am trying to use AJAX for my two dropdown lists for my project using ASP.NET. On selecting an item in one dropdown(say dropdown1), the items for other dropdown(say dropdown2) should populate. Dropdown1 items are retrived from database using C#. My question is I need the selected item value of dropdown1. If I use dropdown1.SelectedItem.Value in C# side means error occurs. I need the selected item value.How can I get it using either javascript or C#.
Just now I am populating all the items in dropdown2. But I need the selected item value of dropdown1, so that I can able to filter and populate items in dropdown2 corresponding to dropdown1 item.
Can anyone help me. Please..........
nask
|
|
|
|
|
This should work just fine. Are you using AJAX, or the ASP.NET AJAX library ? The book AJAX in Action has a good article on how to do what you're trying to do. Or, post some code so we can see where the error is.
Arun Senthil Kumar wrote: If I use dropdown1.SelectedItem.Value in C# side means error occurs.
What error ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If you are using Microsoft Ajax Framework you may use the CascadingDropDown[^] extender which does exactly what you are trying to achieve. Maybe it will be easier?
|
|
|
|
|
Guys,
We have a major problem here at work.
We installed a new product on our servers (Win 2000 server, 2Gb memory) last week, with an increase of users. (read, a couple of hundreds, not thousands)
At first sight it seems to work fine, but occasionally it crashes. other services stop as well.
My boss thinks that our code does not dispose of the connections we create, but I'm certain it does.
Also the cpu seems to be fine (so not constantly @ 100%) and memory does seem to saturate, but applications crash before that time.
My two cents go out to one of these two:
1 -> Network traffic problems
2 -> # of Oracle connections exceeded
Any tips and/or tricks or ideas somebody can give us would be great. We're kinda stuck.
I went over some possibilities already, but I always come down to the two mentioned above.
many thanks !!
|
|
|
|
|
Troubleshooting a production webserver is an involved process. You may need to go through a very systematic procedure like:
1) Analyzing the file system logs
2) System Eventlogs
3) Database Performance
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hey thanks for the reply.
Stupid question maybe, but what's the difference between 1 and 2?
We did 2 already and it only gave some "unhandled Http request" error. nothing really specific.
thanks.
|
|
|
|
|
V. wrote: Stupid question maybe
No. Not at all. The line of demarcation between your application logging events and System EventLogs may at times be very thin. Your application would log events strictly pertaining to any issues only related to it.
If there is a generic I/O problem or load with the system, that would be caught by IIS or OS Subsystem and placed in the eventlog.
V. wrote: unhandled Http request
Didn't you find any equivalent unhandled exceptions in your application log?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
mmm, I didn't notice anything 'out of the ordinary' going on. The application seems to work fine, most of the time. We didn't see any significant errors in the application's log.
I'm trying hard to get some feedback from the users
|
|
|
|
|
Can you post the error you find in your logs?
|
|
|
|
|
Sure, here it is (warning)... I'm not sure it's very helpful though.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/5/2007 7:51:03 PM
Event time (UTC): 12/5/2007 6:51:03 PM
Event ID: 738df2c1f6694c7ebe8d452db7caa7b2
Event sequence: 1680
Event occurrence: 13
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/NetSuppInfo-1-128412454685742817
Trust level: Full
Application Virtual Path: /NetSuppInfo
Application Path: c:\inetpub\wwwroot\NetSuppInfo\
Machine name: BXL_SRVDB2
Process information:
Process ID: 3900
Process name: aspnet_wp.exe
Account name: BXL_SRVDB2\ASPNET
Exception information:
Exception type: HttpUnhandledException
Exception message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Request information:
Request URL: Webpageurl
Request path: /NetSuppInfo/VehicSearch.aspx
User host address: 193.168.101.64
User:
Is authenticated: False
Authentication Type:
Thread account name: BXL_SRVDB2\ASPNET
Thread information:
Thread ID: 7
Thread account name: BXL_SRVDB2\ASPNET
Is impersonating: False
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.Util.AspCompatApplicationStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
this was an actual error:
The description for Event ID ( 5 ) in Source ( Active Server Pages ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Script Engine Exception. A ScriptEngine threw expection 'C0000005' in 'IActiveScript::Close()' from 'CActiveScriptEngine::FinalRelease()'..
in any case thanks for the effort !
|
|
|
|
|
How to access menu items of asp menu thru javascript.I want to do like this:
mnMenuControl.Items(0).ChildItems(1).Selected = True
but in javascript.Its urgent
modified on Wednesday, December 12, 2007 8:26:17 AM
|
|
|
|
|
Hi,
I have a textbox in which i specify the filename(ex:sample.txt) at runtime
i want to display the full path of the entered filename in other textbox in a button click.
I am using c#.net 2005
i tried using
Path.GetfullPath("filename");
but i couldnt get the correct path.IT HAS TO SEARCH OVER ALL DIRECTORIES N GIVE ME THE PATH....
how to do this?
Can ne body help me...
zari
|
|
|
|
|
Is this a file saved on the server?
|
|
|
|
|
s i am using my local machine as a server
zari
|
|
|
|
|
Hello everybody,
I am vs2003 to develop my application. I created a web application. In that in one page I inserted data to a table. In another page I have to retrieve the values based on the date values. I write the following codings for that
txtdate.Text = Calendar1.SelectedDate<br />
Dim conn As New OleDb.OleDbConnection("provider=microsoft jet 4.0 ole db provider;data source=c:\internalaudit.mdb;")<br />
Dim cmd As New OleDb.OleDbCommand<br />
<br />
Dim dates As New DateTime(Calendar1.SelectedDate.Year, Calendar1.SelectedDate.Month, Calendar1.SelectedDate.Day, 0, 0, 0)<br />
Dim adp As New OleDb.OleDbDataAdapter("select * from auditfinding where auditdate = " + dates, conn)<br />
Dim dt As New DataTable<br />
'dt.NewRow()<br />
adp.Fill(dt)<br />
adp.Dispose()<br />
lstarea.DataSource = dt<br />
lstarea.DataTextField = "processaudited"<br />
lstarea.DataValueField = "checklistid"<br />
lstarea.DataBind()<br />
Calendar1.Visible = False<br />
I didnt get any error. Also I am not get any output. Can anyone help me. Thanks in advance.
|
|
|
|
|
Dim adp As New OleDb.OleDbDataAdapter("select * from auditfinding where auditdate = " + dates, conn)
replace the above code with
Dim adp As New OleDb.OleDbDataAdapter("select * from auditfinding where auditdate = " + "'" + dates + "'", conn)
I hope this will work
|
|
|
|
|
I do have the following structure.
I have an page (SamplePage.aspx). In this page is some stuff. At the top there are some filter elements which can be used to filter the list below.
The list is build with an <asp:repeater>.
So, because there are many other elements on this side it takes a little to make a complete server roundtrip and to build up the hole page again. If the user changes the filter I want only to reload the list.
So my idea is to use a webservice call, to generate the HTML for the table again.
How can I do that. My first idea was to put the repeater into an user control and to load the user control dynamically from the web service method with
Dim oPage As New CPageBase
oUC = oPage.LoadControl("SampleUC.ascx)
But if I do so, the created object is not completely initialized. The "Application" variable of oUC and oPage is Nothing. But I can see in debugger, that the Application in my webservice method is set correctly.
Do you have any ideas how to make that working. Or do I have the wrong beginning.
Thanks
Erik
|
|
|
|
|
Have you looked at the ASP.net AJAX extensions?
|
|
|
|
|
I am using .Net 1.1 and I think the extensions are only available for .Net 2.0 and higher.
I have no change to migrate to a newer .Net version now.
Is it also possible to make this with .Net 1.1?
|
|
|
|
|
Hi Friends,
Can anyone tell me how to use javascript variable from server side.
Thanks & Regards
Senthil Kumar
|
|
|
|
|
the way to do this is to put a hidden field in your page, set it's value with javascript, then read it on the server.
Or you could redirect to the current page, but put the variable name and value on the URL
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yet another idea would be to use cookies (set from JavaScript and read in ASP.NET). I would do the hidden field, though.
|
|
|
|