|
Sounds like your application is running in a folder below another
application. You need to create it as an application in IIS (so it
looks like a virtual directory) - otherwise you can't change certain
settings such as the authentication mode.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
karthidheena wrote: i uploaded my Asp.net project in server www Root
Remote server or an Intranet server ? Windows authentication works only with intranet applications
|
|
|
|
|
hi
IS there any other way to Pass parameter from on Page to another page ..without using session or request.querystring
Jintal Patel
|
|
|
|
|
In ASP.NET 2.0, one page can be posted to other by specifying PostBackURL value for the control.
|
|
|
|
|
hi
i can't understand what u have explain ..please explain in detail
Jintal Patel
|
|
|
|
|
In ASP.NET 2.0, controls like Button having a new property called PostBackURL . Set this to the other page where values has to be passed. When Button is clicked ASP.NET will send all values in current page to specified page.
|
|
|
|
|
Jintal Patel wrote: i can't understand what u have explain ..please explain in detail
Below is the link to get more info regarding Cross page posting(postbackurl)
Cross page posting(postbackurl)[^]
Regards,
Sandeep Kumar.V
|
|
|
|
|
u also pass parameter through query string
Piyush Vardhan Singh
|
|
|
|
|
Hi,
I am parsing a CSV file and storing it in database. All the table fields are varchar. The CSV file has a column called Date which is in the format 11/11/2007 where i checked the Format Cells it displays date. The problem is when i save this field in the database it automatically saves as 11/11/2007 12:00:00 AM. I need not want to the time to get saved. Can any one please help me out.
|
|
|
|
|
You might be using a DateTime /Smalldatetime data type. It always append time with it. Try using varchar instead.
|
|
|
|
|
No i am using varchar datatype only.
|
|
|
|
|
Instead of storing in the database, i displayed in the grid it shows the same with Time.
|
|
|
|
|
Are you reading this columns value through a datetime variable in page ?
|
|
|
|
|
This is what i do
string ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=\"Text;HDR=No;FMT=Delimited\\\"";
System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(ConStr);
System.Data.OleDb.OleDbDataAdapter da = new System.Data.OleDb.OleDbDataAdapter("Select * from " + file, conn);
da.Fill(ds, "TextFile");
DGCsv.DataSource = ds.Tables[0].DefaultView;
|
|
|
|
|
A DataTime value always has a date and a time component. If you don't specify the time component, it becomes zero (or 12:00 AM).
You should change the data type of the database field into datetime, if you store the date as text you can't work with the value. WHen you display the value, you just format it the way that you want it.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I have Varchar as my datatype, I checked CSV File in that Date column i found in the Format cells that the column is defined as Date. I think that may the problem , this is the code i use
string ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=\"Text;HDR=No;FMT=Delimited\\\"";
System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(ConStr);
System.Data.OleDb.OleDbDataAdapter da = new System.Data.OleDb.OleDbDataAdapter("Select * from " + file, conn);
da.Fill(ds, "TextFile");
DGCsv.DataSource = ds.Tables[0].DefaultView;
|
|
|
|
|
Hi,
I have a Treeview control in my page which has 5 root nodes with checkbox in all the five nodes. Now i want to make only the last root node and its child node to have radio buttons and not checkbox.
How can i do it??
Please help me out.
Thanks,
Srikanth
|
|
|
|
|
I created a web and I used iframe control to call any web via src property.
this web show up. how can I get id's control to use for my purpose? (example: I will get control's name (of embed web) to assign to my control (of main web certain embed web).
Thanks.
-- modified at 0:44 Thursday 18th October, 2007
|
|
|
|
|
minhthong1981 wrote: I created a web
What is WEB ?
minhthong1981 wrote: how can I get id's control to use for my purpose?
Controls in the page which is in IFRAME ? Where you are going to use these id's ? In the parent page which contains IFRAME ?
|
|
|
|
|
How to give a javascript in source code that means in a button click event iin asp.net
|
|
|
|
|
SreejithAchutan wrote: button click event iin asp.net
Button1.Attributes.Add("OnClik","YourJSFunction();");
|
|
|
|
|
mareers wrote: u can't call a java script in a asp button click event
WHY ? You can call a JS function on any button click. See my previous post
|
|
|
|
|
Hi All
I am getting a excpetion when i run my code, it was taken from the below url
http://www.sitepoint.com/article/net-shopping-cart-datatables[^]
I have run the code when there is no code behind page as per the authors page and it runs fine but when i try and recreate the code with a code behind I run into the obj.reference exception can someone please tell me how to correct this error. Code Below
Thanks
<br />
Protected Sub AddToCart(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click<br />
<br />
Dim objDT As System.Data.DataTable<br />
Dim objDR As System.Data.DataRow<br />
<br />
objDT = Session("Cart")<br />
Dim Product = ddlProducts.SelectedItem.Text<br />
Dim blnMatch As Boolean = False<br />
<br />
For Each objDR In objDT.Rows <big><-------this is were the exception occurs!!!!!!</big><br />
If objDR("Product") = Product Then<br />
objDR("Quantity") += txtQuantity.Text<br />
blnMatch = True<br />
Exit For<br />
End If<br />
Next<br />
<br />
If Not blnMatch Then<br />
objDR = objDT.NewRow<br />
objDR("Quantity") = txtQuantity.Text<br />
objDR("Product") = ddlProducts.SelectedItem.Text<br />
objDR("Cost") = Decimal.Parse(ddlProducts.SelectedItem.Value)<br />
objDT.Rows.Add(objDR)<br />
End If<br />
Session("Cart") = objDT<br />
<br />
dg.DataSource = objDT<br />
dg.DataBind()<br />
<br />
lblTotal.Text = "$" & GetItemTotal()<br />
End Sub<br />
|
|
|
|
|
thedom2 wrote: objDT = Session("Cart")
You should check the session is null before assigning to an object. Session will be null, so object won't get reference and throws the specified exception.
|
|
|
|
|
why did it work when there was no code behind form ?
|
|
|
|