Posts
 
Reputation
Joined
Last Seen
Ranked #905
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
95% Quality Score
Upvotes Received
25
Posts with Upvotes
24
Upvoting Members
15
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
21 Commented Posts
15 Endorsements
Ranked #99
Ranked #271
~160.86K People Reached
Favorite Tags
Member Avatar for sonakrish

You should also stear away from inserting code just like that. Look into adding parameters: [code=cscharp]SqlCommand comm = new SqlCommand("INSERT INTO desg VALUES (@txtsno, @txtdesg, @txtbasic)", connection); comm.Parameters.AddWithValue("@txtsno", txtsno.Text.Trim()); comm.Parameters.AddWithValue("@txtsno", txtdesg.Text.Trim()); comm.Parameters.AddWithValue("@txtsno", txtbasic.Text.Trim());[/code] This prevents SQL Injection.

Member Avatar for sachin.ghute3
0
301
Member Avatar for SushilKumar
Member Avatar for faranak

aswhat the problem/error explains, you might be passing too many values into the function. check to see that you are calling... wait a second.. read your public void line: [code]public void Insert(string strName,string strCName,int nWeekHour,string strPassword,string strEMail,out int nAlreadyIn)[/code] The problem with this is a couple things. what is "out …

Member Avatar for BMXDad
1
2K
Member Avatar for farheen

I am a Class ASP coder myself, but am learning .NET. In my stand point, asp was easier to get simple tasks done, but the more complicated ones .NET does in a flash. Just like PHP, ASP Classic had to use loops through queries, use if statements, and then display …

Member Avatar for annaharris
0
1K
Member Avatar for jtok

Here's some info on commands: cmdSelect.ExecuteNonQuery() -- This executes queries that don't return rows, like deletes, updates, inserts, etc. -- Returns a number of records updated, if you set it to a variable: -- Dim intRecsUpdated As Integer = cmdSelect.ExecuteNonQuery() cmdSelect.ExecuteScalar() -- Retrieves only one record/column/entry, and always the first …

Member Avatar for G_Waddell
0
2K
Member Avatar for Silverion

You bring up a post that is almost 9 months old and cutting down the credibility of everyone that uses this site? Kinda retarded if you ask me. Next time post and see if someone is here to help you. For some info, use this tutorial and next time be …

Member Avatar for SQLpower
-1
2K
Member Avatar for mop

to find the physical path, you have to know where it is based from the root of the folder. THen you can create a dummy aspx page to find your virtual path. THe dummy page will contain: [code]<%= server.MapPath("/vdir/") %>[/code] This will show you the physical path to the vdir.

Member Avatar for zyzzyxx
0
173
Member Avatar for rogelioz

Are you sure the page isn't cached? If the page is cached, then it isn't finding the cookies, just using the settings on when they found them in the past.

Member Avatar for sandybarasker
0
144
Member Avatar for artee

Isn't it just easier to bind your employee id as the Value of the Dropdownlist item, and their name as the Text of the Dropdownlist item. You can receive the name of the dropdownlist by: dropdownlistname.SelectedItem.Text And the value of the dropdownlist selected item by: dropdownlistname.SelectedItem.Value So a simple: Dim …

Member Avatar for navera
0
347
Member Avatar for Slade

Yes it is possible Slade. You need to ask yourself, how did the querystring get there? A URL is read only yes, so you cannot "edit" it through commands on the server. Just think about it a bit.. you got the querystring when you submitted the form...

Member Avatar for jack lion
0
216
Member Avatar for firebirds98

