ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> ERRORS >> DotNet-Errors
 
 


 

Back to Questions Page
 
Question
what is wrong with this insert into code?
vb 2008 say that there is a syntax error but i believe there is nothing..

cmd.CommandText = " INSERT INTO account1(username, password, lname, fname, mi) VALUES('" & Me.TextBox4.Text & "','" & Me.TextBox5.Text & "','" & Me.TextBox1.Text & "','" & Me.TextBox2.Text & "','" & Me.TextBox3.Text & "')"
                cmd.ExecuteNonQuery()
Rank Answer Posted By  
 Question Submitted By :: Asloversgo_03
I also faced this Question!!   © ALL Interview .com
Answer
" INSERT INTO account1(username, password, lname, fname, mi) VALUES('" + Me.TextBox4.Text + "','"+ Me.TextBox5.Text + "','" + Me.TextBox1.Text + "','" + Me.TextBox2.Text + "','" + Me.TextBox3.Text + "')"
 
0
Kk
 
 
Question
not being able to create delivery from vl01n inspite of
assigning sales order and delivery plz answer it immediately
if any one knows
Rank Answer Posted By  
 Question Submitted By :: A Hussain
I also faced this Question!!   © ALL Interview .com
Answer
Please check the status of your order & delivery in the 
document flow. If your order is completed then its fine did 
u do the TO for this delivery.
 
0
Sukant Chakraborthy
 
 
Question
sir, i have passed on S.B.I for clerk asstt. and i want to 
know that how many candidates were appointed from s.c cota?
Rank Answer Posted By  
 Question Submitted By :: Uttam
This Interview Question Asked @   SBI
I also faced this Question!!   © ALL Interview .com
Answer
60% QOTA FOR SC/ST AND 27% FOR OBC AND 13% FOR GEN
 
0
Nitin Nadia
 
 
 
Question
a cowboy rides to town on friday he stays there for three 
days and lives on friday.how was that possible
Rank Answer Posted By  
 Question Submitted By :: Shaveel
This Interview Question Asked @   Synechron
I also faced this Question!!   © ALL Interview .com
Answer
his horse was named friday
 
0
Shaveel
 
 
Answer
The question says it clearly that he lives on friday.. not leave on friday... very simple.
 
0
Mohd Ayazuddin
 
 
Question
What is Difference Between Server.Response and
Response.Redirect in ASP.Net with C#?
Rank Answer Posted By  
 Question Submitted By :: Chauhan.rakesh514
This Interview Question Asked @   NIIT , Infosys
I also faced this Question!!   © ALL Interview .com
Answer
The data transfering between two page will be more differ on server.Transfer() and Response.Redirect().

Server.Transfer



Server.Transfer() helps the one less round trip. The main advantage of this transfer the first page to second page with better performance. The data can pass through variables, query string and also can retrive from the previous page control value.

Eg: Server.Transfer("Default.aspx");

Response.Redirect()


It is very similar to server.Transfer. The main difference is the posted pervious page values can't be accessable. Here also the data can pass through server variables and query string. It simply redirect the page from one page to another.

Eg: Response.Redirect("Default.aspx")

Note: But the pervious page values can't be accessable by Response.Redirect().

By the Following code setup attachement, This concept will be more understandable. Make use of it.

for code: 
http://www.dotnetfunda.com/articles/article164.aspx
 
0
Narendran
 
 
Question
Actually,I created a web application in ASP.NET (Visual
Studio 2008) in C#.If i want to run my web application in my
local machine through IIS Server (Internet Information
Server), what are all the steps i need to follow??? Please
help me to run my web application in IIS Server
Rank Answer Posted By  
 Question Submitted By :: Mohankind
I also faced this Question!!   © ALL Interview .com
Answer
Thanks in advance

Yours Sincerly,
K.Mohan Kumar
 
0
Mohankind
 
 
Question
how to track links visited in google using iframes in dotnet
Rank Answer Posted By  
 Question Submitted By :: Grenuka2
I also faced this Question!!   © ALL Interview .com
Answer
The emerging software house in the multan pakistan that 
provide the software of all the type for more information plz 
visit this website

 http://www.esn-soft.com/
 
0
Asif
 
 
Question
how we change the .net 1.0 to .net 2.0?is that can we only
paste the dll file?
Rank Answer Posted By  
 Question Submitted By :: Jadhavsagar08
