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

asp.net integrating tinymce with plugin youtube


members initialization ??

$
0
0
Hello friends 

Well its a silly doubt but here it goes 

In a class we have members after creating object of class the members (variables etc) gets initialized i.e constructor :)

Is the values of value type goes with ZERO etc like that before obj creation ??? am i right after object creation what happens ?? constructor make then initialize to what ??

TY


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

Case Study

$
0
0
Case Study : Create student registration form to enroll multiple students in an institute with option to edit or delete the form information of the selected student. Student photo can be uploaded and view in the form.Related report will be generated in  a Excel file.
Sir, how  do i solve this problem.Please help me.

web.config file

$
0
0
Hi,

As you are aware we have a web.config file for each web application (may be many more, it doesn't matter) and presume that this web.config file inherits from Machine.config file located at location "Microsoft .net/Framework/version/config". But at the same path another web.config file is found and I have read some articles claiming that application's web.config file inherits the properties from that web.config file located at above location.

So can you please let me know it is correct?

ASP.NET

$
0
0
Sir,can you please tell me the steps that how i will create a simple mobile phone application in asp.net on visual studio 2010 platform.
Thanks.

Populate only year from datetime data from accessto listview

$
0
0
Hi All,
 
I tried many links but I am unable to find a solution. Request your expertise for the below queries:
 
1. I have a listbox where dates from the database are populated. I want only year to be displayed in the listbox. Please advise.
 
2. This is the current select statement : str = "select partyname from casetab WHERE jdate='" +listJDate.SelectedItem.ToString() + "'";
 
How do I convert string to datetime in select statement so I can add in the listbox selectIndexChanged event.
 

Please advise.
 
--
NG

WPF C# datagrid fix view row (fix scroll)

$
0
0

i am working on WPF datagrid and want to fix view after insert row at top, whenever row insert at top view scroll down by 1 row, i am using following code

int i =0;DataTable dt =null;privatevoidUserControl_Loaded(object sender,RoutedEventArgs e){
        dt =newDataTable();
        dt.Columns.Add("Col1");
        dt.Columns.Add("Col2");DispatcherTimer dtimer =newDispatcherTimer();
        dtimer.Tick+=newEventHandler(dt_Tick);
        dtimer.Interval=newTimeSpan(0,0,1);
        dtimer.Start();
        dataGrid1.DataContext= dt;}void dt_Tick(object sender,EventArgs e){DataRow dr;
        dr = dt.NewRow();
        dr["Col1"]= i;
        dr["Col2"]= i;
        dt.Rows.InsertAt(dr,0);
        i++;}

i tried to use dataGrid1.ScrollIntoView(dataGrid1.SelectedItem); but it still need selected item, and even it scroll down till last row in view

I can manage to do the same in DataGridView of windows form in following way

DataGridViewCell cell = dataGridView1.FirstDisplayedCell;
dt.Rows.InsertAt(dr,0);
dataGridView1.FirstDisplayedCell= cell;

looking for any similar ways to do this in WPF also

Thanks.


encryption and decryption in c#

$
0
0
it's work only for text file can any help me how to do it for all kind of files ex: pdf, word etc
the below code encoding all files but while in decrypting it's decoded to some char
 
plz help me............
 

protected void FileUpload(int size,string CntType)

conn.Open();
SqlCommand cmd = new SqlCommand("insert into FileDetails values('" + File1.FileName + "','" + CntType + "','" + size + "','" + DateTime.Now + "')", conn);
cmd.ExecuteNonQuery();
cmd = new SqlCommand("select max(FileID) from FileDetails", conn);
using (SqlDataReader dr = cmd.ExecuteReader())
if (dr.Read()) 
{
lstFile.Items.Clear();
lstFile.Items.Add(" \t Keyword Encryption ----> ");
lstFile.Items.Add("----------------------------------------------------");
string[] str=txtKeyword.Text.Split(',');
foreach(string word in str)
{
string strEncrypt = Homomorphic.DesEncrypt(word.ToLower(), true);
lstFile.Items.Add(" \t " + strEncrypt);
SqlCommand cmdindex = new SqlCommand("insert into Indexing values(" + dr.GetValue(0) + ",'" + strEncrypt + "')", conn);
cmdindex.ExecuteNonQuery();
}
dr.Close();
lstFile.Items.Add("------------------------------------------------------------");
}
}
protected void btnUpload_Click(object sender, System.EventArgs e)
{
try
{
for(int i=0;i<request.files.count;i++)>
{
if(Request.Files[i].FileName.Trim().Length >0) 
{
HttpPostedFile file=Request.Files[i];
if(file!=null && file.FileName.Length>0)
{
string strmsg = string.Empty;
byte[] fileData = new byte[file.ContentLength];
file.InputStream.Read(fileData, 0, file.ContentLength);
strmsg = System.Text.Encoding.UTF8.GetString(fileData); 
string ps = Homomorphic.DesEncrypt(strmsg.ToLower(),true); 
using (StreamWriter writer = new StreamWriter(Path.Combine(GetCurDir(), Path.GetFileName(file.FileName)), true))
{
writer.WriteLine(ps);
writer.Flush();
}
FileUpload(file.ContentLength,file.ContentType);
Response.Write("<script language='javascript'>alert('Encrypted & Uploaded !')</script>");
lstFile.Items.Add(" \t File Encryption ----> ");
lstFile.Items.Add("------------------------------------------------------");
lstFile.Items.Add(" \t " + ps);
}
}
}
BindData();
}
catch(Exception ex)
{
lblError.Text=ex.Message;
}
}

