|
I'd answer you if your question made sense. What sort of filter do you mean ? A CSS is a set of rules, it has no room for any sort of programatic action.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Member 4322477 wrote: How to use filters in CSS
You use it just like any other attribute.
What specifically is it that you have problems with?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi ,
PLz suggest me how to pass value using post method.
Thanks in Advance.
|
|
|
|
|
By default, web forms uses POST.
|
|
|
|
|
My requirment is when ever i am passing any value to another another application it should not be visible in url.
SO plz suggest me how can i.
|
|
|
|
|
hi subrat,
if you want to submit post data you can create a weburi using webrequest object
and set the parameters like
WebRequest req = WebRequest.Create("URL to be accessed");
req.Method = "POST";
req.ContentType = "text/xml";
string str = "POST DATA";
StreamWriter sw = new StreamWriter(req.GetRequestStream());
sw.WriteLine(str);
sw.Close();
WebResponse res = req.GetResponse();
and res will contain response from the accessed URL.
you can read response using stream readers.
Regards
surender
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
How to acess tht value in next page.
I tried ur code not workd out............
|
|
|
|
|
subrat4all wrote: How to acess tht value in next page
Using the Request.Form collection.
As you are talking about the "next page", it seems that you would want to post a form in the browser, not make a request from the server. Is that correct?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Is there any DE version of .Net Framework. which can be installed on a English OS Machine?
Thanks & Regards
Pete
|
|
|
|
|
What does this have to do with globalisation ( or indeed, with ASP.NET ) ???
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi, i have done one application which tooks input as excel file which contains 2 columns. i took whole excel data to datatable and add two more columsn to datatable and export this data table to csv file by creating file programatically . The application is running sucessfully in my local machine. So i deployed in server. it working fine, when i logged into that server and run from there.
If i run the deployed application from my local machine using
http://192.168.1.110/Myapp/uploadfile.aspx. I am getting the following error.
"The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data" (IF i took .xlsx file)
"The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another user, or you need permission to view its data."(IF i took .xls file)
can any one say, why this error is occuring?
I have given all permissons to the folder in server, where i creating the csv file.
G. Satish
|
|
|
|
|
check object which is doing operation on file has disposed before using it next time
|
|
|
|
|
ya, i have closed all the objects and connections related to this.
G. Satish
|
|
|
|
|
I think you have the file open and are trying to use that.
Close the file and retry.
Regards
Vijay V.
Yash Softech
|
|
|
|
|
My code is as follows. I am Getting error here... as
"Excel Excep:The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data."
public DataTable ReadingDatafromExcel()
{
DataTable dt = new DataTable();
try
{
string FilePath = System.AppDomain.CurrentDomain.BaseDirectory.ToString();
string _filename = Path.GetFileName(FileUpload1.PostedFile.FileName);
string _attachpath = FileUpload1.PostedFile.FileName;
string _fileexten = Path.GetExtension(FileUpload1.PostedFile.FileName);
string strConn = "";
if (_fileexten == ".xls")
{
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=" + _attachpath + ";" +
"Extended Properties=Excel 8.0;";
}
else if (_fileexten == ".xlsx")
{
strConn = "Provider=Microsoft.ACE.OLEDB.12.0;" +
"Data Source=" + _attachpath + ";" +
"Extended Properties=Excel 12.0;";
}
OleDbConnection oledbconn = new OleDbConnection(strConn);
oledbconn.Close();
oledbconn.Open();
OleDbDataAdapter myCommand = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", oledbconn);
DataSet myDataSet = new DataSet();
myCommand.Fill(myDataSet, "ExcelInfo");
dt = myDataSet.Tables[0];
oledbconn.Close();
myCommand.Dispose();
DataColumn dcGender = new DataColumn("Gender", System.Type.GetType("System.String"));
dt.Columns.Add(dcGender);
DataColumn dcCulture = new DataColumn("Culture", System.Type.GetType("System.String"));
dt.Columns.Add(dcCulture);
}
catch (Exception dataex)
{
Response.Write("Excel Excep:" + dataex.Message.ToString());
}
return dt;
}
G. Satish
|
|
|
|
|
I have placed the following code on a web page. It works fine on the development machine. But when I publish the web site to the production server, this object is never rendered. An Internet Explorer error is displayed: Object doesn't support this property or method. I get this same error on the local machine if I change the url to an incorrect url. This is a TXTextControl project. I am at a total loss as to why this will not function on the production server. Any help would be appreciated.
<object classid="http:BrowserBin/BKDocuments.dll#BKDocuments.DocBrowserAppControl"
id="DocBrowserApp" name="DocBrowserApp" width="800" height="500">
</object>
|
|
|
|
|
For this to work, the control needs to be registered on the machine that views your site. There are bound to be other security issues also. Best approach is don't do it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I get
$exception {"Index (zero based) must be greater than or equal to zero and less than the size of the argument list."} System.Exception {System.FormatException}
when trying to testing this code
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace FileWatchingDemo
{
class Program
{
static void Main(string[] args)
{
FileSystemWatcher watcher = new FileSystemWatcher(Environment.SystemDirectory);
watcher.Filter = "*.ini";
watcher.IncludeSubdirectories = true;
watcher.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.Size;
watcher.Changed += new FileSystemEventHandler(watcher_Changed);
watcher.EnableRaisingEvents = true;
Console.Read();
}
static void watcher_Changed(object sender, FileSystemEventArgs e)
{
Console.WriteLine("Changed: {1}", e.FullPath);
}
}
}
It seems this line
Console.WriteLine("Changed: {1}", e.FullPath);
has problem but I just don't know how to solve it.
I am new to ASP.NET and please help!!
|
|
|
|
|
Yifei Jia wrote: Console.WriteLine("Changed: {1}", e.FullPath);
Are you doing it in ASP.NET ?
|
|
|
|
|
Arrays in programming are 0 indexed. You specify {1}, which means the second argument, but you only provide one. Replace the 1 with a 0.
And as someone else said, this doesn't look remotely like ASP.NET code. In fact, it isn't.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
admin page has a detailsview
hikingpage has a gridview
problem is when i enter the second image instead of a new row the image replace's the first image and the rest of the row appears farther down the gridview
here is the codebihind that i used
Imports System.Data
Partial Class Admin
Inherits System.Web.UI.Page
Protected Sub DetailsView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertedEventArgs) Handles DetailsView1.ItemInserted
'If the record was successfully inserted,save the picture
If e.AffectedRows > 0 Then
Dim results As DataView = CType(SqlDataSource1.Select(DataSourceSelectArguments.Empty), DataView)
Dim PictureIDJustAdded As Integer = CType(results(0)(0), Integer)
'Reference the FileUpload control
Dim imageUpload As FileUpload = CType(DetailsView1.FindControl("imageUpload"), FileUpload)
If imageUpload.HasFile Then
Dim basedirectory As String = Server.MapPath("~/UploadedImages/")
imageUpload.SaveAs(basedirectory & PictureIDJustAdded & ".jpg")
End If
End If
End Sub
End Class
this is the codebehind on the admin page
can anyone help me out here
|
|
|
|
|
If the files are just stored in the file system, how do they stay associated with the rows of your grid as you add them ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I'm working on my first ASP.NET application ever, so this might be an easy problem to solve for you.
I'm collection data from different xml files and want to store them in an DataSet.
The data will be shown with an repeater.
The page will show something like this: (Short version, will be lots of more information)
Miami Engineering
1. General
Doc one
Doc two
2. Feasibilty calculations
Doc three
Doc four
Doc five
When I try to add the data to my DataSet the way I was thinking, I get the error "A DataTable named 'Document' already belongs to this DataSet."
This is when I try to make a DataSet with this structure:
<projects>
<project>
<projectname> Miame Engineering <projectname>
<project>
<part>
<partname> 1. General </partname>
</part>
<document>
<documentname> Doc one </documentname>
</document>
<document>
<documentname> Doc two </documentname>
</document>
<part>
<partname> 2. Feasibilty calculations </partname>
</part>
<document>
<documentname> Doc three </documentname>
</document>
<document>
<documentname> Doc four </documentname>
</document>
<document>
<documentname> Doc five </documentname>
</document>
</projects>
How will I build my DataSet so I can get the output that I want?
modified on Monday, November 17, 2008 5:03 PM
|
|
|
|
|
I am not sure why you're using a dataset, but it doesn't look to me like the data you're using is compatible, unless you specify a maximum number of doctors.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I'm using a DataSet because I want to be able to add, delete and change data in it.
What do you mean with specifying maximum number of documents?
Haven't seen that option, so how do I do that?
|
|
|
|