Hi , Is there any way to export the .aspx file as XML file or vice varsa?
Ashraj1982
Posts
-
Exporting to XML -
Need help in File handling with directoryHi All, Can any one give me the suitable functions for the following in c# : 1. To find first instance of a file name that matches the file specification like *.jpg? like _tfindfirst( ) function in vc++ 2.To find the next name, if any, that matches the file specification? like _tfindfirst( ) function in VC++ 3. To find the Sub Directory? like _A_SUBDIR( ) function in vc++ 4. To ignore directory with . and .. ? Thanks
-
need help in using Reference type for pointersHi, I'm using reference types in c# instead of pointers...so in below code i'm sending the ptr which is a pointer but using ref key word now can any one tell me how to increament the pointer *(ptr+i) in c#? int Largest(ref int ptr,int Icount) { int largest =0; largest = *(ptr+0); for(int i=0; i < Icount; i++) { if( *(ptr+i) >= largest) { largest = *(ptr + i); } } return largest; }
-
Help needed in Reference ParametersHi, Can any one tell me how to convert the below code to c# Int *ptr; ptr=&array[0]; sum = avg(ptr,index) I know that we can use ref key word but how do i assign the address to ptr?
-
Problem in Data baseHi Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?
-
Adding new Rows to the Data base tableHi Can any one please tell me how to add the new rows to the existing table with the values using SqlAdapter and Data Row with out using insert statement. DataSet dset = new DataSet("DBTable"); DataTable dbtable = new DataTable("DBTable"); dset.Tables.Add(dbtable); SqlCommand dbcommand = new SqlCommand(); dbcommand.CommandText ="select * from DBTable"; dbcommand.Connection = myConnection; SqlDataAdapter dbDA = new SqlDataAdapter(dbcommand); dbDA.TableMappings.Add("Table", "DBTable"); dbDA.Fill(dset, "DBTable"); DataRow row; row = dbtable.NewRow(); row["FileName"] = DBfile; row["Meters"] = IMeter; dbtable.Rows.Add(row); dbDA.Update(dset); This above code throws exception called "Update requires a valid InsertCommand when passed DataRow collection with new rows." any Idea?
-
Data Base problemsorry !! Plz can you tell me in the code where and what i have to change? The problem is i'm new to c# .
-
Data Base problemHi, I'm trying to create a new row and add values to the column in the below code. But it throws exception called "Update unable to find data table 'Table' or Tablemapping 'table' ". DataSet dset = new DataSet(); SqlCommand dbcommand = new SqlCommand(); dbcommand.CommandText ="select * from DBTable"; dbcommand.Connection = myConnection; SqlDataAdapter dbDA = new SqlDataAdapter(dbcommand); dbDA.Fill(dset, "DBTable"); DataTable dbtable = dset.Tables[0]; // dset.Tables.Add(dbtable); DataRow row; row = dbtable.NewRow(); row["Name"] = DBfile; row["Meters"] = IMeter; dbtable.Rows.Add(row); dbDA.Update(dset); any solution? or let me know how to create a new row and assign values to the columns.
-
Need help in type castingHi, I'm converting char[] to double using Dlength = System.Convert.ToDouble(strdata); But its throwing exception called "Unable to cast object of type 'System.char[]' to type 'System.IConvertible'. Any idea?
-
Need help in parameter passing by ReferenceThanks Rahul... But i'm getting error "Identifier Expected" so any idea....
-
Need help in parameter passing by ReferenceHi, Can i know how to pass the address of the variable in c#? Following is the code in c which has to be converted into c#.. public int Largest(int *ptr,int Icount) { int largest =0; largest = *(ptr+0); for(int i=0; i < Icount; i++) { if( *(ptr+i) >= largest) { largest = *(ptr + i); } } return largest; } plz let me know how to sent the reference and increament the pointer.
-
Need help in explicit convertion of char[] to stringThanks.... But i dot want to concatenate bcoz the string has to be over written for every line read from the file.
-
Need help in explicit convertion of char[] to stringHi, Can any one tell me explicit convertion of char array to string? i have string str and char strdata[25]; now i want to assign strdata value to the string called str. I'm getting error " cannot implicitly convert type 'char[]' to 'string' " Any idea?
-
Need help in file hanlingHi, Can any one plz tell me how to check for end of file and reading each line to buffer. while(!feof(fp)) { string = fgets(buffer,85,fp); // Read each line from the file } The above code in c#.
-
Help need in OpenFileDialogThere is no method called getfilename !! see I have this below OpenFileDialog select_file = new OpenFileDialog(); select_file.Title = "selected file"; select_file.Filter = "(*.txt) | *.txt"; if (select_file.ShowDialog() != DialogResult.Cancel) { file = select_file.FileName; // stores whole path with file name } but i want only selected file name in file not the path .
-
Help need in OpenFileDialogHi, using openfiledialog to select a particular file and store the selected file name in a string it sores the filename with path so is there any way to store only the file name not the whole path? Thanks
-
VC++ Faq'sHi, Can any one give me the link for VC++ questions and answers that are import for the interview. Cheers Archana
-
Integrating vc++ and c#Hi , Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead. Thanks
-
Integrating vc++ code with c#Hi , Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead. Thanks
-
Integrating c# code in vc++.netThanks Milton :) Mine was a .EXE and i could get that application in .net by creating the process using System.Diagnostic.Process. can you tell me the way to creat a DLL for the existing vc++ application? Thanks and regards