Posts
 
Reputation
Joined
Last Seen
Ranked #914
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
~163.94K People Reached
Favorite Tags

403 Posted Topics

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
306
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
176
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
146
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
349
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
222
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
397
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
194
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
297
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
947
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
52K
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
732
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
309
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
199
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
195
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
658
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
322
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
820
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
197
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
901
Member Avatar for themailsian
Member Avatar for enoch365
0
151
Member Avatar for julseypart
Member Avatar for SheSaidImaPregy
0
145
Member Avatar for ericstenson

You cannot detect when it has a file, however you can detect length. If you wish to detect length, you need to make sure the box is READONLY. Cause, like me and probably a few others, I type most of my paths into the upload box. This you would have …

Member Avatar for SheSaidImaPregy
0
1K
Member Avatar for kodingkarthik

A simple way would be to retrieve the information for the dropdown. Then when the user selects from the drop down, trigger an event to call the database to retrieve the values based on the dropdown selected value. Then place those values into textboxes, and allow the user to edit …

Member Avatar for SheSaidImaPregy
0
186
Member Avatar for ricksvoid

Keep in mind, your company name will not be the only thing looked at, but as well as your mission statement. And based on your mission statement, your company name will be found.

Member Avatar for SheSaidImaPregy
0
168
Member Avatar for SheSaidImaPregy

I have a custom class that is an entire structure within itself, many layers deep. However, this object is stored in memory through sessions. I need a way to retrieve the session variable without having to call it through a return method. An Example: This is what I currently have …

Member Avatar for SheSaidImaPregy
0
141
Member Avatar for kodingkarthik

Try this without a postback. This works with javascript to do it on the client, not on the server: [code]<asp:DropDownList ID="ddldept" onchange="chkChange(this);" runat="server" Style="z-index: 131; left: 242px; position: absolute; top: 153px"> <asp:ListItem>Solutions</asp:ListItem> <asp:ListItem>SA</asp:ListItem> <asp:ListItem>Training</asp:ListItem> <asp:ListItem>HR</asp:ListItem> <asp:ListItem>Finance</asp:ListItem> <asp:ListItem>Documentation</asp:ListItem> <asp:ListItem>Quality</asp:ListItem> <asp:ListItem>NewDepartment</asp:ListItem> </asp:DropDownList> <asp:TextBox ID="TextBox1" runat="server" style="display: none;" /> <script type="text/javascript"> function chkChange(ddl) …

Member Avatar for SheSaidImaPregy
0
171
Member Avatar for Potato.Head

No, this is not possible the way you are wanting. If you wish to do this, you would have to do a cross-page postback, then redirect back to the current page. So by doing this, you will make these functions somewhat unique to each page. Therefore you might as well …

Member Avatar for SheSaidImaPregy
0
182
Member Avatar for Jason123

Database wise: Create a table that holds the messages, with at least the message, userid to send it to, userid who sent it, and "read date" or read flag. When a user sends the message, you can then populate the message, userid who sent it, userid who sent to. When …

Member Avatar for SheSaidImaPregy
0
109
Member Avatar for yanti

Your method should be working alright.. Are you sure you are returning a row from the database? You might not be finding anything. Run it manually to see your result.

Member Avatar for SheSaidImaPregy
-1
312
Member Avatar for kischi

You have a couple of options, and one I would recommend would be to change the database column type. You can change the database column type from date/datetime to nvarchar or char format. This way you save "19:00" and not the whole date and time. Then when you retrieve it, …

Member Avatar for SheSaidImaPregy
0
107
Member Avatar for SheSaidImaPregy

Hey, I created a datalist with a nested repeater. In the nested repeater, I need to limit the amount of records shown (only 10 allowed). However, just limiting the second query into the dataset doesn't work, only grabs 10 records. So I need to figure out a way of only …

Member Avatar for SheSaidImaPregy
0
218
Member Avatar for kaushik259106

Wrong forum bud. This is classic asp. Here you go: [url]http://www.daniweb.com/forums/forum18.html[/url]

Member Avatar for brianmaddox
0
108
Member Avatar for DesignsOnline

this is because a link can only have so many characters in it. You surpassed the amount of room a link allows. I think it is either 100 chars or so. Your best bet is to send the email yourself. Have a user click the link, supply the email address, …

Member Avatar for webnesto
0
255
Member Avatar for anitha joe

Why use all those? Using server controls is costly, so a repeater would be best. Just create a repeater and bind all your images to an array, then bind it to the datasource. Basically, use the System.IO namespace, loop through each file in the directory and detect if it's a …

Member Avatar for anitha joe
0
87
Member Avatar for RandV80

What you are doing should be referenced by each page. When you click a button in your header, which is located on your master page, you want the main content to change? This is done by just going to the next page, that references the master. This is still a …

Member Avatar for greeny_1984
0
994
Member Avatar for daveydave999

actually, you are almost forced to use them. But I like to stay away from GridView and DataSet. Use a DataList. Basically, just create the page you want to and bind your data to the DataList, then just add the datalist tags above and below the beggining and end of …

Member Avatar for SheSaidImaPregy
0
112
Member Avatar for majestic0110

You have to start visual studio first, as it starts your "development server". So until the development server is started, your computer is not ASP.NET ready lol. Start VS first, then open any way you wish.

Member Avatar for rje7
0
970
Member Avatar for ebabes

Yes you can disable those keys, but it won't stop them from using the clipboard. However, what you can do is set up a javascript function that gets called constantly. Then inside the function you set a cursor position, which will stop them from highlighting, and from "Selecting All".

Member Avatar for salvea
0
459
Member Avatar for kavithabhaskar

alkeshnayak is wrong on that point, as long as you have "< 2 GB" in your database, it will work. However, if you meant: =< "2 GB" then this statement will fail as you cannot use an operator (=<) with a string (text). This statement needs to be changed: "select …

Member Avatar for SheSaidImaPregy
0
274
Member Avatar for sbv

What kind of game are you talking about? A clan, a community, an actual game on a site?

Member Avatar for sbv
0
99

The End.