How to create a Navigatable Tree View Menu in MVC3

$
0
0
I have to create a Navigatable Tree View in an MVC 3 project. This treeview has to be generated from the database. There will be 3-5 levels for this tree and the final node of the tree view will be "Insert Your Comment". When the user clicks on the final node - "Insert Your Comment" (there can be more than one final node), the control should open a new comments page where the user can add his/her comment. Has anyone got any idea about doing this? I am using MVC3 (Razor). Thanks,

Make MVC3 website authenticate both Windows and Forms

$
0
0
I am developing an MVC3 application for a customer service team. I am using default login and registration controls in my application. I have to use both Form Authentication and Windows Authentication. For the customers who come online to insert their comments, it will be Form Authentication for them. For the customer service staff, the system has to use their Windows Authentication to login them (if they they have logged into the their windows account the website should recognize their login details and authenticate them.) How can I make my MVC3 application to authenticate both Windows Authentication for the staff and Forms Authentication for others? Thanks

Ho to make pages into e-book in asp.net

$
0
0

 Hi,

 I want to develop pages into e-book.Can anyone tell me,how to do this?



Thanks,
Saritha

Find , Replace and Goto in Notepad using C#

$
0
0
Sir, I am Doing a Notepad at the moment.

I did all the functions of Notepad except the Find, Replace and Goto Functions.

Please send me the code to these functions.

Rating in Static html site

$
0
0

I am developing a static HTML site which consists of some rock songs.

User will listen to those songs and assign rating to it. I've searched various sites and applied several rating features but as its a static site and no Database the rate given is not stored.

I can use only a XML file to save the rating and display upon re loading.

Please help me in this regard !!!!

crystal report viewer control

$
0
0
I use the crystal report viewer control in vs2012. But there is no report in running webpage. plz help me its urgent........

to display list of users which control is used

$
0
0
hi...please help me anyone
like in facebook list of userrs will be displayed....with chat and msg options
which one is advisable datalist or listview or etc....tell me best one

bindingsourcecode methods

$
0
0
hi every one...
please... i have a task  to give an example for methods  related of bindongsourcecode  
the methods are:
add
addnew
clear
insert 
cancel...etc
any one help me ...
thanks indeed...
yours
man

Biomatric finger print connection code in asp.net(c#) toPC

$
0
0
Biomatric finger print connection code in asp.net(c#) to system:-

1Q- please send me connection code of Biomatric finger print machin  to sysytem in c#(asp.net) .?
2Q-what is  connection  source code  of  Biomatric fingerprint to system?
3Q-send me connection code of Biomatric fingerprint  in c#(asp.net)?


 my connection code->

Problem – Device can not connect to system

Error -

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))



  

program--->

   public partial class Form1 : Form
    {
      
        bool checkcoon1 = true;
        bool checkcon2 = false;
        public Form1()
        {
            InitializeComponent();
        }

        public void connect()
        {
            SBXPC ob = new SBXPC();
          
            int dwMachinNumber=1;
            string lpipAddress="192.168.000.224";
            int dwportnumber=5005;
            int dwpassword=0;
            checkcoon1 = ob.ConnectTcpip(dwMachinNumber,lpipAddress,dwportnumber,dwpassword);
            if(checkcoon1==true)
            {
                MessageBox.Show("connection successful estabalished");
            }
            else
            {
                MessageBox.Show("connection cannot estabalished");
            }

             }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            connect();
        }
    }
}






Problem – Device can not connect to system

Error -

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))


flow for creating a new project as in web application

$
0
0
I want to built website and  every webform how many class files needed.

Thanks and Regards,
    Azeem

How to create Vertical Menu (3-6 levels) Recursively in MVC3

Viewing all 32756 articles
Browse latest View live