Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
69% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
6
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
6 Commented Posts
0 Endorsements
Ranked #372
~45.4K People Reached
About Me

Hi i am saion from Bangladesh. 5+ years experience in web application arena. I love to code in asp.net & sql server. Always try to learn & share.

Interests
Travelling
PC Specs
Intel Core 2 Duo
Favorite Tags

188 Posted Topics

Member Avatar for eedirex

First visit few related sites then gather experience. Now point out options that you think you are capable to do it. Now cretate a rough proposal & discuss with your lecturer. After finalizing your requirement get back to us. Hope you will get a lot of expert people here.

Member Avatar for Theirligh
0
320
Member Avatar for anup.maverick

Yes you can follow the steps that iamchamith said. After getting individaul email then you can validate those from the following URL: [url]http://shawpnendu.blogspot.com/2009/04/cross-browser-javascript-aspnetc-email.html[/url] This will just check the input format. If you are looking to test that email id really exist or not then you can try with VRFY(most mail …

Member Avatar for bru moses
0
1K
Member Avatar for cplusplusgeek

HI TRY WITH MY BELOW SAMPLE CODE: [CODE] CREATE PROCEDURE PROCNAME @CountryId integer , @CountryName VARCHAR(200) , @nType integer AS BEGIN IF @nType=1 INSERT INTO Country VALUES(@CountryId,@CountryName); ELSE IF @nType=2 UPDATE Country SET CountryName=@CountryName WHERE CountryId=@CountryId; ELSE IF @nType=0 DELET FROM Country WHERE CountryId=@CountryId END [/CODE] NOW RUN BY BELOW …

Member Avatar for Reverend Jim
0
2K
Member Avatar for pdoyle1521

Yes i guess the problem is in where clause of your update code. Check that query string returned customer id exist in your database.

Member Avatar for bilal maverick
0
1K
Member Avatar for Ashoksql

FIRST RUN THE COMPLETE SQL THEN CHECK THE OUTPUT. THEN GO FOR MODIFICATION. [CODE] Create Table ##helpfile (dbname varchar(100), name varchar(100), FileId int, Filename varchar(100), Filegroup varchar(50), Size varchar(20), maxsize varchar(20), growth varchar(20), usage varchar(20)) Create Table ##filestats (Fileid int, FileGroup int, TotalSpace int, UsedSpace int, FreeSpace int, Name varchar(100), …

Member Avatar for mikemsq
0
116
Member Avatar for Sarah Lee

JUST ADD THE EmptyDataText PROPERTY IN THE FOLLOWING WAY: [code] <asp:GridView runat="server" ID="gvCaseDetail" Width="100%" EmptyDataText="there is no data for this request" ...................................... [/code] YOU CAN ALSO RENDER HTMEL TEXT LIKE: [code] <asp:GridView runat="server" ID="gvCaseDetail" Width="100%" EmptyDataText="<table cellspacing=1 cellpadding=4 rules=rows border=0 style=color:Black;font-family:Tahoma;font-size:1em;width:730px;border-collapse:collapse;><tr style=color:Black;background-color:#00BFFF;font-weight:bold;><th scope=col>Case ID</th><th align=center scope=col>Subject</th><th align=center scope=col>Status</th><th align=center scope=col>Date</th><th …

Member Avatar for egrullard
1
2K
Member Avatar for RobertKramers

CHECK THAT YOUR ID CONTAINS A VALUE OR NOT. I THINK YOUR ID DOES NOT CONTAIN VALUE... So THAT YOUR QUERY WILL BE LIKE WHERE ...= SO WHEN YOU EXECUTE THE QUERY GETS THIS ERROR.

Member Avatar for samuelmac
0
3K
Member Avatar for Eclipse414

TRY WITH MY BELOW EXAMPLE. HOPE IT WILL HELP YOU. VB.NET: [Code=VB] Dim sClause as String Dim drItems() as DataRow sClause = "Price > 50" drItems = dsPrepopulatedDBData.Tables(0).Select(sClause) [/Code] C#.NET [CODE=C#] DataRow[] drItems = dtPrepopulatedDBData.Select( "Price > 50", "" ); [/CODE]

Member Avatar for awaishafeez86
0
152
Member Avatar for Annex

HI, HOPE THE BELOW LINK WILL HELP READERS A LOT FOR CROSS-BROWSER NUMERIC VALIDATION: [URL="http://shawpnendu.blogspot.com/2009/03/cross-browser-javascript-isnumeric.html"]http://shawpnendu.blogspot.com/2009/03/cross-browser-javascript-isnumeric.html[/URL]

Member Avatar for risingsunankur
0
574
Member Avatar for teckforce
Member Avatar for Kayoss

HI, You can try with my below post. Hope it will help you. [url]http://shawpnendu.blogspot.com/2009/04/disable-right-mouse-clickimage.html[/url]

Member Avatar for fxm
0
422
Member Avatar for julseypart

BETTER YOU VISIT: [url]http://www.highoncoding.com/Articles/205_Searching_Inside_the_GridView_Control.aspx[/url]

