Click here to Skip to main content
15,921,622 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionVS 2008 - Error when running VB 2008, "cannot be modified at this time" Pin
Central_IT13-Jan-10 0:02
Central_IT13-Jan-10 0:02 
AnswerRe: VS 2008 - Error when running VB 2008, "cannot be modified at this time" Pin
David Skelly13-Jan-10 1:41
David Skelly13-Jan-10 1:41 
GeneralRe: VS 2008 - Error when running VB 2008, "cannot be modified at this time" Pin
Central_IT13-Jan-10 1:42
Central_IT13-Jan-10 1:42 
GeneralRe: VS 2008 - Error when running VB 2008, "cannot be modified at this time" Pin
Not Active13-Jan-10 9:07
mentorNot Active13-Jan-10 9:07 
GeneralRe: VS 2008 - Error when running VB 2008, "cannot be modified at this time" Pin
The Man from U.N.C.L.E.14-Jan-10 6:58
The Man from U.N.C.L.E.14-Jan-10 6:58 
GeneralRe: VS 2008 - Error when running VB 2008, "cannot be modified at this time" Pin
The Man from U.N.C.L.E.14-Jan-10 7:02
The Man from U.N.C.L.E.14-Jan-10 7:02 
GeneralRe: VS 2008 - Error when running VB 2008, "cannot be modified at this time" Pin
Central_IT14-Jan-10 22:00
Central_IT14-Jan-10 22:00 
QuestionUnable to connect with data base Pin
guess098512-Jan-10 0:03
guess098512-Jan-10 0:03 
I have made a registration form after filling the form and submitting sometimes it inserts record in data base and sometimes it says file not found (error 404).why is this happening.... Plz help?
site url http://www.enefinder.com/registration.aspx
My code

try
{
int flg = 0;
SqlConnection cn = new SqlConnection("Data Source=server name;Initial Catalog=enefinde_memb;Persist Security Info=True;User ID=user name;Password=password");
String sql = "select * from regmember where email='" + txtEmail.Text + "'";
cn.Open();
SqlCommand cmd = new SqlCommand(sql, cn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Response.Write("User name already exist Please Try Another One");
flg = 0;
}
else
{
flg = 1;
}

dr.Close();

if (flg == 1)
{
sql = "insert into regmember(enename,email,password,keyquestion,answer,address,city,state,country,perphone,mobile,cname,activity,yearofstarting,noofemp,location,website,phone)values('" + txtFname.Text + " " + txtMname.Text + " " + txtLname.Text + "','" + txtEmail.Text + "','" + txtPass.Text + "','" + ddlQuestion.Text + "','" + txtAns.Text + "','" + txtAdd.Text + "','" + txtCity.Text + "','" + txtState.Text + "','" + ddlCountry.Text + "','" + txtPerphone.Text + "','" + txtMob.Text + "','" + txtCname.Text + "','" + ddlAct.Text + "','" + txtStart.Text + "','" + ddlNoemp.Text + "','" + ddlCcountry.Text + " " + txtCstate.Text + " " + txtCcity.Text + "','" + txtWebsite.Text + "','" + txtPhone.Text + "' )";
cmd.CommandText = sql;
cmd.Connection = cn;
int i = cmd.ExecuteNonQuery();
if (i > 0)
Response.Write("Record Inserted");
//Response.Redirect("registration.aspx");
else
Response.Write("Not Inserted");
}

cn.Close();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}




}
}
AnswerRe: Unable to connect with data base Pin
Eddy Vluggen12-Jan-10 8:06
professionalEddy Vluggen12-Jan-10 8:06 
Questionusing the contol.paint event Pin
Martin Beukes11-Jan-10 9:39
Martin Beukes11-Jan-10 9:39 
AnswerRe: using the contol.paint event Pin
Luc Pattyn11-Jan-10 9:54
sitebuilderLuc Pattyn11-Jan-10 9:54 
GeneralRe: using the contol.paint event Pin
Martin Beukes11-Jan-10 11:29
Martin Beukes11-Jan-10 11:29 
GeneralRe: using the contol.paint event !!! MODIFIED AGAIN !!! Pin
Luc Pattyn11-Jan-10 11:34
sitebuilderLuc Pattyn11-Jan-10 11:34 
GeneralRe: using the contol.paint event !!! MODIFIED AGAIN !!! Pin
Martin Beukes11-Jan-10 12:20
Martin Beukes11-Jan-10 12:20 
GeneralRe: using the contol.paint event Pin
Luc Pattyn11-Jan-10 12:38
sitebuilderLuc Pattyn11-Jan-10 12:38 
GeneralRe: using the contol.paint event Pin
Martin Beukes11-Jan-10 12:49
Martin Beukes11-Jan-10 12:49 
GeneralRe: using the contol.paint event Pin
Luc Pattyn11-Jan-10 12:56
sitebuilderLuc Pattyn11-Jan-10 12:56 
AnswerRe: using the contol.paint event Pin
DaveyM6911-Jan-10 10:39
professionalDaveyM6911-Jan-10 10:39 
QuestionDeployment / Permissions for control embedded in a web page Pin
sitruc711-Jan-10 5:19
sitruc711-Jan-10 5:19 
AnswerRe: Deployment / Permissions for control embedded in a web page Pin
Eddy Vluggen13-Jan-10 8:26
professionalEddy Vluggen13-Jan-10 8:26 
QuestionAccess data in a remote server Pin
jonatan_55611-Jan-10 1:39
jonatan_55611-Jan-10 1:39 
AnswerRe: Access data in a remote server Pin
dan!sh 11-Jan-10 3:39
professional dan!sh 11-Jan-10 3:39 
GeneralRe: Access data in a remote server Pin
jonatan_55611-Jan-10 4:08
jonatan_55611-Jan-10 4:08 
QuestionDesig VB.net Table Pin
Thomas O'Donoghue10-Jan-10 1:51
Thomas O'Donoghue10-Jan-10 1:51 
AnswerRe: Desig VB.net Table Pin
Ashfield10-Jan-10 5:43
Ashfield10-Jan-10 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.