|
Friends,
In my application, I am using i am displaying list of directories in specific folder. When click any one among the list it displays the contents of that directory. But when Click some directories it gives error as Directory Not Found Exception. Especially this happends only when Name of the Directory is more then one word and any special characters occurs. Eg. MNA_International is directory name. But when we click this that passes the Value to Request.Params as (root Name)\MNA only. Please tell me how to solve this problem. Please Its Urgent.
Thanks & Regards,
Prya
|
|
|
|
|
you need to use relative names and it has to be acessible by an url
I had this problem once
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi
I have 2 aspx pages chatting.aspx and userlist.aspx
In chatting.aspx I have a textbox and an iframe whose src is userlist.aspx
userlist.aspx contains a label.
Now using javascript I want to assign the selected value in the listbox to textbox in chatitng.aspx.
How to go abt this.
Regards,
Uma
|
|
|
|
|
mytextbox.value = mylistbox.text;
you should use msdn to see what the exact property name would be for the listbox. ( for example a listbox is rendered as a SELECT element in HTML
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
I have created asp page for submit user details to sql database,so i have create d the stored procedure for that one,when i run the programme it display error in below.Pls can anyone help to solve this problem
Server Error in '/ComplaintRegister/Homepage' Application.
An SqlParameter with ParameterName '@iniplace' is not contained by this SqlParameterCollection.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: An SqlParameter with ParameterName '@iniplace' is not contained by this SqlParameterCollection.
Source Error:
Line 125: insert.Parameters["@fbdept"].Value=txtfbdept.Text.ToString();
Line 126: insert.Parameters["@inidate"].Value=txtinidate.Text.ToString();
Line 127: insert.Parameters["@iniplace"].Value=txtiniplace.Text.ToString();
Line 128: insert.Parameters["@bdstop"].Value=txtbdstop.Text.ToString();
Line 129: insert.Parameters["@fbdesc"].Value=txtfbdesc.Text.ToString();
Source File: c:\inetpub\wwwroot\complaintregister\homepage\complaintregister.aspx.cs Line: 127
Stack Trace:
[IndexOutOfRangeException: An SqlParameter with ParameterName '@iniplace' is not contained by this SqlParameterCollection.]
System.Data.SqlClient.SqlParameterCollection.RangeCheck(String parameterName)
System.Data.SqlClient.SqlParameterCollection.get_Item(String parameterName)
Homepage.Complaintdetails.btnok_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\complaintregister\homepage\complaintregister.aspx.cs:127
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
|
|
|
|
|
First, do NOT use the ExecuteReader for an Update query... use the ExecuteNonQuery method.
You should OpenConnection
ExecuteNonQuery
CloseConnection....
|
|
|
|
|
I would double check the @iniplace parameter.
|
|
|
|
|
Try using the following also:
insert.Parameters.Add("@iniplace", SqlDbType.VarChar);
insert.Parameters("@iniplace").Value = txtiniplace.Text.ToString();
|
|
|
|
|
yes, it is obvious that your collection insert.Parameters does not contain '@iniplace' parameter.
Check place in your code where you create this collection and check if you create '@iniplace' parameter with right name and you don't have a typo in there (or maybe you miss it at all).
Pilo
|
|
|
|
|
But i have checked in my stored procedure even,nothing wronge there,in the asp page also i have insert command same as the others.
|
|
|
|
|
Problem is not in sql query (or stored procedure), problem is probably in SqlParameterCollection insert.Parameters, which you pass to your insert command.
Exception is raised when you try to assign a value to a insert.Parameters["@iniplace"].Value property.
Exception says that there is no "@iniplace" parameter.
You should check a place in your code, where you create insert.Parameters collection and check if you create parameter "@iniplace" correctly.
If you can paste a code, which creates this collection, maybe I can tell you what is wrong.
Pilo
|
|
|
|
|
i have used following code to set timer interval
timer = new Timer();
timer.AutoReset = true;
timer.Interval =
60000 * Convert.ToDouble(ConfigurationSettings.AppSettings"IntervalMinutes"]);
timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
but i want to change timer interval per day , per month
how to do it
please suggest
awaiting for answer
Mahendra
|
|
|
|
|
well first of all a timer can only be as big as an intmillioseconds
So have it set to 30000 or 60000 which is 30 secnds or 60 seconds respectively
and then check your days
Nick
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
like I said have a short interval then test the current time by that. If its 15 days then record the date somewhere then do a compare at each short interval
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
an int cannot go that high.
you must set it to one minute and then do a date compare. Theres no way around it
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Is possible use these controls as "stand-alone", without none membership providers???
Regards
Jesus is Love! Tell to someone!
|
|
|
|
|
Yes, it is. You can use the event of the control that occurs before the membership provider is called, for example the LoggingIn event of the Login control, the ChangingPassword of the ChangePassword control. In the handler, you can provide your custom logic, and remember to cancel the event to avoid calling the provider. In addition, the control may provide a custom event to allow to use your logic such as the Login control with the Authenticate event. Also, if you don't use the provider, you may also consider using your own control.
|
|
|
|
|
Recently we have had some productional issues regarding this command line utility. We ran it and deployed new code which should not have deleted the directory that houses this script and then had to re-run this because we were getting the dreaded "White Screen".
I looked on Google a bit and didnt find anything that answered the question why the directoy might just disappear.
Any ideas?
Thanks,
Cleako
|
|
|
|
|
Anyone have an example of using javascript to select a row in a datagrid from a different form. I want the javascript to trigger the selection that then post backs to the server to retrieve the desired result.....
Two Forms:
FormA.aspx - Contains Datagrid, with editable image button, onclick image button renders information on the same form.
FormB.aspx - users open this form from a link within FormA.aspx, once work has been completed and submit button clicked, form is closed which would then trigger the post back method of the image button row click event on FormA.aspx
Any ideas
My eyes hurt!
|
|
|
|
|
well actually you can talk to 2 different browser windows.
You could however talk betweeen frames on the same page with the javscript DOM
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi all
I create .aspx page
It is working in local machine
but when i uplod to server it is giving this error
<configuration>
<system.web>
<customerrors mode="Off">
But i create only 1 page i.e page1.apsx
Can any one tell me what is the error
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
That's not much of an error message... Use the "Ignore HTML tags" option when you post HTML or XML.
---
b { font-weight: normal; }
|
|
|
|
|
Sorry
It is asking for
configuration
system.web
customErrors mode="Off"
system.web
configuration
But i have only 1 file i.e page1.aspx (single page)
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Do as the information page says, and you will be able to see the real error message.
---
b { font-weight: normal; }
|
|
|
|
|
this server error comes for so many reasons..check ur web.config file.may be there is something wrong in it.if it is not then let me know
|
|
|
|