Member Avatar for kvprajapati
0
204
Member Avatar for shruti patel

To upload file into server follow the below sample code: [code] protected void cmd_Upload_Click(object sender, EventArgs e) { string s_Image_Name = txt_Image_Name.Text.ToString(); if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "") { byte[] n_Image_Size = new byte [FileUpload1.PostedFile.ContentLength]; HttpPostedFile Posted_Image = FileUpload1.PostedFile; Posted_Image.InputStream.Read(n_Image_Size, 0, (int)FileUpload1.PostedFile.ContentLength); SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["TestConnection"].ConnectionString); SqlCommand …

Member Avatar for mail2saion
-1
109
Member Avatar for Pari13

Just declare those variables at the top of the page_load method or just below the partial class of your aspx.cs file. Then you will use those variables into the aspx page.

Member Avatar for kvprajapati
0
5K
Member Avatar for santhoshvkumar
Member Avatar for asal80
0
109
Member Avatar for NextCom

I don't think you can do this. I can't understand why your indexing hampered?

Member Avatar for mail2saion
0
92
Member Avatar for ajijacobm

You can read the below post: [URL="http://dotnettipsandtricks.blogspot.com/"]http://dotnettipsandtricks.blogspot.com/[/URL]

Member Avatar for mail2saion
0
76
Member Avatar for geek_till_itMHZ

You can try with below technique: If you use Sql Server Management studio then: open. Connect to the remote server.Right click on the server instance.Select properties. Click Connections.Check to allow remote connections to this server.

Member Avatar for princekool
0
157
Member Avatar for gunnarflax

Replace your javascript function by below one: [code] function boxTicker(formName, boxId){ var box = formName.document.getElementById(boxId); if (box.checked == false){ box.checked = true; alert("Ticked!"); } } [/code]

Member Avatar for gunnarflax
0
253
Member Avatar for kanuri1

for yes checkedchange also set visible to false for requestedby control & viceversa.

Member Avatar for mail2saion
-1
73
Member Avatar for dkuwf
Member Avatar for jibhekar
Member Avatar for mail2saion
0
82
Member Avatar for capiono

You can follow the below sample. [code] update table set item=case when exists() then 1 else 0 end [/code]

Member Avatar for mail2saion
0
189
Member Avatar for gazalec

HI, I THINK YOU WANT TO UPDATE A TBALE BASED ON ANOTHER TABLE IN A SINGLE QUERY. IF SO THEN YOU CAN FOLLOW THE MODEL. HERE I AM TRYING TO GIVE YOU AN EXAMPLE ON HOW YOU CAN DO THIS: [CODE] update TBL1 set TBL1.COL = TBL2.COL2 from TBL1 inner …

Member Avatar for mahmoud_wow
0
238
Member Avatar for 21KristianN

Yes you can't achieve this by using identity column. Better try to generate Id from application end.

Member Avatar for 21KristianN
0
366
Member Avatar for kanuri1
Member Avatar for kanuri1
-1
101
Member Avatar for happyns
Member Avatar for dskumar_85

You need to write a loop through reader. Mostprobably you just read & after that you are doing nothing. Please post your sqlreader full segment.

Member Avatar for mail2saion
0
76
Member Avatar for love_dude1984

Write the below handler for your GridView: [code] protected void gvEdit_PageIndexChanging(object sender, GridViewPageEventArgs e) { gvEdit.PageIndex = e.NewPageIndex; DataTable dtSupplier = (DataTable)ViewState["dtSupplier"]; gvEdit.DataSource = dtSupplier; gvEdit.DataBind(); } [/code]

Member Avatar for mail2saion
0
130
Member Avatar for love_dude1984

I thought that you have use commandargument as an id for that row. Here is a sample code so that you get an idea how one can do this: [code] foreach (GridViewRow oItem in gvListofSources.Rows) { clsDbUtility.ExecuteNonQuery("UPDATE Source SET txtStatus='" + ((DropDownList)oItem.FindControl("cboStatus")).SelectedValue + "' WHERE ID=" + oItem.Cells[0].Text); } [/code] …

Member Avatar for love_dude1984
0
130
Member Avatar for kanuri1

Yes you can use the technique to convert first date in a textual format for displaying & use built in function to get day difference. There are a lot of styles available for converting datetime to string. Please Google if needed.

Member Avatar for Oxiegen
0
282
Member Avatar for BlackhatSEO
Member Avatar for mail2saion
0
115
Member Avatar for kanuri1

Yes you need to format date within your gridview row. Some of the example is given below:| [code] <asp:BoundField DataField="LastDelivery" HeaderText="Recent Delivery" DataFormatString = "{0:y}" HtmlEncode="false"></asp:BoundField> [/code] For more styles you may read: [URL="http://shawpnendu.blogspot.com/2009/04/how-to-format-gridview-rowscolumns-in.html"]http://shawpnendu.blogspot.com/2009/04/how-to-format-gridview-rowscolumns-in.html[/URL]

