Quantcast
Channel: CSharp Forum Latest Questions
Viewing all 32065 articles
Browse latest View live

bindingsourcecode methods

$
0
0
hi every one...
please... i have a task  to give an example for methods  related to bindingsource tool 
the methods are:(using c# and windows application not console)
add
addnew
clear
insert 
cancel...etc
any one help me ...
thanks indeed...
yours
man


Dynamic Navigation Menu in PHP

$
0
0
Hi, my question is if you have meta information stored in a MySQL DB how would you go about displaying this information in the source code of the relevant page?

Being cheeky my 2nd question is

The code in your article works great, as expected however I want to make an adjustment to it as far as the <title><?=$page?></title>

When displaying the title you get the .php extension e.g. home.php

I have seen ways through using .htaccess but how do you remove the extension .php from the title using php?

Thanks

How can I draw image in panel when I click mouse up ?

Is there videos to learn about sql ?

$
0
0
Is there videos to learn about sql ((save from form c# then read what I save it)) ??

the datetime variable value not null it always minvalue

$
0
0
i have aform that filter data usig four controls..we can filter using one or more control....so the controls may be null and this is the problem 
this is my aspx page code 


   <asp:EntityDataSource ID="BuyEntityDataSource" runat="server" ConnectionString="name=StockyEntities"
                    DefaultContainerName="StockyEntities" EnableFlattening="False" EntitySetName="Buys"
                    Include="Supplier" Where="(it.OrganizationID=@OrganizationID) AND (it.BuyDate >= @DateFrom or @DateTo IS NULL )AND ( it.BuyDate <= @DateTo or @DateTo IS NULL ) AND (it.InvoiceNumber=@BuyID or @BuyID IS NULL) AND (it.Supplier.SupplierName=@Supplier or @Supplier IS NULL)"
                    EntityTypeFilter="Buy">
                    <WhereParameters>
                        <asp:Parameter Type="Int64" Name="BuyID" />
                        <asp:Parameter Type="String" Name="Supplier" />
                        <asp:Parameter Type="DateTime" Name="DateFrom" />
                        <asp:Parameter Type="DateTime" Name="DateTo" />
                        <asp:SessionParameter DefaultValue="1" Name="OrganizationID" SessionField="OrganizationID"
                            Type="Int32" />
                    </WhereParameters>
                </asp:EntityDataSource>




and this is the code in aspx.cs file code ... so what can i do ..... please help me quicky ...



  DateTime fromDate; DateTime.TryParseExact(FromDateTextBox.Text, "dd/MM/yyyy", null, System.Globalization.DateTimeStyles.None, out fromDate);  //if the control is null it retruns Minvalue (1/1/0001 12:00:00 AM)
            DateTime toDate; DateTime.TryParseExact(ToDateTextBox.Text, "dd/MM/yyyy", null, System.Globalization.DateTimeStyles.None, out toDate);  //if the control is null it retruns Minvalue (1/1/0001 12:00:00 AM)
            string BuyId = BuyIDTextBox.Text;
            string SupplierName = SupplierTextBox.Text;
            string fromDateString = fromDate.ToString();//to current culture format
            string toDateString = toDate.ToString();//to current culture format
            BuyEntityDataSource.WhereParameters["DateTo"].DefaultValue = toDateString;
            BuyEntityDataSource.WhereParameters["DateFrom"].DefaultValue = fromDateString;
            BuyEntityDataSource.WhereParameters["Supplier"].DefaultValue = SupplierName;
            BuyEntityDataSource.WhereParameters["BuyID"].DefaultValue = BuyId;





word 2013 custom tab keyboard shortcut

$
0
0
how do i change the keyboard shortcut for a custom tab in word 2013?

Checkboxlist shows only 1 data from database instead of 3

$
0
0

am trying to bind my Checkboxlist programatically based on two input variables ; but i get only one checkbox instead of 3 .

Here are my codes

This is my Business Layer

publicclassBALDisplayPanel2{privatestring _mylabel;publicstringMyLabel{get{return _mylabel;}set{ _mylabel = value;}}privatestring _conditionlabel;publicstringConditionLabel{get{return _conditionlabel;}set{ _conditionlabel = value;}}privatestring _checkboxquestion;publicstringCheckBoxQuestion{get{return _checkboxquestion;}set{ _checkboxquestion = value;}}

This is my Data access Layer

publicList<BALDisplayPanel2>DisplaySPanelQ(int tbid,int grdid){SqlConnection conn =newSqlConnection(ConfigurationManager.ConnectionStrings["mynewdbConnectionString"].ConnectionString);
        conn.Open();SqlCommand cmd =newSqlCommand("esp_MyCheckboxProc", conn);
        cmd.CommandType=CommandType.StoredProcedure;List<BALDisplayPanel2> lst =newList<BALDisplayPanel2>();
        cmd.Parameters.AddWithValue("@Emp", tbid);
        cmd.Parameters.AddWithValue("@UnitNumber", grdid);SqlDataReader dr = cmd.ExecuteReader();while(dr.Read()){BALDisplayPanel2 unt =newBALDisplayPanel2();
            unt.CheckBoxQuestion= dr["CheckQuest"].ToString();
            unt.MyLabel= dr["MyLabel"].ToString();
            unt.ConditionLabel= dr["ConditionLabel"].ToString();//unt.LabelS = dr["LabelQ2"].ToString();
            lst.Add(unt);}

        conn.Close();return lst;}

This is my Default.cs file i call my checkbox

BALDisplayPanel2 bl =newBALDisplayPanel2();DALDisplayPanel2 dal =newDALDisplayPanel2();List<BALDisplayPanel2> lst =newList<BALDisplayPanel2>();
        lst = dal.DisplaySPanelQ(Convert.ToInt32(tbEmpID.Text),Convert.ToInt32(GridView1.SelectedRow.Cells[2].Text));foreach(var item in lst){

            chbklstpanel3.Items.Clear();
            chbklstpanel3.DataSource= lst;
            chbklstpanel3.DataTextField= item.CheckBoxQuestion;

            lblpanel3.Text= item.MyLabel;
            lblCondition.Text= item.ConditionLabel;}

any help appriciate

how to disabled the form controls until process completed, i

$
0
0
i used the UpdateProgress for display the process message (ex. plz wait..) to the user until server take time for processing and here i also used ModalPopupExtender to disabled the  the form and it's controls until the server processing is completed and when the process is completed then the ModalPopupExtender is auto hide and the disabled form status is changed to enabled. And it is work fine in Google Chrome, Mozilla Firefox etc. but does not work fine in Internet Explorer 8, Internet Explorer9 here when i click any button in form then until the process running UpdateProgress is work but the ModalPopupExtender doen not disabled the form and it's controls and user can easily click the other controls of the form. but in case of Google Chrome, Mozilla Firefox etc user can't interact with the form control until the process is completed.

i used the following code for this plz check it 

     <script type="text/javascript" language="javascript">
         var ModalProgressIndex = '<%= ModalPopupExtenderIndex.ClientID %>';  
     </script>

    <script type="text/javascript" src="jsUPIndex.js"></script>


    <asp:Panel ID="Panel1" runat="server">
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanel4">
    <ProgressTemplate>
            <div class="CenterPB" style="height: 35px; width: 167px; position: absolute;">
               Plz Wait...
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    </asp:Panel>

    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderIndex" runat="server" PopupControlID="Panel1" TargetControlID="Panel1"></ajaxToolkit:ModalPopupExtender>


code of "jsUPIndex.js" file 

> Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginReq);
> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endReq);
> function beginReq(sender, args) {   $find(ModalProgressIndex).show();
> }
> function endReq(sender, args) {   $find(ModalProgressIndex).hide(); }

do i need to add extra script here. plz give me solution for this
 

Import Text file data into MS Access Database table using C#

$
0
0
Dear Friends,
 
If any one know how to import textfile (Ex - data.txt file) data into MS access database table using c# code.Text file data contain like this below:
 

12|ABC|KOL|WB|REJ|12345678901|12/12/12|123k|12/01/12|200.000|00000000|12/02/12|12000.00|SBI|00000000|12/02/12|12000.00|SBI|00000000|12/02/12|12000.00|UBI|1200000.00|as|12|1000002|e2222|dugdha|dhanbad|12|guj|222|12|12|12|12|11|12|12|12|12|12|12|12|12/12/12|12/12/12 
 
in one row with deliminator  =        |            vertical bar
 

If you have any idea kindly reply me ASAP.
 

Regards
Your Friend

ASP.Net with JavaScript

$
0
0
Hi All,
In My Application JavaScript Function is not working ..i.e. i am unable to call it through OnClientClick Event and In My form there are many ajax controls,UpdatePanels and lot of CSS is there...is there any effect on JavaScript  function because of these things..and how can i make it work

Thanks In Advance,

Regards,
Sathish  Pabbathi 

Generate Report From Student Database for each student

$
0
0
Hi,
     I want to generate report using VS 2010.I have table in MySql for Student Records.Now I've to generate report for each student seperately.That's I generate report using dataset which generate all student records at a time.But my task is to generate seperate record for each student.

Thanks is adnace guys....

difficulties in jsp and test field in javascript language

$
0
0
hi to all;

I'm debutante  in JSP netbeans, please help me to realize my application I have some difficulties:

1 - page modifier.jsp (recovery fields to edit it works well but I press button update nothing is changed.) 

2-how iserer date in  oracle 10g database via JSP netbeans.

3-how to connect with the selection of the space to be connected (the connection it works well but I have three spaces and each user has a private space to connect)

4-field test in javascript:

how to check that the field in a number  (number of telephone  for ewemple )

-check a field is already inserted in the database and must be given change.



Please help me if you have one reponse of these questions please 

thank you in advance

How to Highlight Gridview Fonts in Runtime ..

$
0
0
How To Highlight gridview fonts in run time ....

weird crash upon using the invoker

$
0
0
im using the invoker to do something after a short delay

when i do the task required using a button it all works when

i use the invoker to do it, it crash the app

heres the invoker code

     _delayMSE2.Set();


                // open the ResetEvent gate, to discard these delays    
                Thread.Sleep(20);
                // let all pending through the gate    
                _delayMSE2.Reset();
                // close the gate
                TBDelay2.BeginInvoke(res2 =>
                {
                    // callback code        
                    // check how we exited, via timeout or signal.        
                    bool timedOut2 = TBDelay2.EndInvoke(res2);
                    if (timedOut2)
                        Dispatcher.CurrentDispatcher.Invoke(
                            new ActionToRunWhenUserStopstyping2(DoWhatEverYouNeed2),
                            DispatcherPriority.Input);
                }, null);



----


heres the task




        private void conexiononinputdelay()
        {


            if (tabControl1.SelectedTab == tabPage1)
            {


             
                Random r = new Random();
                int n = r.Next();




                var page4 = new TabPage(roombox.Text);
                tabControl1.TabPages.Add(page4);
                tabControl1.SelectedTab = page4;
                var browser = new WebBrowser();
                browser.Visible = true;
                browser.Left = -browser.Width;
                browser.ScriptErrorsSuppressed = true;
                browser.Dock = DockStyle.Fill;
                //      contextMenuStrip10.Visible is the menu that should show when right clicked 
                browser.IsWebBrowserContextMenuEnabled = false;
                page4.Controls.Add(browser);
                browser.Name = roombox.Text + n;
                page4.Name = roombox.Text + n;
                browser.Navigate("http://www.tinychat.com/" + roombox.Text);


             //   MessageBox.Show("broswer is " + browser.Name + "page name is " + page4.Name);


            }


            else
            {
             
                foreach (TabPage page in tabControl1.TabPages)
                {
                    foreach (Control c in page.Controls)
                    {
                        string tabpagex = tabControl1.SelectedTab.Name;


                        if (c is WebBrowser && c.Name == tabpagex)


                        {
                            ((WebBrowser)c).Url = new Uri(@"http://www.tinychat.com/" + roombox.Text);
                            tabControl1.SelectedTab.Name = roombox.Text;
                            tabControl1.SelectedTab.Text = roombox.Text;
                            c.Name = roombox.Text;


                       


                        }


                        else
                        {


                           
                        }




                       
                    }
                }


 
            }
        }



note that when the task is executed using a button by example (click on a button event)
everything works just fine without any problem i tried removing anything else
that could interfer with this and i get the exact same crash 





how to get the the value of template gridview in textbox

$
0
0

I have the the three buttons  in template Grid View Like View, Update , Delete,
When i clicked to view the data or value of  should get in textboxe's.


Thanks

which control is used in connected list of users

$
0
0
Hi..I want to develop chatting and message feature......
For that which control is advisable to display list of users
How to move forward please suggest me

Microsoft Certification 70 - 483 dumps

$
0
0
Hi there. I'm looking for Microsoft 70 - 483 exam dumps. If you have it, please send it to ts_yovchev@mail.bg



Thanks in advance

Load MS Project Template (MPT) Files & Enhanced Gantt Chart

$
0
0

What's New in this Release?

We are happy to announce the release of Aspose.Tasks for .NET 5.4.0. With this month's release, Aspose.Tasks for .NET now supports loading Microsoft Project Template (MPT) files which enable users to create project from constructor using template as parameter. Now Project's constructor can be used to create project from templates and read existing projects as well, avoiding usage of ProjectReader. In this month's release, we have added enhancements to the Gantt chart rendering by providing the option to roll up Gantt bars that marks any summary task in the project by its visible subtasks. In addition, we have also provided the facility to avoid marking non-working time on Gantt chart. The rendering process has also been enhanced to allow printing/hiding of legends on each page. We have also added additional task constraints in this month's release which include StartNoEarlierThan, FinishNoEarlierThan, MustStartOn, and MustFinishOn task constraints. Loading Microsoft. This month's release also includes a number of bug fixes related to XML output, where unnecessary data was present as compared to the output by MSP, identifying external tasks, incorrect duration while rendering Gantt chart, and custom fields. Below is the complete list of new features and important bug fixes included in this release.

·         Microsoft Project MPT templates support.

·         More options in Gantt Chart Image rendering

·         Project Rendering option without Legends on Each page in new Rendering Technique

·         Add support for different types of TaskConstraints.

·         Difference in percentage calculation (resource allocation and task completion) when date = 'NA' in constraint

·         Some unexpected elements in XML output.

·         Export to XML by Aspose.Tasks differs from export by MS Project - some extra data was added.

·         [CustomAttributes] enhanced reading some attributes from MPP

·         [Gantt Chart Rendering] Duration field returns incorrect data is fixed

·         [Custom Fields] Cost field ignores point '.' from decimal values is fixed

·         External tasks cannot be identified by IsExternalTask property of Aspose.Tasks.Task

·         Custom fields of date type that uses lookup table does not returns date value

·         Project Reading Exception while reading the MPP file

·         Could not retrieve Enterprise Custom Fields information from 2010 MPP

Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Tasks for .NET documentation that may guide you briefly how to use Aspose.Tasks for performing different tasks like the followings.

 

- Rendering Gantt Chart: http://www.aspose.com/docs/display/tasksnet/Rendering+Gantt+Chart

 

- Saving a Project as PDF: http://www.aspose.com/docs/display/tasksnet/Saving+a+Project+as+PDF

Overview: Aspose.Tasks for .NET

Aspose.Tasks is a non-graphical .NET Project management component that enables .NET applications to read, write and manage Project documents without utilizing Microsoft Project. With Aspose.Tasks you can read and change tasks, recurring tasks, resources, resource assignments, relations and calendars. Aspose.Tasks is a very mature product that offers stability and flexibility. As with all of the Aspose file management components, Aspose.Tasks works well with both WinForm and WebForm applications.

More about Aspose.Tasks for .NET

- Homepage of Aspose.Tasks for .NET: http://www.aspose.com/.net/project-management-component.aspx

- Download Aspose.Tasks for .NET: http://www.aspose.com/community/files/51/.net-components/aspose.tasks-for-.net/default.aspx

- Demos of Aspose.Tasks for .NET: http://www.aspose.com/demos/.net-components/aspose.tasks/default.aspx

- Online documentation of Aspose.Tasks for .NET: http://www.aspose.com/docs/display/tasksnet/Home

- Post your technical questions/queries to Aspose.Tasks for .NET Forum: http://www.aspose.com/community/forums/aspose.tasks-for-.net/96/showforum.aspx

- Receive notifications about latest news and supported features by subscribing to Aspose.Tasks for .NET blog: http://www.aspose.com/community/blogs/aspose.tasks-for-.net/default.aspx

Contact Information

Aspose Pty Ltd

Suite 163, 79 Longueville Road

Lane Cove, NSW, 2066

Australia

http://www.aspose.com/

sales@aspose.com

Phone: 888.277.6734

Fax: 866.810.9465

validation for calendar extender?

$
0
0
Hi,
    1)How to give validations for calendar extender?
    2)In registration Page how to give Security Question in dropdownlist and how we can save in data base with example please
     

to display inbox in mail which control is used

$
0
0
please help me which control is the best to display inbox..gridview or datalist or etc
Viewing all 32065 articles
Browse latest View live