u use now listbox1.selecteditem.text fine sure work now
Prabhakar Parihar
Posts
-
listBox selected values -
Error Message While Opening a PageI think u not provided your InitializeCulture controls server tag...... may be check now
-
how to save value in Ms Access using asp.net 2.0 C#This code useful for u.. firstly add tag in web config
After then
Pro = ConfigurationManager.AppSettings["ConnectionStrings"].ToString();
MyPath = ConfigurationManager.AppSettings["dbfile"].ToString();
Conns = String.Format(Pro, HttpContext.Current.Server.MapPath(MyPath));
con = new OleDbConnection(Conns);
con.Open();
string st = "Madhaya Pradesh";
string qql = "INSERT into Registration(UniqueID,Name,FName,DOB,TMarks,OMarks,PMarks,PClass,PLine,Board,District,Division,Category,Sex,PChallange,Address,Pin,RDistrict,State,Phone,SchoolAddress,SchoolPincode,SchoolDistrict) values('" + lbluniquid.Text + "','" + txtname.Text + "','" + txtfathername.Text + "','" + tbMyDate.Text + "'," + txttotalmarks.Text + "," + txtobtainmarks.Text + "," + p + ",'" + rdpresent.SelectedItem.Text + "','" + rdpovertyline.SelectedItem.Text + "','" + rdboard.SelectedItem.Text + "','" + ddldistrict.SelectedItem.Text + "','" + lbldivision.Text + "','" + rdcategory.SelectedItem.Text + "','" + rdsex.SelectedItem.Text + "','" + rdphysically.SelectedItem.Text + "','" + txtaddress.Text + "','" + txtpincode.Text + "','" + ddldistrict1.SelectedItem.Text + "','" + st + "','" + txtcontact.Text + "','"+ txtschooladdress.Text +"','"+ txtschoolpincode.Text +"','"+ ddldistrict2.SelectedItem.Text +"')";
cmd = new OleDbCommand(qql, con);
int res;
res = cmd.ExecuteNonQuery();
res = 1;
con.Close(); -
web.configI think this is code useful for u
Sure It's work prabhakar......
modified on Saturday, September 19, 2009 4:29 AM
-
web.config[Message Deleted]
-
Question about tag : <form> and runat="server".</form>i think you use your script tag in between tag editor_generate('yourFieldNameHere'); May be try then firt is not reponse well editor_generate('yourFieldNameHere'); Prabhkar
-
how to save value in Ms Access using asp.net 2.0 C#Firstly u add <appSettings> tag in web config file attach data base <appSettings> <add key="ConnectionStrings" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source={0}"/> <add key="dbfile" value="~/App_Data/data.mdb"/> </appSettings> then after Pro = ConfigurationManager.AppSettings["ConnectionStrings"].ToString(); MyPath = ConfigurationManager.AppSettings["dbfile"].ToString(); Conns = String.Format(Pro, HttpContext.Current.Server.MapPath(MyPath)); con = new OleDbConnection(Conns); con.Open(); string st = "Madhaya Pradesh"; string qql = "INSERT into Registration(UniqueID,Name,FName,DOB,TMarks,OMarks,PMarks,PClass,PLine,Board,District,Division,Category,Sex,PChallange,Address,Pin,RDistrict,State,Phone,SchoolAddress,SchoolPincode,SchoolDistrict) values('" + lbluniquid.Text + "','" + txtname.Text + "','" + txtfathername.Text + "','" + tbMyDate.Text + "'," + txttotalmarks.Text + "," + txtobtainmarks.Text + "," + p + ",'" + rdpresent.SelectedItem.Text + "','" + rdpovertyline.SelectedItem.Text + "','" + rdboard.SelectedItem.Text + "','" + ddldistrict.SelectedItem.Text + "','" + lbldivision.Text + "','" + rdcategory.SelectedItem.Text + "','" + rdsex.SelectedItem.Text + "','" + rdphysically.SelectedItem.Text + "','" + txtaddress.Text + "','" + txtpincode.Text + "','" + ddldistrict1.SelectedItem.Text + "','" + st + "','" + txtcontact.Text + "','"+ txtschooladdress.Text +"','"+ txtschoolpincode.Text +"','"+ ddldistrict2.SelectedItem.Text +"')"; cmd = new OleDbCommand(qql, con); int res; &nbs
-
How to Find Website Visitor Noit's very easy process you may go now this url http://www.amazingcounters.com And Chose Your Visitor Counter Designed & Copy the code or Add ur Site master page...................
-
Behaviour of HTML/ASP controls in Master pageIn Asp .net set the Text Box property EnableViewState="false" then ur prob are solve.........