Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
P

Pravin H

@Pravin H
About
Posts
22
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • help needed in slideshow
    P Pravin H

    let me first thank you for you help. I am sure I can do the slide show with your kind help. But I have one more question connected to it. I am using the codes below to get an save the path as well as the file name in asp.net code For Each s in directory.GetFiles(textbox.text.trim, "*.jpeg") How can i make the same type of array for the path and file in java. Thanks alot again.

    ASP.NET help csharp java javascript asp-net

  • help needed in slideshow
    P Pravin H

    Hello, I have made a small project in asp 1.1 which selects the file from a directory and shows all images with the help of array and datalist. I was also able to make previous next button. Now My problem is I want to make a auto slideshow, I don't have ajax. I don't have any idea of java too. Can any one kindly let me know how can i make it from an array of asp.net to javascript so that the slide show works. I preassume that can be done only in java. Or is there any way I can do it in asp.net codes. Can I also put a browse Button so that user can choose the directory he/she wants, as I am using a textbox to put the path from where it will pickup. Sorry for my ignorance I am learing now, kindly help. Thanks in advance

    ASP.NET help csharp java javascript asp-net

  • photo album prob (array to datalist , repeater)in image
    P Pravin H

    Hello, I am making a photoalbum in asp.net (vbcode). All the pictures should be pickedup from particular directory. I have added a datalist with image and also a repeater control also with image and an array. The codes are as follows. sub getphoto Dim photo As String() = System.IO.Directory.GetFiles("C:\pravin\b\shkecellphone", "*.jpg") Dim dir As System.IO.DirectoryInfo = New System.IO.DirectoryInfo("C:\b") Dim i As Integer = System.IO.Directory.GetParent("C:\b").FullName.Length Dim ix As Integer = 0 'Image2.ImageUrl = "C:\pravin\b\shkecellphone\p.jpg" Dim p As New ArrayList Dim obd As New PagedDataSource Do While ix > photo.Length photo(ix) = photo(ix).Substring(i + 1) ' photo(ix) = photo(ix).Replace("\\", "/") p.Add(photo(ix)) ix += 1 Loop Image2.ImageUrl = photo(2) Label1.Text = photo(ix).ToString 'DataList1.DataSource = photo.CopyTo(DataList1.Items) obd.DataSource = photo 'datalist2.datasource = photo 'even this is not working this also show then the image empty DataList2.DataSource = dir.GetFiles("*.jpg") Repeater1.DataSource = dir.GetFiles("*.jpg") Repeater1.DataBind() DataList2.DataBind() End Sub The Problem is when i am running it I am not able to see the picture, its is able to count and show the same no of image icon and also the path but its all empty. kindly let me know whats wrong in this code or what is lacking and any other way the datalist item image or repeater image show the images. Pls feel free to ask me if you want to know more about. Thanks in advance

    ASP.NET csharp asp-net data-structures help question

  • simple picture album
    P Pravin H

    Hello Everybody, I am trying to make a simple photo album, I have two directories and lots of pictures. Can you kindy give me any idea how to display these many pictures on one pages and if the user wants to change the directory. I am using vb codes to do this. Kindly give me an idea how to start atleast. I don't want to copy but want to understand and learn the concept too. Thanks in advance.

    ASP.NET tutorial

  • dataset export to excel file [modified]
    P Pravin H

    thanks alot for the help, Can you kindly give an idea how to write to xml file, and if I am writing with HTML, do I have to write the details too as I am using in one computer ms office 2000 and other computer 2003. Sorry for my ignorance I really don't have any idea about it, if you can give me an idea I can learn more about it and will just use it accordingly. Thanking you again

    Visual Basic tutorial

  • dataset export to excel file [modified]
    P Pravin H

    Hello, I am working on a small project with datagrids and datasets, I want to give the user an option of saving this datasets data to xls file (the data is very small not big data which excel can take it) . I tried using different ways still not able to do it. Kindly suggest me or any idea How to convert or export this excel format. Thanking you in advance. -- modified at 21:30 Monday 17th July, 2006

    Visual Basic tutorial

  • Copy Files
    P Pravin H

    source = “C:\VBMaterial\Examples\Files.txt” destination = “D:\MasteringVB\Files.txt” FileCopy(source, destination) hope this helps you Regards

    Visual Basic csharp database sysadmin help

  • regarding datagrid scrolling downwards
    P Pravin H

    Hello, I have made a dataentry in datagrid, I just wanted to know is there any property or way that will scroll the datagrid after 4 entries or any number of fixed entries as I am using the datagrid for dataentry I want it to scroll downward as I am entering it Thanks in advance. Regards

    Visual Basic

  • error msg while closing vb.net project
    P Pravin H

    Hello, I made a small project with datagrid and tabcontrol till yesterday everthing was fine but yesterday when i was running my project it got hanged. Now when I am debugging this project its ok but when I am closing the project it gives me this error "The Following exception has occured NUllreference Exception: Object reference not set to an instance of an object. okbutton. then it closes. Kindly help me to trace this error as on debug it doesnot show and even when i created a setup file and used it no error. This error occurs only when I close only this project in vb. I tried to check each and every codes but no errors. How can i find where is this error coming from Thanks in advance Regards

    Visual Basic debugging help csharp question

  • datagrid edit, update button UPDATION PROBLEM
    P Pravin H

    I found it, I should have not saved my database is IIS FOLDER ie. inetpub directory, rather kept my database in the other folder with a sharing permission. Thanks again Hope my mistake might help others

    ASP.NET database help csharp asp-net com

  • datagrid edit, update button UPDATION PROBLEM
    P Pravin H

    Hi, I have made a datagrid in asp.net with edit, update button, But when I press the update button after editing it say the error is the file is readonly. I am able to excess the file and also sort it but am not able to update it. I am using Visual Foxpro as my database. I have done the same in sql it runs fine. Any one who have any idea why this error please. I am using OLE DB FOR CONNECTION TO FOXPRO. Kindly go through the codes for details Thanks in advance error!!!!! Cannot update the cursor ITEMHARD, since it is read-only. =============== [OleDbException (0x80004005): Cannot update the cursor ITEMHARD, since it is read-only.] THE CODES ARE AS UNDER : ===== ============(declarations Dim constr As String = "Provider=VFPOLEDB.1; Data Source=c:\Inetpub\wwwroot\lastproject" Thanks for your time -- modified at 11:11 Monday 20th March, 2006

    ASP.NET database help csharp asp-net com

  • dataset in datagrid to xls file
    P Pravin H

    I have a dataset populated in a datagrid, it is my report form. I am trying to convert it to xls file so that user can write some comments on it and print. Is there anyway or hints how can I convert this dataset data into xls file. Pls Help. Thanks In advance Regards

    Visual Basic help question

  • datagrid header text
    P Pravin H

    I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance

    Visual Basic help

  • resizing the width of columns in datagrid with datatable
    P Pravin H

    So that if anyone has the same problem he can get an idea to how to do it !!! Just a helping hand like you which you always do.:cool: Thanks

    Visual Basic help question

  • resizing the width of columns in datagrid with datatable
    P Pravin H

    Finally I was able to resize it, Thanks for your Help and Support The codes are as Under for reference Dim mytable As DataTable mytable = New DataTable("MAIN") mytable.Columns.Add(New DataColumn("ContactPerson",GetType(String))) mytable.Columns.Add(New DataColumn("DESIGNATION",GetType(String))) mytable.Columns.Add(New DataColumn("PHONENO",GetType(String))) DataGrid1.DataSource = mytable Dim TS As New DataGridTableStyle TS.MappingName = "MAIN" DataGrid1.TableStyles.Add(TS) TS.GridColumnStyles.Item(1).Width = 100 TS.GridColumnStyles.Item(0).Width = 100 Thanks Again for your time :-D

    Visual Basic help question

  • resizing the width of columns in datagrid with datatable
    P Pravin H

    Sorry but it still has erros I tried you codes but still I have one more error sending you my declarations DECLARATION Dim mytable As New DataTable Dim ds As New DataSet ON FORM LOAD mytable.Columns.Add(New DataColumn("ContactPerson", GetType(String))) mytable.Columns.Add(New DataColumn("DESIGNATION", GetType(String))) mytable.Columns.Add(New DataColumn("PHONENO", GetType(String))) mytable.Columns.Add(New DataColumn("EXTN", GetType(String))) mytable.Columns.Add(New DataColumn("CELLNO", GetType(String))) mytable.Columns.Add(New DataColumn("SALESMAN", GetType(String))) mytable.Columns.Add(New DataColumn("REMARKS", GetType(String))) Me.DataGrid1.DataSource = ds.Tables("mytable") Dim ts As New DataGridTableStyle ts.MappingName = "mytable" DataGrid1.TableStyles.Add(ts) Me.DataGrid1.DataSource = mytable ts.GridColumnStyles(0).Width = 100 ERROS IS HERE (index is out of range: MUST BE NEGATIVE AND LESS THAN THE SIZE OF THE COLLECTIONS) Thanks again for you help and you Suggestionss Thanks again Regards :(

    Visual Basic help question

  • resizing the width of columns in datagrid with datatable
    P Pravin H

    I tried the one you suggested Dim ts as datagridtablestyle = datagrid1.tablestyles(“REMARKS”) Ts.preferredcoloumns = 100 I HAD THIS ERRORS “Object reference not set to an instance of an object” Kindly check pls. Thanks alot for your time.

    Visual Basic help question

  • resizing the width of columns in datagrid with datatable
    P Pravin H

    Hello I want to set the width of each columns in datagrid separately but not able to do that. I am using datagrid and datatable in my project the codes are as follows. Dim Mytable as new datatable Mytable.columns.add(“srno”, gettype, string)) Mytable.columns.add(“name”, gettype,( string)) Mytable.columns.add(“designation”, gettype,( string)) Mytable.columns.add(“remarks”, gettype,( string)) Datagrid1.datasourse = mytable datagrid1.preferredcoloumswidth = 74 Now my problem is all the coloumns are OF the same width, as I wanted different width of different column. As of now all the columns have the same width whereas I don’t need so much width for the SRNO and need more wider colums in REMARKS. Please suggest how can I solve this problem. Thanks alot

    Visual Basic help question

  • print dialog no of pages selection
    P Pravin H

    thanks for that suggestion, it helped to know more about printing. But it doesnot say anything about how to use no of pages selection (ie. FROM PAGE, TO PAGE) . I have enabled the print dialog and also the selection but was not able to print the specified pages even if i told to print (EXAMPLE FROM PAGE 1 : TO 2 PAGE), instead its prints all. Thanks again

    Visual Basic

  • print dialog no of pages selection
    P Pravin H

    I am using print dialog in my project, I want to use "the select pages FROM PAGE TO PAGE properties. printdialog1.allowssomepages = true ' i have activated but I am not able to print only the no of pages instead its printing all pages. thanks in advance

    Visual Basic
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups