|
Hello,
Dim vfpConn As OleDbConnection = New OleDbConnection("Provider=VFPOLEDB.1; Data Source='C:\Inetpub\wwwroot\Election\ps5.dbf';") ' is running fine
but,
Dim vfpConn As OleDbConnection = New OleDbConnection("Provider=VFPOLEDB.1; Data Source='http://girish/election/data1.dbc';") 'is returning error (Invalid path or file name.)
vfpConn.Open()
Dim sVfp As String = "select * from ps5"
Dim oCmd As New OleDbCommand(sVfp, vfpConn)
How can i use VFP table as datasource using http://girish/<myapplication folder="" at="" web="" server="">/tablename.dbf ?
Thanks & Regards
Girish Sharma
|
|
|
|
|
perhaps you need write access ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Thanks for your reply.
So, how do i set write access. Please guide me.
Thanks & Regards
Girish Sharma
|
|
|
|
|
Hi,
I have an aspx page that contains a web part and a fileupload control within the web part. I have also added a label that display the status of the upload. I wanted to put the lable inside an Update Panel and then display the correct string value when I click the upload button but I keep getting an "Object is not set to an instance" error. The code for mybutton event looks like this:
try
{
string fileName = fuFileUpload.PostedFile.FileName; (THIS IS WHERE IT FAILS...) string contentType = fuFileUpload.PostedFile.ContentType;
string getFileName = System.IO.Path.GetFileName(fileName);
string userName = Page.User.Identity.Name;
Stream fileStream = fuFileUpload.PostedFile.InputStream;
Byte[] fileBuffer = new byte[1024];
while (fileStream.Read(fileBuffer, 0, fileBuffer.Length) > 0)
{
fuFileUpload.PostedFile.SaveAs(Server.MapPath("UploadedFiles\\") + userName + "_" + getFileName);
}
fileStream.Close();
lblProgress.Text = UploadSuccess;
}
catch (Exception ex)
{
ex.Message.ToString();
}
When I remove the UpdatePanel everything works fine. I then proceeded to wrap the whole wep part within the Update Panel to see if this works and I get the same error.
My question is this, Can you nest a control inside a web part and the web part inside an update panel?
Illegal Operation
|
|
|
|
|
yes you can use webparts inside update panel but not file upload control
actually file upload control requires full postback to work.. i am not sure if any ajax based fileupload control is available....
Government Dyal Singh College Lahore.
|
|
|
|
|
I have an aspx page with jscript in a separate .js file. The page has an autocomplete extender, and I am trying to debug a problem by putting an alert in my EndRequestHandler function. For some reason, it's not executing either the EndRequestHandler or the InitializeRequest functions. It executes OnPageLoad without error, as well as another jscript function hooked to a button click event further south. What am I doing wrong? Thanks for any clues for the clueless.
function OnPageLoad()
{
Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(InitializeRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
return;
}
function InitializeRequest(sender, args) {
alert("You are in the InitializeRequestHandler function.");
}
function EndRequestHandler(sender, args)
{
alert("You are in the EndRequestHandler function.");
if (args.get_error() != undefined)
alert("There was an error" + args.get_error().message);
return;
}
My other signature is witty and insightful.
|
|
|
|
|
hi
i m in mca final year n i have to make a project in asp.net , so please suggest me some good project titles, or sites from where i can download the projects
|
|
|
|
|
vvikram wrote: sites from where i can download the projects
Quit school. MCA is not for you. If you can not perform simple final projects, how are you going to perform your job duties. Go find another job.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Damn - I considered at one point awarding a 'moron of the day' award, but the trouble is, just when you think people can't be stupider, they suddenly are.
I am considering collecting questions like this one, onto my own website, which I will call 'why outsourcing is for morons'
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Sounds like a fun project, just tell us when you get started, I'm sure there'll be a fair number of volunteers.
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
|
|
|
|
|
vvikram wrote: or sites from where i can download the projects
Then what is the use of doing final year project ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
I have a aspx page and a user control in it which has a grid. When i click on the edit button in this grid there is a popup opens and i can save data to data base when i hit submit and then on the popupclose i need to refresh just the grid in the user control.
Any ideas how this can be acheived....
|
|
|
|
|
You will need to write some javascript to do this and if you want to refresh just the grid, you will need AJAX. Your best bet is probably to examine the generated code from the ASP.NET AJAX library and call those methods yourself.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have an excel file and want to copy data to sql server. The excel file has a field name: device name , and a field named: model...(there are 30 more fields)
deviceName model
laptop acer 1640
laptop fujitsu
laptop sony
notebook ibm
laptop ibm.
I need to transfer these files into the sql server database. i know that i require 2 tables in sql with one table for devices and another for models and both should have a relationship of M:N. hence another table is required.
My question is that is there any easy way of doin this in sql server or do i have to program it... I have searched regarding dts and it seems that dts works well when only one table has to be transtered to one table. there is a possibility that dts does it but i don't know how to develop scripts in dts as i am an asp.net developer. Do i have to find a way out using C# or are there any tools that solve such problems
any help will highly appreciated.
thanx
haseeb
|
|
|
|
|
AS you say, this is outside your experience because you know ASP.NET. So, it's not an ASP.NET task. Why did you then ask in the ASP.NET forum ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
i said that coz i wanted to let ppl know that i am not a dba and don't know how to carry out such tasks... if anyone know how to get excel data in c# and transfer it to sql server database
haseeb
|
|
|
|
|
I know. It's just that, well, you're a moron. This is not the SQL forum. I pointed this out to you and your response to me left me wondering if you even read my reply.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
thanks , ur reply really helped...
You know there are quite a few types of morons in this world. First there are morons like me who have very less idea and experience and post a msg on a site with 6073937 members, so that someone with a bit of idea could help.
2nd type of morons are those, who don't know the answer , still they reply... C'mon, this is world wide web, and there are 6073937 members... putting it more simply, if we subtract 2 (me moron and u moron) , still there are 6073835 members... and yeah, mostly there are programmers solving such problems, only big companies keep dba's... I am not saying that u are a moron , but wanna tell u that this type also exist
Plz don't bother to reply again...
Thanx for ur help..
haseeb
|
|
|
|
|
How many times do you have to ask the same question? Stop Cross Posting NOW!
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i tried dts as was mentioned in ur link, but i was able to transform data from an excel file to only one database table,where as i want to transform it into multiple tables. Maybe dts can do it but i can't find any help on it...
anyways, thanx for ur help and yeah, are u the only guy responsible for answering queries of the whole world? why don't u leave my query and give others a chance to provide help...
anyways... thanx alot...
Please , consider not answering back if u are gonna write something like "STOP cross-posting"... coz i think i know that u are smart
bye, thanx
haseeb
|
|
|
|
|
Look, There is no obligation on our end to help you. We do it because we like helping people, but we don't do your work for you.
If you want to receive assistance, first and foremost, you need to get your act together and watch your behavior. We have seen many who went down the hill very quickly. And you will find that very quickly if you don't change your attitude.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
just stop cross posting, OK ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
<wc:RequiredFieldValidator id="rfvFirstName" runat="server" ControlToValidate="txtFirstName" ErrorMessage="First name is required." meta:resourcekey="rfvFirstNameResource1">*</wc:RequiredFieldValidator>
The asterix in the validator control should show up at page load, but shows up only when there is a postback.Reason why the asterix should show at page load is I want the user to know which fields are mandatory. Any suggestions?
|
|
|
|
|
Write some JS to validate the form on page load by calling the methods that the framework generates.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
at page load : rfvFirstName.isvalid = false
try this it may work
|
|
|
|