Yup, you cannot populate a DropDownList like that. Code for that is as follows: [code]Dim conn As New SqlConnection( connection ) Dim cmdSelect As New SqlCommand( ""Select flightnum from Air_flight", conn ) Dim dtrReader As SqlDataReader Try conn.Open() dtrReader = cmdSelect.ExecuteReader() if dtrReader.HasRows then ddlflightnum.DataSource = dtrReader ddlflightnum.DataValueField = "flightnum" …

Member Avatar for Ezzaral
0
385
Member Avatar for u4umang2001

Read up on Primary keys and Foreign keys. This is how you relate the tables together with a trigger to delete all childrows or update all childrows when the parent row is modified or deleted. This is all done on the server, so if you wish for an explanation of …

Member Avatar for matricol
1
183
Member Avatar for priyamsc

That requires too much. Your best bet is to just change the picture through javascript. [code=JAVASCRIPT]<script type="text/javascript"> <!--// function chnge() { document.getElementById("adRotator").src = "newimagepath"; //If you wish, put all your images in a folder //that have similar names like: //img001, img002, img003, img004 //Then take a random number, and check …

Member Avatar for questpond
0
293
Member Avatar for nandhinijp

two effective ways to do this.. You can create a gif file that is transparent except for your watermark and create it the same size, or close to, of the default image. Then on your page, set the background of a div to the default image, and the size of …

Member Avatar for samx2010
0
924
Member Avatar for serkan sendur

If you still need it, this will delete all rows from your table, except for your head row. [code=javascript]var table = document.getElementById("tableid"); //or use : var table = document.all.tableid; for(var i = table.rows.length - 1; i > 0; i--) { table.deleteRow(i); }[/code] Change the red "0" to "-1" if you …

Member Avatar for bertyhell
0
51K
Member Avatar for ameenu

register a script for an "Alert": [code=C#] string str = "function () { alert('OMG ITS me'); }"; Page.RegisterClientScriptBlock("nameofscript", str);[/code]

Member Avatar for jagidy
0
5K
Member Avatar for divya.padukone

Page.IsPostBack is for forms that are runat="server". It is mostly used for same page validation, same page operations, ... anything really same page! It is also used to help keep bandwidth and rendering times down. The main reason why people use IsPostBack is to stop taping the databases everytime a …

Member Avatar for jay_gandhi
0
727
Member Avatar for deepak12345
Member Avatar for jcf

Noonza, To do a search in a database, all you have to do is create a user control like Datalist, DataGrid, or Repeater and bind it to the datasource. If you want to search for a keyword, create a textbox that posts to the server. When a user enters in …

Member Avatar for shanwaz
0
305
Member Avatar for GLT
Member Avatar for MohitB

The folder is more for database files (SQL, Access, XML, etc.). If you are trying to put a database file in the folder, just create a new one there or detach a database from your server, move it to that location, then reattach it. All easily done with Enterprise Manager. …

Member Avatar for Sakshi_11
0
191
Member Avatar for greeny_1984

well, you can use checkboxlist but it doesn't work like radio buttons do. The user will be able to select multiple ones if you choose checkboxes instead of radio buttons. But if you decide to do checkboxes, use javascript to uncheck the other boxes in your group. [code]<script type="text/javascript"> function …

Member Avatar for tamannashah
0
192
Member Avatar for SheSaidImaPregy

I posted earlier on this site for help on where to set a command when a user session timesout. I posted this in the global.asax file: [code]Imports System.Web Imports System.Web.SessionState Imports System.Diagnostics Public Class Global Inherits System.Web.HttpApplication Sub Application_Start(ByVal Sender As Object, ByVal E As EventArgs) Application("CurrentUsers") = 0 Application("TotalSessions") …

Member Avatar for jaredclinton
0
1K
Member Avatar for Member 164344

replace the querystring yourself if you wish. When the page gets requested, set the current url to a string. Then replace all the "coded" parts with the real parts!

Member Avatar for gdarcan
0
640
Member Avatar for codeVG

ASP.NET does not allow this as far as I know. Your only options are ActiveX and Java Applets. ActiveX mostly runs on IE but Java runs on the other browsers, as you want it to.

Member Avatar for TiredOfLogin
0
316
Member Avatar for naif_prof

You can purchase a prebuilt one or have one built custom for you. It's a process that would take about 3 days and have a control panel that would allow you to add questions for certain surveys/tests, view results based on those tests, and set certain keys for certain users …

Member Avatar for piknik
-3
811
Member Avatar for ramareddy_dotne

Hey buddie, you need to put your first part of your data within an IsPostBack portion. The reason why it is becoming the old data is that when you postback to the server, it still refreshes the page which plays page_Load once again, where you set the t1 and t2 …

Member Avatar for ShawnMilo
0
3K
Member Avatar for Eager_Beever

What the previous post gave you was a way to know how many people are online at any given moment, however, it is very unstable as you are not guaranteed to trigger Session_OnEnd, and if you look into it, it's normally not fired for beginners. I would suggest, just like …

Member Avatar for SheSaidImaPregy
0
193
Member Avatar for Pranoj

This has to do with CSS. On the td row, apply this style attribute: [icode]style="position: relative;"[/icode]. Then on your calendar, apply this attribute: [icode]style="position: absolute; z-index: 1000;"[/icode]. This will make the calendar be in the same row, and be "above" the other elements. You can then decide how far down …

Member Avatar for rituTokhi
0
886
Member Avatar for themailsian
Member Avatar for enoch365
0
148