I also faced this Question!!   © ALL Interview .com
Answer
no u can not do this u have to install dot net framework 
2.0 for new version...
 
0
Gaurav
 
 
Question
while am using file upload control in the content
type=="pjpeg" then it will execute,but if the content
type=="jpeg" it is not execute.What it is the meaning of
i.e:"pjpeg" i want to upload all type of images like
jpeg,bmp,gif etc..,and that image is display in the "image
control" when am click the Button click event...HOW..
       Plz replay ...
Rank Answer Posted By  
 Question Submitted By :: Sree_mca35
I also faced this Question!!   © ALL Interview .com
Answer
Just to polish the topic off,  below are the two files that
have been tested 
on my machine (xp, apache2, php 4.3.9, mysql4.0.1x)

<?php
//show_image.php

require("conn.php");
//check to see if the id is passed
if(isset($_GET['id'])) {
  $id=$_GET['id'];


  $query = "select bin_data, filetype from binary_data where
id=$id";
  //echo $query;
  $result = connect($query);
  $row = mysql_fetch_array($result);
  {
   $data = $row['bin_data'];
   $type = $row['filetype'];
  }
  if ($type=="pjpeg") $type = "jpeg";
  Header( "Content-type: $type");

  echo $data;

}
?>

<?php

// show_desc.php
require("conn.php");

  // you may have to modify login information for your
database server

  $query = "select description, id from binary_data ";
  $result = connect($query);

  while ($rows = MYSQL_FETCH_ARRAY($result))
  {
  echo $rows['description'];
  echo "<br><br>";

  echo "<img src=\"show_image.php?id=".$rows['id']."\">\n";


};
?>

And I used table structure

CREATE TABLE binary_data (
id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY,
description CHAR(50),
bin_data LONGBLOB,
filename CHAR(50),
filesize CHAR(50),
filetype CHAR(50)
);

hth

bastien

