- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 8
- Posts with Downvotes
- 6
- Downvoting Members
- 3
35 Posted Topics
Re: Hi. Make sure you type "BindGrid()" in each and every function of either deleting, inserting or updating. [COLOR="red"]Note: GridView = mydg[/COLOR] [CODE] Using System.Data.SqlClient; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindGrid(); //user defined } } public void BindGrid() { SqlConnection sqlcon = new SqlConnection("Server=DEEPZ; uid=sa; pwd= … | |
Re: hi Hakoo, try this:- [CODE] <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <style type="text/css"> .modalBackground { background-color: Gray; filter: alpha(opacity=80); opacity: 0.8; z-index: 10000; } </style> </head> <body> <form id="form1" runat="server"> <asp:ToolkitScriptManager ID="ScriptManager1" runat="server"> </asp:ToolkitScriptManager> <div> <asp:GridView runat="server" ID="gvdetails" DataKeyNames="UserId" AutoGenerateColumns="false"> <RowStyle BackColor="#EFF3FB" /> <FooterStyle … | |
Hi, I want to know how kernal communicates with the Linux operating system in terms of it's roles such as Interrupt Handler, Scheduler, Manager and Supervisor. Kindly assist. Thanks. | |
I have a problem in my laptop. I wanted to reinstalled windows 7 but unfortunately it couldn't complete. It showed a blue screen for one second then it restarted. So I went to recovery option from the windows 7 setup, It detected my uncomplete installation, but it couldn't continue the … | |
Hi, This code checks the availability of username from the database. | |
Re: Hi, Try this.. [CODE] protected void MyGrid_RowDataBound(object sender, GridViewRowEventArgs e) { foreach (TableCell tc in e.Row.Cells) { tc.Attributes["style"] = "border-color: #c3cecc"; } } [/CODE] | |
This is my code to hash [CODE]class hashing { private static $algo='$2a'; private static $cost='$10'; public static function unique_salt() { return substr(sha1(mt_rand()),0,22); } function hash($password) { return crypt($password,self::$algo.self::$cost.'$'.self::unique_salt()); } public static function check_password($hash,$password) { $full_salt=substr($hash,0,29); $new_hash=crypt($password,$full_salt); return ($hash==$new_hash); } }[/CODE] This is my login page [CODE]require("hashing.php"); $password=hashing::hash($_POST['txtPassword']); $checkPassword=mysql_query("SELECT * from … ![]() | |
I want to upload images that will be saved in a folder. That folder is inside my website folder. eg: mywebsite(website folder). myimage(image folder). And the path of image should be saved in mysql. I tried the following but it is giving error "path not found." This is my path:- … | |
Re: Hi, Yes you can. Follow these steps:- 1) In GridView, select smart tag. 2) Click Edit columns 3) select ImageField and click Add 4) click "Convert this field into template field" and click OK. 5) After step 4, you'll see image control in the GridView 6) Click smart tag and … | |
Re: You have to download the Ajax toolkit in order to use it. However, by default when you create a new ASP.NET website, You'll see Ajax Extension in Toolbox. | |
Hey, please guide me with codes. It's very urgent. I want the display of comments to appear like facebook. Also, my friends and I can comment on status as many times as needed. And number of comments should also appear. Thanks. | |
Re: Make the TreeView dynamic (That is, connect it to the database). Sorry I forgot the code. I'll get back to you asap. It's something like this:- [CODE]if(TreeView1.SelectedNode[0])[/CODE] | |
Re: Hey.. Open Control Panel, click Administrative tools. Select IIS Manager. Check the components you need then click OK. To open IIS Manager:- Go to Run, type inetmgr. | |
Hey, I'm currently working on a social network website in ASP.NET, C#. I want to know the steps to create a chat application. Kindly guide me, Thanks. | |
hi. I'm completely blank in this. I don't know how to create a simple skin theme and linking it to my webpages. I need your help. Thanks.. | |
Hi, I need to know more about oracle database. 1)Introduction. 2)Importance. 3)Advantages and disadvantages. 4)Effects. 5)Diagrams. 6)Features. | |
Re: Hey, try this one... [CODE] <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 307px; height: 316px"> <param name="movie" value="anime1.swf" /> <param name="quality" value="high" /> <embed src="anime1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="300"></embed> </object> [/CODE] | |
Re: do you want to do that in sql or asp.net? | |
Re: hi, try this code:- [CODE] public void mydgDelete(object sender, DataGridCommandEventArgs e) { mydg.Columns[0].HeaderText = "Delete"; string del = "delete from Student where StudentID=@StudentID"; SqlCommand cmddel = new SqlCommand(del, sqlcon); cmddel.Parameters.Add(new SqlParameter("@StudentID", SqlDbType.Int)); cmddel.Parameters["@StudentID"].Value = mydg.DataKeys[(int)e.Item.ItemIndex]; sqlcon.Open(); try { cmddel.ExecuteNonQuery(); Response.Write("<font color=blue> Record(s) Deleted! </font>"); } catch (SqlException) { Response.Write("<font color=red> … | |
| |
Re: Try this. Hope it helps [CODE] public void edited(object sender, DataGridCommandEventArgs e) { dg.Columns[0].HeaderText = "Edit"; dg.EditItemIndex = (int)e.Item.ItemIndex; BindGrid(); } public void cancelled(object sender, DataGridCommandEventArgs e) { dg.Columns[0].HeaderText = "Cancel"; dg.EditItemIndex = -1; BindGrid(); } public void updated(object sender, DataGridCommandEventArgs e) { sqlcon.Open(); dg.Columns[0].HeaderText = "Update"; string myupdate = … | |
Re: To save values selected from a DropDownList, you must use SelectedItem. This is how you use it:- [CODE] string insertCommand="insert into TableName values ('"+BADGE.SelectedItem.Text.ToString()+"')"; SqlCommand commandObject=new SqlCommand(insertCommand, connectionObject); commandObject.ExecuteNonQuery(); [/CODE] Don't worry, we are all learners. | |
Hello. This demo shows how to upload multiple image files, saving them in "Image" folder and displaying them all. To do this, create a folder named "Image" in your solution explorer. I hope you like it :) | |
Re: click TextBox, go to properties. Make the following changes:- [CODE] AutoPostBack=true EnableViewState=true [/CODE] Hope it helps. | |
Im getting this error:- The type 'System.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.C:\Users\User\Documents\Visual Studio 2005\deepali\mywork\Animation_Control.aspx can anyone please help me solve it? | |
Re: I don't know VB so I'm tying in C#. try using [B]DataGrid contro[/B]l, It's easier. [CODE] //In Source <asp:DataGrid ID="myd" runat="server" DataKeyField="StudentID" onDeleteCommand="delete"> <Columns> <asp:ButtonColumn ButtonType="PushButton" Text="Delete"/> </Columns> //In Code Behind Page Model SqlConnection sqlcon = new SqlConnection("Server=DEEPZ; uid=sa; pwd= ; database=student"); protected void Page_Load(object sender, EventArgs e) { if … | |
Hello! 1) I have no idea how to use Session objects, especially when it has to remember the Session of the logged user. When the user clicks logout, his session should be removed until the next time he logs in. 2) Also, how to validate the user in such a … | |
Re: I have the codes written in my notebook. It doesn't include JavaScript. Is it okay if I explain using C# codes? | |
Can anyone help me solve this error:- Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. | |
Re: Try using DataGrid control instead of DataTable. It is much simpler | |
Re: Add .bmp images in your solution explorer by:- Right click --> Add Existing Item. Double click image button control, In ImageURL select the .bmp file and run the application. This must work. I tried it. | |
Hello, How to save values of each and every controls to SQL database using CreateUserWizard? | |
I have a multiline textBox control called "Post." I also have a singleline textBox called "Comment" and a Button called "btnPost." Whatever text I type in "Comment," It should display in "Post." Further more, the texts should be saved permanently in "Comment." And also, the texts shouldn't be overrided after … | |
Please help me use this LookAndFeel in java. I have downloaded quauqa-5.4.1.zip I tried the following, but it's giving me exception in thread:- package ch.randelshofer.quaqua; class Account extends JFrame { @SuppressWarnings("unchecked") public static void main (String [] fisd) { Account acc=new Account(); acc.setVisible(true); acc.setSize(900,600); java.awt.EventQueue.invokeLater(new Runnable() { public void run() … |
The End.