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
Y

yogesh_kumar_agarwal

@yogesh_kumar_agarwal
About
Posts
151
Topics
49
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • openfiledialog with filter property
    Y yogesh_kumar_agarwal

    Hi All, i Have made a web application, working fine in WINDOWS and MAC, but in my application i have a file upload option by which, user can select file and upload it on server. For this i use openfiledialog to select files and use filter to filter only allowed file types in selection. the filter is like :

    dlg1.filter=Files Allowed(*.pdf;*.doc;*.docx;*.txt;*.xls;*.xlsx;*.ppt;*.pptx;*.bmp;*.jpg;*.jpeg;*.gif;*.tif;*.tiff;*.png)|*.pdf;*.doc;*.docx;*.txt;*.xls*;*.xlsx;*.ppt;*.pptx;*.bmp;*.jpg;*.jpeg;*.gif;*.tif;*.tiff;*.png"

    Now it is working fine but in MAC i m unable to pick excel files, excel files not available in allowed types, all though .xls and .xlsx is been added into filter and working for windows. so what changes required in filter for MAC machine. Thanks Yogesh Agarwal

    ASP.NET sysadmin

  • OpenFileDialog in SilverLight
    Y yogesh_kumar_agarwal

    Dear All, In Silverlight the openfiledialog is not remembered the last working (Selected) folder. Also there is no initialdirectory is available in silverlight. How could i achive the same. My problem is it has to remember the last folder. Thanks.

    WPF help

  • htmlpage.window.navigation help
    Y yogesh_kumar_agarwal

    HI All, I got the solution for the same. Sharing with u

    HtmlPage.Window.Eval(String.Format("window.location.href='{0}';", strUrl))

    Thanks

    WPF help

  • htmlpage.window.navigation help
    Y yogesh_kumar_agarwal

    Dear All, I have a Page name first.aspx, from where i click on go to second.aspx. This second.aspx page has silverlight object. In silverlight object i use

    System.Windows.Browser.HtmlPage.Window.Navigate(New Uri(strUrl, UriKind.RelativeOrAbsolute), "\_self", "")
    

    to come back to first.aspx, but it works like back button of browser, means this page not showing the updates i have done in second.aspx. I have to refresh the first.aspx to see the new changes. So how could i navigate to the page with page refresh in silverlight. Thanks

    WPF help

  • Calling Event in VB.nET
    Y yogesh_kumar_agarwal

    Hi David, Thanks for the reply is am using VS2008 SP1. My Code is like below

    Me.Dispatcher.BeginInvoke(Function() Do
    RaiseEvent PropertyChanged(Me,New PropertyChangedEventArgs("UploadPercent"))
    End Function)

    As per your instructions i have change it to

    Me.Dispatcher.BeginInvoke(Sub
    RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("UploadPercent"))
    )

    But it is again not working for me.... Possible solution??? Thanks

    ASP.NET csharp help

  • Calling Event in VB.nET
    Y yogesh_kumar_agarwal

    So what is the way to do the same. the senerio is i have a delegate defind say "ProgressChangedEvent" i my class i have a event "UploadProgressChanged" of type "ProgressChangedEvent" now RaiseEvent ProgressChangedEvent(me,args) working fine for me, but i want the asyncronous call, so want to use. dispature.beginInvoke( ) so how could i call the event. Thanks Plz help...

    ASP.NET csharp help

  • Calling Event in VB.nET
    Y yogesh_kumar_agarwal

    C# Code

    this.Dispatcher.BeginInvoke(delegate()
    {
    PropertyChanged(this, new PropertyChangedEventArgs("FileLength"));
    });

    VB.NET Code

        Me.Dispatcher.BeginInvoke(Function() Do
            RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("FileLength"))
        End Function)
    

    But it is not working i tried the code convert for the same, then did google also but unable to get the correct syntax. Plz help

    ASP.NET csharp help

  • Count function
    Y yogesh_kumar_agarwal

    Dear All, This is a c# code working fine in, Where files is a genric collection. files.Count(f => f.Status == FileUploadStatus.Uploading || f.Status == FileUploadStatus.Resizing) i convert the same in vb.net using some convertion tools, and i got files.Count(Function(f) f.Status = FileUploadStatus.Uploading OrElse f.Status = FileUploadStatus.Resizing) and its not working, got the error like ReadOnly Property Count() As Integer' has no parameters and its return type cannot be indexed. So plz help and let me know what is wrong i m doing here with possible solution. Thanks

    ASP.NET csharp help tools question

  • Unable to read bmp and gif files in Silverlight [modified]
    Y yogesh_kumar_agarwal

    BitmapImage imageSource = new BitmapImage(); Stream stream = fu.File.OpenRead(); BinaryReader binaryReader = new BinaryReader(stream); byte[] currentImageInBytes = binaryReader.ReadBytes((int)stream.Length); stream.Position = 0; imageSource.SetSource(stream); imagePreview.Source = imageSource; catastrophic failure error occoured,Plz help HI after a lot of RND i got something like imagetool on codeplex did anyone has some idea how to use the same. HI All its done, my problem is been resolved now, I used imagetool classes to convert gif and bmp files, but still looking for TIFF decoder, did any one have teh solution for the same???? Thanks

    modified on Friday, July 23, 2010 12:13 AM

    WPF help tutorial question

  • Selected Value in Combobox
    Y yogesh_kumar_agarwal

    Dear All, Here is my combobox in Silverlight <ComboBox x:Name="drpUserList" Width="200" Height="30" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Left" DisplayMemberPath="FullName" SelectedValuePath="UserNumber"> and i use drpUserList.ItemsSource = e.Result; To fill my combobox, it works fine and will file the combobox with values but i want the selectedvalue which is my userid for selected user from dropdown. How could i get the value.

    WPF

  • File Upload in Silver Light
    Y yogesh_kumar_agarwal

    Hi All, I developed a page in silverlight by which i used to upload the file on server but i want to create the progress bar also. So i devide the file into chunks and will upload the file into chunks and set the steps for progress bar according to the chunks. But now i have to upload the files into sql server and display the progress bar also for the same. I am able to do the same but how to handle the progressbar now. plz help me for the same, its not required be to upload the files into chunks but i need the progress bar when i used to upload the file into sql server database. If u have any example link then plz share the same. Thanks

    WPF database tutorial sql-server sysadmin help

  • How to install silverlight
    Y yogesh_kumar_agarwal

    Hi, All i have VS2008 in my PC. Now i want to make a application in silverlight. I am unable to work with silverlight. Acctually i have seen in the tutorials that we need to select silver light project from the new project window but i didn't find the same. I have installed the silverlight by downloading it from silverlight.net but still but able to create the silverlight project. I got a link for silverlight_Alpha for the same i install the same also, finally i got the silverlight template, but the problem remains the same when i tried to create a project i got a error "The project type is not supported by this installation" So plz help me out. Plz tell me what to install for silverlight, from where i can download the same. Thanks Yogesh Agarwal

    WPF help csharp tutorial

  • Error on the live Server
    Y yogesh_kumar_agarwal

    SomeDomain/AddLineup.aspx?&Cname=Yogesh&Contact1=NA&Contact2=NA&DataCenter=NA&Distt=NA&Activity=NA&School=NA&ActivityDate=NA&ALocation=NA&VisitTime=NA&DateVisit=NA&VisitCenter=NA&CourseInt=NA&Comments=NA&TransferBy=NA

    Hi i want to call a url like i mention above. Its working fine when i run the same through debug. But when i upload the same on my webserver it give me the error.

    System.NullReferenceException: Object reference not set to an instance of an object. at AddLineup.InsertRecordLinedUp()

    Here InsertReceordLinedUp is a function in AddLineup.aspx page. Plz Reply. Thanks Yogesh Agarwal

    ASP.NET sysadmin debugging help question

  • Insert Skips When use in a Loop
    Y yogesh_kumar_agarwal

    This happens in the same file, u overcome the problem i try it to do upload the records using code also with the bearkpoint at catch but it will never come over that. Also when it inserts 8890 records then abviousally it inserts those records also that it skips when it inserts only 8800. So i just can't undersatnd the problem why it skips the inserts. Plz help!! Thanks Yogesh Agarwal

    ASP.NET sysadmin

  • Insert Skips When use in a Loop
    Y yogesh_kumar_agarwal

    Its fine but i m not so free that i will post the problem without checking it. If u dont know the solution why give this kind of posts.

    ASP.NET sysadmin

  • Insert Skips When use in a Loop
    Y yogesh_kumar_agarwal

    When i used to upload the excel file, i inserts the records but it used to skip the insertion, like my file has 9000 records it insert 8890 or 8800 sometimes 8950, plz suggest what would be the possible reason.

                Dim conexcel As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("upload/" & FileUpload1.FileName) & "; Extended Properties=Excel 8.0")
                Dim cmd As New OleDbCommand("select \* from \[Sheet1$\]", conexcel)
    
    
                Try
                    If ConnectionState.Open Then
                        conexcel.Close()
                    End If
                    conexcel.Open()
                    Dim dr As OleDbDataReader
                    dr = cmd.ExecuteReader()
    
                    Dim act, cnt, ds, cf, co, distt, dtype As String
    
                    act = ddl\_Activity.SelectedItem.Text.ToString()
                    cnt = ddl\_Center.SelectedItem.Text.ToString()
                    ds = ddl\_DataSource.SelectedItem.Text.ToString()
                    distt = ddl\_Distt.SelectedItem.Text.ToString()
                    bcode = UCase(bcode) & "/" & distt & "/" & act & "/" & bno.ToString()
                    dtype = ddl\_DataType.SelectedItem.Text.ToString()
    
                    Try
                        Dim name, cnt1, cnt2 As String
                        name = ""
                        cnt1 = ""
                        cnt2 = ""
                        cf = ""
                        co = ""
    
                        Dim m, p As Int64
                        m = 1
                        While (dr.Read())
                            name = Trim(dr(0).ToString())
                            cnt1 = Trim(dr(1).ToString())
                            cnt2 = Trim(dr(2).ToString())
                            cf = Trim(dr(3).ToString())
                            co = Trim(dr(4).ToString())
    
                            Dim str As String
                            If cnt1 <> "" Or name <> "" Then
                                str = "insert into tbl\_edu\_dt(full\_name,contact1,contact2,Activity,Center,DistName,DataSource,Collected\_From,Collected\_On,batch\_code,batch\_id,imp\_date,imp\_time,Data\_Type) values ('" & name & "','" & cnt1 & "','" & cnt2 & "','" & act & "','" & cnt & "','" & distt & "','" & ds & "','" & cf & "' , '" & co & "','" & bcode & "','" & m & "','
    
    ASP.NET sysadmin

  • Grid with CheckBox Columns
    Y yogesh_kumar_agarwal

    For now i create the columns with the name 1,2,3,... for loops counter value. and i dont want to bind it with any database table. i used the following code to create the column for now **loop** CheckBoxField cf=new CheckBoxField(); cf.HeaderText=i.toString(); gridview.columns.add(cf) **End Loop** it creates the column for me but no checkbox appears there

    ASP.NET css

  • Grid with CheckBox Columns
    Y yogesh_kumar_agarwal

    But i dont know how much column has to created because no. of columns is dynamic according to the numbers user enters. So how many template field i have to created.

    ASP.NET css

  • Grid with CheckBox Columns
    Y yogesh_kumar_agarwal

    Hi All, i have a textbox with numeric insert so if i worte 5 there, then i need to create a grid with 5 columns with checkboxes. So the column should add at runtime i can't define the template field at designtime, when i user checkboxfield to create checkbox column dynamically then the column created but the checkboxes is not appeared in the column. So what would the solution. plz do reply. Thanks Yogesh Agarwal

    ASP.NET css

  • setting focus on masked textbox control added in datagridview
    Y yogesh_kumar_agarwal

    sorry for the late reply. But i just did the same.

        t1 = GridView1.Rows(0).FindControl("InstallmentDec")
        t1.Text = dt.Rows(0)(12).ToString()
    

    Its working for me. Here use Foucus function in place of setting text will work fine.

    C# help question
  • Login

  • Don't have an account? Register

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