User Profile
Collapse
-
If MessageBox("Are You Sure to Close", vbquestion + vbyesno + vbdefaultbutton 2,"Confirmation ")=vbno then exit sub -
But, the first line of your code....
----ReceiveForm----
SendForm f = new SendForm();
Is this not creating an instance of SendForm in the ReceiveForm??Leave a comment:
-
You did not write the definition of connect function that you are using.
Probably the return type of it may not be same as that of the con (SqlConnection)Leave a comment:
-
Try this:
oCmd.CommandTex t = String.Format(" Insert into Information(Fir st_Name, Last_Name) Values ( '" + Firstname + "', '" + Secondname + "')")
or
oCmd.CommandTex t = String.Format(" Insert into Information(Fir st_Name, Last_Name) Values ('{0}','{1}'", Firstname , Secondname)Leave a comment:
-
Here is a nice article
http://www.csc.calpoly .edu/~dbutler/tutorials/winter96/patterns/Leave a comment:
-
UNSAFE code is the code that is not CLR complaint. Such code is out of Common Language Runtime control. Example for it is: using PointersLeave a comment:
-
Stored Proc: is as good as a procedure in programing languages and returns nothing. But, you can return values using out/inout parameters. Cannot be used within a select statement
Function: returns a value. Can be used within a select statement.
View: Logical Snapshot of the tableLeave a comment:
-
Suppose your webservice looks like:
public class Service1 : System.Web.Serv ices.WebService
{
[WebMethod]
public double GetInterest(dou ble Principle, double ROI, double NoOfYrs)
{
return ((Principle * ROI * NoOfYrs)/100);
}
}
Now, to use this method in your aspx page, you have to do something like this:...Leave a comment:
-
string[] imgs = Directory.GetFi les("E:\\Projec ts\\Banking\\Im ages", "*.jpg");
foreach (string img in imgs)
ImageButton1.Im ageUrl = img ;
The above code is working fine.... I am not able to reproduce your problem.Leave a comment:
-
One simple (may be silly as well) question.
Can you modify the below line
string add = Server.MapPath( "pics//horses//");
as
string add = Server.MapPath( "pics\\horses\\ ");
and see what happens?
:)Leave a comment:
-
protected void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
Image1.ImageUrl = Server.MapPath( "..\\Images\\Ba nkName.JPEG");
}
I did this way and it is working. Please tell me if I am misinterpreting the question.Leave a comment:
-
Page.Response.R edirect(@"myFol der\WelcomePage .aspx");
or
Page.Response.R edirect("myFold er\\WelcomePage .aspx");Leave a comment:
-
tab control is available in c#.
this.tabControl 1 = new System.Windows. Forms.TabContro l();
You can find TabControl on the toolbox.
Here is an article on it
http://www.c-sharpcorner.com/UploadFile/mahesh/TabControlTutor ial113020052358 35PM/TabControlTutor ial.aspxLeave a comment:
-
Page.Response.R edirect(@"Dir1\ Dir2\Mypage.asp x")
or
Page.Response.R edirect("Dir1\\ Dir2\\Mypage.as px")Leave a comment:
-
public static void LoadCombo(DropD ownList cmb,string KeyCodeColumn,s tring KeyNameColumn,s tring TableName,DataS et ds)
{
cmb.Items.Clear ();
foreach (DataRow dr in ds.Tables[TableName].Rows)
{
ListItem ls = new ListItem(dr[KeyNameColumn].ToString().Tri m());
if (KeyCodeColumn != "")
ls.Value = dr[KeyCodeColumn].ToString().Tri m();
cmb.Items.Add(l s);
...Leave a comment:
-
-
-
How To write a query to get all Names without starting with an alphabet
I want to write a query on emp database, where the First character of empname should not be a letter. i.e., it can either be a number or special character. -
You need to create xsd file for the xml file that you have.
in VS.NET environment, open the XML file and right click on any part of the data. You can see "Create Schema" Option there. Click on that and VS will create an xsd file for you. Only thing you need to do is change the second line of your xml file as
<countries xmlns="http://tempuri.org/testFile1.xsd">
Following method can be...Leave a comment:
-
what error, are you getting and when are you getting?while populating dataset ? or after populating it?Leave a comment:
No activity results to display
Show More
Leave a comment: