|
hi,
i am using inside datalist,
thats is the problem,
not using css
thnaks
|
|
|
|
|
|
Hi All,
I am developing ecommerce site using asp.net1.1 .In this site I need to integrate Paypal controls for secure payment transactions.
I have installed paypal webcontrol's setup now paypal controls are available in my toolbox.
But I don't know how to write code for ADD TO CART or BUYNOW I can only drag and drop controls on form but i can write any code to use them.
Can anybody tell me how to use them.Should I code something or any webservice I can use directly to use this paypal controls.
I hope somebody help me.
Thanks,
Nagraj
|
|
|
|
|
Use your object browser to find the method you need on the control
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
i want to check some validation before Page is closed ( for any reason like ALT+F4 and...) how can i do it ? is there any event occur before window is closed ?
MHF
|
|
|
|
|
you can use page unload event
Nav.
|
|
|
|
|
Remember, due to environment conditions the unload event will not always occur. So dont rely on it
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hello friends
I am chaitanya
I would like to create Offline Messenger in ASP.NET
Is it Possible? If yes then plz help.
|
|
|
|
|
What's an offline messenger? E-mail?
|
|
|
|
|
Hi everyone,
Each row in gridview binds to datasource row. Is it possible to create rowspan for multiple rows?
For example; This query produces 5 records. It record has 3 columns, "projectname" "projecttype" "owner"
[projectname] [projecttype] [ownerid ]
FlightPlan Aero 1
FlightPlan Aero 2
FlightPlan Aero 3
FlightPlan Aero 4
FlightPlan Aero 5
Can gridview layout show this type of rowspan
_______________________________________
Projectname projecttype ownerid
_______________________________________
| | 1
| | 2
FlightPlan | Aero | 3
| | 4
| | 5
________________________________________
Thanks
silverfox_1188
|
|
|
|
|
Sorry, here is a better view. * are imaginary white spaces...
_______________________________________
Projectname***Projecttype***ownerid
_______________________________________
***********|**************|*****1
***********|**************|*****2
FlightPlan |***Aero*******|*****3
***********|**************|*****4
***********|**************|*****5
________________________________________
Thanks
silverfox_1188
|
|
|
|
|
Does someone have any insights??
silverfox_1188
|
|
|
|
|
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
|
|
|
|