>From: Chip Wiegand <chip.wiegand@simrad.com>
>To: bastien_k@hotmail.com
>CC: "PHP DB" <php-db@lists.php.net>
>Subject: RE: [PHP-DB] storing images in database
>Date: Tue, 25 Jan 2005 12:57:40 -0800
>
>"Bastien Koert" <bastien_k@hotmail.com> wrote on 01/25/2005
12:46:12 PM:
>
> > yes goes back to the whole header problem which is why
you are here.
> >
> > If you could post the code, it would be simpler to help
you...
> >
> > Bastien
>
>This is in the main page -
><?
>printf("<p><img src=\"image-src.php?id=$id\" alt=\"hotspot
>images\">%s</p>", $row["text"]);
>?>
>and this is in a new included page -
><?
>if($_GET['id']) {
>$id = $_GET['id'];
>$query = "select * from hotspots where id=$id";
>$result = @MYSQL_QUERY($query);
>
>$data = @MYSQL_RESULT($result,0,"image");
>$type = @MYSQL_RESULT($result,0,"type");
>
>Header( "Content-type: $type");
>echo $data;
>};
>?>
>The database connection statements are in an include file
called at the
>top of the main page. In the first statement shown above
the alt text for
>the image appears on the web page just fine, the image
itself shows a
>broken image icon. FWIW, I have the image stored in the
database in a blob
>field, is that correct?
>--
>Chip
>
> > >From: Chip Wiegand <chip.wiegand@simrad.com>
> > >To: bastien_k@hotmail.com
> > >Subject: RE: [PHP-DB] storing images in database
> > >Date: Tue, 25 Jan 2005 12:44:44 -0800
> > >
> > >"Bastien Koert" <bastien_k@hotmail.com> wrote on
01/25/2005 12:39:15
>PM:
> > >
> > > > Its not src='id=$id'> that will defnintely blow up....
> > > >
> > > > echo '<img src="./path/to/image.php?id=$id">';
> > > >
> > > > where $id is the id of the record you are trying to
get the image
>to...
> > > >
> > > > Bastien
> > >
> > >So the code has to be a seperate included page I guess?
> > >--
> > >Chip
> > >
> > > > >From: Chip Wiegand <chip.wiegand@simrad.com>
> > > > >To: bastien_k@hotmail.com
> > > > >CC: php-db@lists.php.net
> > > > >Subject: RE: [PHP-DB] storing images in database
> > > > >Date: Tue, 25 Jan 2005 12:37:15 -0800
> > > > >
> > > > >Thanks Bastien,
> > > > >In testing this I have added the code samples to a
page and have it
> > > > >working except the path statement is not correct.
For now, I've
>just
> > >added
> > > > >all the code to one page, rather than including a
second page. The
> > > > >statement - echo '<img src="id=$id">'; is resulting
in this error -
>The
> > > > >requested URL /id=$id was not found on this server. Any
>suggestions?
> > > > >Thanks,
> > > > >Chip
> > > > >
> > > > >"Bastien Koert" <bastien_k@hotmail.com> wrote on
01/25/2005
>09:45:39
> > >AM:
> > > > >
> > > > > > the best way to do this is to move the image
processing code to
>a
> > > > >separate
> > > > > > page and include it like this
> > > > > >
> > > > > > echo '<img src="./path/to/image.php?id=$id">';
> > > > > >
> > > > > > then the image page looks like this:
> > > > > > <?php
> > > > > >
> > > > > > if($_GET['id']) {
> > > > > > $id = $_GET['id'];
> > > > > > // you may have to modify login information for
your database
> > >server:
> > > > > > @MYSQL_CONNECT("localhost","root","password");
> > > > > >
> > > > > > @mysql_select_db("binary_data");
> > > > > >
> > > > > > $query = "select bin_data,filetype from
binary_data where
>id=$id";
> > > > > > $result = @MYSQL_QUERY($query);
> > > > > >
> > > > > > $data = @MYSQL_RESULT($result,0,"bin_data");
> > > > > > $type = @MYSQL_RESULT($result,0,"filetype");
> > > > > >
> > > > > > Header( "Content-type: $type");
> > > > > > echo $data;
> > > > > >
> > > > > > };
> > > > > > ?>
> > > > > >
> > > > > > bastien
> > > > > >
> > > > > >
> > > > > >
> > > > > > >From: Chip Wiegand <chip.wiegand@simrad.com>
> > > > > > >To: "PHP DB" <php-db@lists.php.net>
> > > > > > >Subject: [PHP-DB] storing images in database
> > > > > > >Date: Tue, 25 Jan 2005 09:11:07 -0800
> > > > > > >
> > > > > > >I have stored a .jpg image in a database, then
when I make a
>sql
> > > > >statement
> > > > > > >to display that image on a web page all I get
is the cryptic
>code
> > >in
> > > > >place
> > > > > > >of the image. I am storing it in a row
configured as a blob,
>mime
> > >type
> > > > > > >image/jpeg and binary (using phpMyAdmin). What
am I doing
>wrong?
> > > > > > >Regards,
> > > > > > >Chip
> > > > > > >
> > > > > > >--
> > > > > > >PHP Database Mailing List (http://www.php.net/)
> > > > > > >To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > PHP Database Mailing List (http://www.php.net/)
> > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 
0
Vinod Patil
 
 
Answer
firstly img convert to binery and which uesd in file stream 
and read the file access mode and again you covert the img 
in bytes and again used in file stream and write and 
retrive the img and you upload all type img in very easly
 
0
Vikaskaundal40@gmail.com
[MatSoft]
 
 
Question
What is Managerial Grid? Contract its approach to leadership
with the approaches of the Ohio state and Michigan groups.
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
MANAGERRIAL GRID
1.   Blake and Mouton proposed a managerial grid based on
the styles of “concern for people” and “concern for
production,” which essentially represent the Ohio State
dimensions of consideration and initiating structure or the
Michigan dimensions of employee-oriented and
production-oriented.	

D.	 The Managerial Grid (cont.)	Notes:
2.   The grid has nine possible positions along each axis,
creating 81 different positions. (See Exhibit 11-1).

3.   The grid shows the dominating factors in a leader’s
thinking in regard to getting results.

4.   Based on the findings of Blake and Mouton, managers
were found to perform best under a 9,9 style, as contrasted,
for example, with a 9,1 (authority type) or 1,9
(lassiez-faire type) style. Unfortunately, the grid offers a
better framework for conceptualizing leadership style than
for presenting any tangible new information.
	
OHIO STATE:
1.   The most comprehensive and replicated of the behavioral
theories resulted from research that began at Ohio State
University in the late 1940s. These researchers sought to
identify independent dimensions of leader behavior.  

2.They narrowed over a thousand dimensions into two
dimensions—initiating structure and consideration.

3.Initiating structure refers to the extent to which a
leader is likely to define and structure his/her role and
those of employees in the search for goal attainment.	


A.  The Ohio State Studies (cont.)
	Notes:
.It includes attempts to organize work, work relationships,
and goals. 

.The leader high in initiating structure could be described
as someone who “assigns group members to particular tasks,”
“expects workers to maintain definite standards of
performance,” and “emphasizes the meeting of deadlines.”

4.Consideration is described as “the extent to which a
person is likely to have job relationships that are
characterized by mutual trust, respect for employees’ ideas,
and regard for their feelings.”

•The leader shows concern for followers’ comfort,
well-being, status, and satisfaction. 

.A leader high in consideration could be described as one
who helps employees with personal problems, is friendly and
approachable, and treats all employees as equals.

5.Leaders high in initiating structure and consideration
tended to achieve high employee performance and satisfaction. 

.The “high-high” style did not always result in positive
consequences. 

.Leader behavior characterized as high on initiating
structure led to greater rates of grievances, absenteeism,
and turnover, and lower levels of job satisfaction for
routine tasks. 
.High consideration was negatively related to performance
ratings of the leader by his/her superior.

	University of Michigan Studies

1.   Leadership studies were undertaken at the same time as
those being done at Ohio State, with similar research
objectives. They discovered two dimensions of leadership
behavior—employee-oriented and production-oriented.

2.   Employee-oriented leaders emphasized interpersonal
relations.  They took a personal interest in the needs of
their employees and accepted individual differences among
members. 

3.   The production-oriented leaders tended to emphasize the
technical or task aspects of the job—group members were a
means to that end.

4.   Michigan researchers’ conclusions strongly favored the
leaders who were employee oriented. Employee-oriented
leaders were associated with higher group productivity and
higher job satisfaction. 

5.   Production-oriented leaders tended to be associated
with low group productivity and lower job satisfaction.
 
0
Babloo Kumar
 
 
Question
How to find out syntax error by manual testing
Rank Answer Posted By  
 Question Submitted By :: Ruchi_keily
I also faced this Question!!   © ALL Interview .com
Answer
synatax is a schematic representation of a certain code of a
particular language.
just try knowing the basics of that language code to avoid
grave mistakes in coding.thats the first step.next run a
code walkthrough to see manually if there is any runtime error.
 
0
Sunnyefg
 
 
Answer
we have to apply white box testing techniques
 
0
Smriti
[HTSS]
 
 
Answer
Restart the pc problem solved.
 
0
Bhavik
[HTSS]
 
 
Question
Hi Everyone, I used VB.net until last year, this year I
change my language to C#.net.But the easy one in VB.net such
as "Set as Start page when running program", right click on
solution explorer and do it. But in C#.net I can't find the
way to do (Set as start page)until now. If anyone know it ,
please share your technical help. Thanks . (Horace Trever)
Rank Answer Posted By  
 Question Submitted By :: Horacetrever
I also faced this Question!!   © ALL Interview .com
Answer
if u r working on vs 2005 and so on u can find those 
options also

there is no much difference between c# and vb.
 
0
Gyany
 
 
Answer
hii ,
 seting the start page  in web applications is similar
to any programming language(c#  ,vb.net) you use with 
asp.net.

just go to solution explorer  an go to the desired 
page ,right click on it  and an option appears  "set as 
start page".click on it.


if u are working with windows applications in C#  then u 
wil NOT find the option like set as start page.


steps.....
goto program.cs

static void Main()
{
Application.Run(new form1());
}

suppose you want to setpage for form2.Change the coding 
following

static void Main()
{
Application.Run(new form2());
 
0
Kishore Ganti
[KMD]
 
 
Answer
C#.net in winforms,go to program.cs file and there write as
like this
          
               static void main()
                  {
                     Application.Run(new desiredformname());
                  }
 
0
Sree_mca35
[KMD]
 
 
Answer
if u are using asp.net with c# and creating window 
applications.do the followig step
goto program.cs // in solution explorer and open it
static void Main()
{
Application.Run(new form1());
}

suppose you want to setpage for form2.Change the coding 
following

static void Main()
{
Application.Run(new form2());
 
0
Sanjay
[KMD]
 
 
Question
Hi everyone, I got some problem this week. I don't know the
coding for "Linklabel" in C#.net. In ASP.net, I use it
"Response.Redirect" and "Server.Transfer" and I also can use
hyperlink. When offline I use "linklabel", Now I still write
by "System.Dianogstic", It still showing error and can't
reach my dedicated page(Means design page). So if anyone
know it, please share your technical help. Thanks (Horace
Trever)
Rank Answer Posted By  
 Question Submitted By :: Horacetrever
I also faced this Question!!   © ALL Interview .com
Answer
Add a LinkLabel to a Form manually 
The MSDN page for the LinkLabel control has the following 
example showing how to add a LinkLabel to a Form. 
private LinkLabel linkLabel1;
 
public Form1()
{
  CreateMyLinkLabel();
}
 
public void CreateMyLinkLabel()
{
  // Create the LinkLabel.
  linkLabel1 = new LinkLabel();
  
  // Configure the LinkLabel's size and location. Specify 
that the
  // size should be automatically determined by the content.
  this.linkLabel1.Location = new System.Drawing.Point(34, 
56);
  this.linkLabel1.Size = new System.Drawing.Size(224, 16);
  this.linkLabel1.AutoSize = true;
 
  // Configure the appearance. 
  // Set the DisabledLinkColor so that a disabled link will 
show up against
  // the form's background.
  this.linkLabel1.DisabledLinkColor = 
System.Drawing.Color.Red;
  this.linkLabel1.VisitedLinkColor = 
System.Drawing.Color.Blue;
  this.linkLabel1.LinkBehavior = 
System.Windows.Forms.LinkBehavior.HoverUnderline;
  this.linkLabel1.LinkColor = System.Drawing.Color.Navy;
  
  this.linkLabel1.TabIndex = 0;
  this.linkLabel1.TabStop = true;
  
  // Add an event handler to do something when the links 
are clicked.
  this.linkLabel1.LinkClicked +=
    new LinkLabelLinkClickedEventHandler
(this.linkLabel1_LinkClicked);
 
  // Identify what the first Link is.
  this.linkLabel1.LinkArea = new 
System.Windows.Forms.LinkArea(0, 8);
 
  // Identify that the first link is visited already.
  this.linkLabel1.Links[0].Visited = true;
  
  // Set the Text property to a string.
  this.linkLabel1.Text = "Register Online.  Visit 
Microsoft.  Visit MSN.";
 
  // Create new links using the Add method of the 
LinkCollection class.
  // Underline the appropriate words in the LinkLabel's 
Text property.
  // The words 'Register', 'Microsoft', and 'MSN' will 
  // all be underlined and behave as hyperlinks.
 
  // First check that the Text property is long enough to 
accommodate
  // the desired hyperlinked areas.  If it's not, don't add 
hyperlinks.
  if (this.linkLabel1.Text.Length >= 45)
  {
    this.linkLabel1.Links[0].LinkData = 
this.linkLabel1.Text.Substring(0, 8);
    this.linkLabel1.Links.Add(24, 9, "www.microsoft.com");
    this.linkLabel1.Links.Add(42, 3, "www.msn.com");
    //  The second link is disabled and will appear as red.
    this.linkLabel1.Links[1].Enabled = false;
  }
 
  this.Controls.Add(linkLabel1);
}
 
private void linkLabel1_LinkClicked(object sender, 
LinkLabelLinkClickedEventArgs e)
{
  // Determine which link was clicked within the LinkLabel.
  this.linkLabel1.Links[linkLabel1.Links.IndexOf
(e.Link)].Visited = true;
 
  // Display the appropriate link based on the value of the 
  // LinkData property of the Link object.
  string target = e.Link.LinkData as string;
 
  // If the value looks like a URL, navigate to it.
  // Otherwise, display it in a message box.
  if (null != target && target.StartsWith("www"))
  {
    System.Diagnostics.Process.Start(target);
  }
  else
  {
    MessageBox.Show("Item clicked: " + target);
  }
}




try this one if it relates
 
0
Kishore Ganti
 
 
 
Back to Questions Page
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright © 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com