Member Avatar for mail2saion
0
94
Member Avatar for kylcrow

you can try with below query: [code] SELECT tblPlayer.FirstName, tblPlayer.LastName, SUM(tblRecords.Wins), SUM(tblRecords.Losses) FROM tblPlayer CROSS JOIN tblRecords GROUP BY FirstName,LastName [/code]

Member Avatar for jbisono
0
108
Member Avatar for guptaalok12

You can use the below javascript to validate numeric number. [code] function bINT(sText) { if(isNaN(parseInt(sText))) return false; } [/code] Modify your textbox to call the javascript method like below: [code] <asp:textbox onkeypress="return bINT(String.fromCharCode(event.keyCode));" id="txtINT" runat="server"></asp:TextBox> [/code]

Member Avatar for mail2saion
0
89
Member Avatar for iamchamith

Yes its postback issue definitely. Wrap your page load event within the condition below: [code] If Not IsPostBack Then 'Your code here ..... end if [/code]

Member Avatar for mail2saion
0
92
Member Avatar for MrDavo

I think either your connection string has the problem or the user has no permission to connect to the server. Did you get any "Remote connection" type error?

Member Avatar for kbk_10
0
108
Member Avatar for 15389049

Try with the following way: [code] If ((CheckBox)D.FindControl("CheckBoxPurchase")).Checked Then SQL = "INSERT INTO Trx VALUES('" & TrxID & "')" End If [/code]

Member Avatar for 15389049
1
176
Member Avatar for renu_kj

You can try with below sample: [code] CONVERT(INT,SUBSTRING(Slab2A_Time_From,1,3)) [/code] First collect first 3 character then convert those into int. For example If your range length is 3 then substring 3rd parameter will be 3. Or you can move 1 by 1 like if firstcharacter is a nmuber then collect until …

Member Avatar for renu_kj
0
249
Member Avatar for SKANK!!!!!

You can achieve this by writing a javascript function like below: [code] function copyToClipboard(s) { if( window.clipboardData && clipboardData.setData ) { clipboardData.setData("Text", s); } } [/code]

Member Avatar for SKANK!!!!!
0
139
Member Avatar for love_dude1984

Make the following change in the node of the system.web section of the web.config file: [code] <httpRuntime maxRequestLength="11000" executionTimeout="275"/> [/code] If does not resolve then post exact error message.

Member Avatar for mail2saion
0
92
Member Avatar for Kaddolas

Also you can write: [code] DELETE FROM User WHERE UserId BETWEEN 1915 AND 1945 [/code]

Member Avatar for mail2saion
0
104
Member Avatar for mca.mdebnath

You can follow the below way: [code] //open your connection here for(int i=0; i<Convert.ToInt(TextBox1.Text);i++) { // insert HERE } //close your connection here [/code]

Member Avatar for mail2saion
0
81
Member Avatar for RAMAN2233

For dropdown you can read my below post on C#: [url]http://shawpnendu.blogspot.com/2009/05/how-to-bind-or-populate-data-into.html[/url] Read the above link if you need to know how to bind data into dropdownlist as well as how to read selected text.

Member Avatar for mail2saion
0
43
Member Avatar for twilitegxa
Member Avatar for mca.mdebnath

Write sql in the following way: [code] SELECT MAX(CONVERT(INT,RIGHT(user_id,3)))+1 from master [/code] Will give you the incremented number Now pad FMS & 0 if required by using length of your max func return value.

Member Avatar for mca.mdebnath
0
118
Member Avatar for Kristysos
Member Avatar for mailme.vibin
0
156
Member Avatar for elauri

You can create a view dynamically in the following way: [code] Declare @SQL nVarChar(1000) Select @SQL = 'Create View Auths AS (SELECT au_id, au_lname, au_fname FROM Authors)' Execute pubs.dbo.sp_executesql @sql [/code]

Member Avatar for elauri
0
139
Member Avatar for phantom1000000

HI, You can use the below javascript method to read asp radio button list selectindex, selected value. [CODE] <script type="text/javascript"> function GetRadioButtonSelectedValue() { var AspRadio = document.getElementsByName('Aspradiobuttonlist'); for (var i = 0; i < AspRadio.length; i++) { if (AspRadio[i].checked) { var lblAspradiobuttonValue = document.getElementById('<%= lblAspradiobuttonValue.ClientID %>'); lblAspradiobuttonValue.innerHTML='<b>Selected Value:</b> '+AspRadio[i].value+'<br/>'; lblAspradiobuttonValue.innerHTML+='<b>Selected …

Member Avatar for phantom1000000
0
123
Member Avatar for Cemils

Your query won't work. Cause you does not specified non aggregated columns in group by clause. I can't understand what is you requirement. But you can try with below one: [code] SELECT case_id case, Count(case_id) [case count], max(created) [last update] FROM case_score_t cs WHERE cs.user_id = 1449 GROUP BY cs.case_id; …

Member Avatar for Cemils
0
72

The End.