n i want to split that string on occurence of any alphabets
myinstincts
Posts
-
breaking a string to substrings -
breaking a string to substringsi am having a string ,say"14p"....I want to take only the value 14 so that i could convert that to integer..how can i achieve this?
-
Selecting from datatableI want to select "FullName","EmployeeNumber" from the datatable 'results' ..The selection should be based on some conditions like date=some date....Can anybody tell how to achieve this???
-
command returning null valuestring connection = ConfigurationManager.AppSettings["connectionstring"]; SqlConnection con = new SqlConnection(connection); con.Open(); SqlCommand cmd = new SqlCommand("select place_name from place inner join state on place.state_id=state.state_id where state_name ='" + statedpdwnlist.SelectedItem.Value + "'", con); dr = cmd.ExecuteReader(); con.close(); I cannot figure out why the above command is returning null value eventhough it is giving the desired output whn the same command is run on sql server query analyser.Can anybody help me with this??????( statedpdwnlist.SelectedItem.Value is coming correct in the query)
-
break point not workinghi navaneeth,i was also readin the same..but how to find your project's dll????????like i am able to see the modules,but i dnt know how to find out which is your projects dll
-
break point not workinghi, can anybody tell why i am getting this message for a partticular web page-'The breakpoint will not currently be hit. No symbols have been loaded for this document' ????But the break points are working fine in other pages
-
calendar pop up on onfocus event of textboxcan anybody tell how to get a calender popup on onfocus event of textbox????????I searched a lot...but everywhere it is mentioned in connection with javascript and ajax..n i am not familiar with both
-
frames in asp.neti want my web page to appear like this:a list of references in left side,and when each reference is clicked the corresponding web page to be loaded on the right side(n user should still be able to see the reference menu)..I found out that there is something called frames in html.but it is giving the error as 'frameset' is not supported. <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Leave_procedure</title> </head> <frameset cols="150,*"> <frame src="default.aspx" name="menu" > <frame src="registration.aspx" name="main" ></frameset> </html> Above is my .aspx page.n is there any alternative to attain my objective???bcoz i found somebody quoting in a site that frames are the product of dark ages:confused::confused::confused:
-
syntax errorthis is the first time i am hearing of anything like parameterized query and sql injection problem...thanks for those valuable informations...i will try with those then
-
syntax errori am inserting values of useridtxtbx and pwdtxtbx to database on submitbtn_click.Insert statement is not showing error while debugging ..but when the program runs it is giving syntax error..Below is my code protected void submitbtn_Click(object sender, EventArgs e) { OleDbConnection con= new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source = C:\\Documents and Settings\\swuser\\My Documents\\Clinical_Billing.mdb;" ); con.Open(); OleDbCommand cmd = new OleDbCommand("insert into user_login(user_id,password) values('" + useridtxtbx.Text + "','" + pwdtxtbx.Text + "'", con); cmd.ExecuteNonQuery(); con.Close(); }
-
<font> tag become obsolete</font>i used the font tag
-
<font> tag become obsolete</font>while i was developing an application in asp.net i got the warning message as "Validation (XHTML 1.0 Transitional): Element 'font' is considered outdated. A newer construct is recommended" what is the alternative for this?
-
image in ASP.Netadd in your project folder the image and in the image url of the image control properties give that path
-
edit property of data gridview controlI dnt knw what code is to be written inside the row editing event...i had read in sme other article that just enabling the row_editing event will be sufficient.... Here my datasource is datatable..and the gridview rows are databound..is it needed to convert those rows to some controls like textbox to enable edit property?
-
edit property of data gridview controli've set the property of edit in data gridview control..but why it is not working???The fields in my data gridview are databound....Any particular property i am missing?????????
-
object typeconversion syntax errorBelow is the code written in row editing event of data gridview(in assumption that row editing can only be done if some control like textbox is there) (TextBox)(GridView2.Rows[0].Cells [2]) = "a"; But is this syntax of object conversion correct?It is giving error as system cannot convert type string to system.web.ui.webcontrols
-
Scroll bar in data gridviewi am getting it by setting overflow :auto style in panel...but what is that overflow-x and overflow-y in your code?is it for setting scrollbar to x and y axis?
-
Scroll bar in data gridviewNo..it is coming now...thanks arun
-
Scroll bar in data gridviewi placed the gridview inside the panel and set overflow: auto in panel style.But the scroll bar is coming for the whole page as such :(
-
Scroll bar in data gridviewis it possible to add scrollbar to a datagridview???