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
P

ptvce

@ptvce
About
Posts
397
Topics
247
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • active opened menu
    P ptvce

    Hi I have a menu, and i want when i click on one of item, that item be opened and i can show the sub menu when i click on sub items, and it cloesd if i change the top menu plz help more thanks

    JavaScript help

  • binding gridview
    P ptvce

    Hi i bind a gridview and one of the column show the data this form "aaa#;7" i want show just "aaa", how can i remove "#;7" from the end of data in gridview column when it bindings. Thnaks

    ASP.NET wpf wcf question

  • radiobuttonlist change event with javascript
    P ptvce

    I have 2 RadioButtonList rdBtnPersonel_Status and rdBtnPersonel_FoodStatus i wrote :

    <asp:RadioButtonList runat="server" ID="rdBtnPersonel_Status" RepeatDirection="Horizontal" Width="100%"
    DataSourceID="ObjDsPersonelStatuses" onclick="javascript:radioButtonListOnClick('<%#((RadiobuttonList)Container.FindControl("rdBtnPersonel_Status")).ClientID %>');">

                                                                            </asp:RadioButtonList>
    

    i want when i click rdBtnPersonel_Status , if the valu eual A the rdBtnPersonel_FoodStatus be disabled. (with javascript) can any body help me?

    ASP.NET javascript sysadmin docker help question

  • repeater in c#
    P ptvce

    i use OnItemCreated in repeater like :

    <asp:Repeater runat="server" ID="DaysRepeater" DataSourceID="ObjDsDaysRepeater" OnItemCreated="DaysRepeater_ItemCreated">
    <ItemTemplate>

    and

    protected void DaysRepeater_ItemCreated(object sender, RepeaterItemEventArgs e)
    {

       }
    

    protected void PersonelsRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataModel model = new DataModel(); Label label = (Label)((Repeater)sender).Parent.FindControl("lblCurrentDate"); int num = Convert.ToInt32(label.Text); if ((e.Item.ItemType == ListItemType.AlternatingItem) || (e.Item.ItemType == ListItemType.Item)) { DataTable totalIssuancePersonelDataWithID = model.GetTotalIssuancePersonelDataWithID(this._wfItemId); if (totalIssuancePersonelDataWithID != null) { } but in debug none of the function didnt run Does any body know what can i do?

    C# csharp sysadmin debugging question

  • Export GridView to Excel cause System.OutOfMemoryException
    P ptvce

    its better that i transfer that directly into Excel but i dont know how can i do this, just i know bind a gridview and then convert it to excel

    C# help tutorial question

  • Export GridView to Excel cause System.OutOfMemoryException
    P ptvce

    I want to export GridView (25000 records) to Excel. But i got an error message like : System.OutOfMemoryException was Thrown. But i need to export the records (even more than 25000 records) to excel How to solve this ?

    C# help tutorial question

  • Read/write directly to a specific sector in a hard disk
    P ptvce

    Hi I Saw this sample but it doesnt tell how can i write in sector, this sample just show total size of sector in disk :(

    C# csharp help

  • Read/write directly to a specific sector in a hard disk
    P ptvce

    how can Read/write directly to a specific sector in a hard disk with c# Please help me if anybody know

    C# csharp help

  • OutOfMemoryException
    P ptvce

    i write this code : when i debuged , in line 5 i see this error : "Exception of type 'System.OutOfMemoryException' was thrown." do u know what should i do? 1- HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWriter); 2- DataGrid DataGrd = new DataGrid(); 3- DataGrd.DataSource = dsGrid; 4- DataGrd.DataBind(); 5- DataGrd.RenderControl(htmlWrite);

    C# help question

  • read and write sector of hard disk in windows 7 and up version
    P ptvce

    does any body know how can read and write the hard disk sector with c# not assemblly? thanks

    C# csharp question announcement

  • exception of type 'system.outofmemoryexception' was thrown
    P ptvce

    Im writing this code for display data in excel, try { string Path = "G:\\AjanceReport\\TotalReportExcelfile_" + DateTime.Now.Day.ToString() + "_" + DateTime.Now.Month.ToString() + ".xls"; FileInfo FI = new FileInfo(Path); StringWriter stringWriter = new StringWriter(); HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWriter); DataGrid DataGrd = new DataGrid(); DataGrd.DataSource = dsGrid; DataGrd.DataBind(); DataGrd.RenderControl(htmlWrite); string directory = Path.Substring(0, Path.LastIndexOf("\\"));// GetDirectory(Path); if (!Directory.Exists(directory)) { Directory.CreateDirectory(directory); } System.IO.StreamWriter vw = new System.IO.StreamWriter(Path, true); stringWriter.ToString().Normalize(); vw.Write(stringWriter.ToString()); vw.Flush(); vw.Close(); WriteAttachment(FI.Name, "application/vnd.ms-excel", stringWriter.ToString()); } catch (Exception ex) { //throw new Exception(ex.Message); } but i see this error : exception of type 'system.outofmemoryexception' was thrown any body know what can i do???

    ASP.NET help question

  • select an item in gridview
    P ptvce

    I have a gridview with a checkbox column, i select a checkbox in a row and click edit button after that, edit button click_event i wrote this:

    grvWorkDetail.DataKeys[grvWorkDetail.SelectedIndex].Values["WorkTimeID"].ToString()

    but it has error, and i cant access to "WorkTimeID"

    my codebehind is :

    <asp:TemplateField ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center">
    <HeaderTemplate>
    <asp:CheckBox ID="chk_SelectAll" runat="server" />
    </HeaderTemplate>
    <ItemTemplate>
    <asp:CheckBox ID="chk_Select" runat="server" />
    </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField ItemStyle-HorizontalAlign="Center"

    ASP.NET sysadmin help

  • select an item in gridview
    P ptvce

    I have a gridview with a checkbox column, i select a checkbox in a row and click edit button after that, edit button click_event i wrote this: grvWorkDetail.DataKeys[grvWorkDetail.SelectedIndex].Values["WorkTimeID"].ToString() but it has error, and i cant access to "WorkTimeID" my codebehind is :

    <asp:TemplateField ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center">
    <HeaderTemplate>
    <asp:CheckBox ID="chk_SelectAll" runat="server" />
    </HeaderTemplate>
    <ItemTemplate>
    <asp:CheckBox ID="chk_Select" runat="server" />
    </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField ItemStyle-HorizontalAlign="Center"

    Web Development sysadmin help

  • open new windo without address bar
    P ptvce

    Hi I want to open New Internet Explorer window when click on a link and when it open that window dose not have address bar Anybody know?

    ASP.NET question

  • show alert in javascript and not continue
    P ptvce

    yes, i forgot write return, Thanks

    JavaScript javascript tools question

  • show alert in javascript and not continue
    P ptvce

    oooh , i forgot write return in önsubmit="return ValidateFileSize()" thanks so much. :)

    JavaScript javascript tools question

  • show alert in javascript and not continue
    P ptvce

    hi i use this code:

    <script type='text/javascript'>
    function ValidateFileSize(strFUS) {
    var filename = document.getElementById('<%=fuSignature.ClientID%>');

            var myFSO = new ActiveXObject("Scripting.FileSystemObject");
    
            var filepath = filename.value;
    
            var thefile = myFSO.getFile(filepath);
    
            var size = thefile.size;
    
            if (size / 1024 < 110)
                return true;
            alert('the size of file is big');
            return false;
    
        }
    

    </script>

    this code is work and show me the alert but when i click on ok button in allert box the file uploadbut i want it not be upload. what should i do? plz

    JavaScript javascript tools question

  • check size of file in fileupload
    P ptvce

    Hi i have a fileupload control in form, and now i want to check the size of file before upload it. i wrote this code but the value of fileSize = 0 all the time. what should i do. can anybody help me? int fileSize = fuSignature.PostedFile.ContentLength

    ASP.NET help question

  • size of fileupload
    P ptvce

    Hi i have a fileupload control in form, and now i want to check the size of file before upload it. i wrote this code but the value of fileSize = 0 all the time. what should i do. can anybody help me? int fileSize = fuSignature.PostedFile.ContentLength

    C# help question

  • the size of file in fileupload
    P ptvce

    Hi i have a fileupload control in my webpart, and now i want to check the size of file before upload it. i wrote this code but the value of fileSize = 0 all the time. what should i do. can anybody help me? int fileSize = fuSignature.PostedFile.ContentLength

    SharePoint 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