Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
43% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
3
0 Endorsements
Ranked #585
~27.3K People Reached

90 Posted Topics

Member Avatar for sniigg

Add the namespace for HtmlAnchor ([COLOR="Red"]using System.Web.UI.HtmlControls;[/COLOR]), [CODE] protected void Page_Load(object sender, EventArgs e) { HtmlAnchor htmlanchor = new HtmlAnchor(); htmlanchor.HRef = "#"; htmlanchor.Title = "Welcome"; //tooltip htmlanchor.InnerText = "Welcome"; this.form1.Controls.Add(htmlanchor); } [/CODE]

Member Avatar for pritaeas
0
1K
Member Avatar for Dimansu

Soecify defaultbutton property in form tag [CODE]<form id="form1" runat="server" defaultbutton="Specify the button ID">[/CODE]

Member Avatar for Eduardo_2
0
196
Member Avatar for Renukavani

Hi All, I'm new to this jquery and i found some article, implemented but its server side method is not firing. Plz if you know help out this probelm. These is the code implemented in my application in jquery side. [CODE]<script type="text/javascript" ></script> <script language="javascript"> $(document).ready(function() { $("#btnClick").click(function() { var …

Member Avatar for patelkisankumar
0
1K
Member Avatar for matejkralik

hi if u want to delete row give like this dataGridView1.Rows.RemoveAt(dataGridView1.CurrentRow.Index);

Member Avatar for shibin09
0
2K
Member Avatar for azegurb

U mean once u select the name from combobox, should not allow user to select same name in coming rows. is it correct??

Member Avatar for Airshow
1
325
Member Avatar for JohnBo
Member Avatar for chetanbasuray
0
142
Member Avatar for Devasya

im not geting clearly. do u want to transfer database data to datagrid or what ur expect... [QUOTE=Devasya;650196]Hi all I just want to know, how to insert the data from a datagrid into access database? please help me.... :'([/QUOTE]

Member Avatar for bbauraj
0
694
Member Avatar for Tank50

[QUOTE=Tank50;703263]Hi guys I want to join two tables and executive the sql statement.I mention what is code i wrote ,Once Complie the code it says Error1 The left-hand side of an assignment must be a variable, property or indexer [CODE]SqlConnection Con3 = new SqlConnection("Data Source=IT;Initial Catalog=Test;Integrated Security=True"); Con3.Open(); string str1 …

Member Avatar for kvprajapati
0
293
Member Avatar for Renukavani

Hi All, I'm new to Blog concepts.Is it possible to post the comments to website using the webservice instead of directly post the comments in website. Any help can welcome.

Member Avatar for hattreyhten
0
71
Member Avatar for Smith5646

Modified code,(red color s newly added and green s modified) [CODE] Dim ButtonCount As Integer [COLOR="Red"]Dim XLoc As Integer[/COLOR] OnTheFlyButton.Location = New Point([COLOR="Green"]XLoc[/COLOR], 100) [COLOR="Red"]XLoc += 100[/COLOR] [/CODE]

Member Avatar for Smith5646
0
812
Member Avatar for jonniebl
Member Avatar for Oxiegen
0
4K
Member Avatar for hery

Check this in Page_Load event [CODE] if (!IsPostBack) { for (int i = 0; i < 3; i++) { TextBox txt = new TextBox(); txt.ID = "txt" + i.ToString(); //or "txt" + pnlview.Controls.Count.ToString(); pnlview.Wrap = true; pnlview.Controls.Add(txt); pnlview.ScrollBars = ScrollBars.Both; } } [/CODE]

Member Avatar for bhavu4u
0
181
Member Avatar for Dimansu

U need to add space in pattern and modified code is, [CODE] Match matchMyRegex = Regex.Match(fullNameTextBox.Text, "^[a-zA-z ]*$"); [/CODE]

Member Avatar for Geekitygeek
0
106
Member Avatar for digitalsindhx

Check this, [URL="http://www.codeproject.com/KB/database/simpledbreadwrite.aspx"]http://www.codeproject.com/KB/database/simpledbreadwrite.aspx[/URL]

Member Avatar for digitalsindhx
0
503
Member Avatar for Sinha's

Might be [COLOR="red"]agent_business_collection.business_pkg_ref [/COLOR]is unique data bcz of this u r getting the garbage total when u r trying do to the sum(agent_business_collection.self_amount),sum(agent_business_commission.self_comm_amt). Try to remove the [COLOR="red"]agent_business_collection.business_pkg_ref [/COLOR] from the select statement.

Member Avatar for woodsrr
0
180
Member Avatar for aravinda reddy

anyway u created the virtual dir, through inetmgr open ur virtual application and browse that. u will the URL and place that url it in desired place instead of '~/Masterpage.master' in other application

Member Avatar for Renukavani
0
103
Member Avatar for manikr1973

objFso.CreateTextFile used to create text file because name itself create text file. Use this code [CODE] File.Create(My.Application.Info.DirectoryPath & "\NEWBATCH.BAT") [/CODE]

Member Avatar for Renukavani
0
223
Member Avatar for user1980

If u invisible the panel1 when user click on checkbox, u cant see the inside panels beacuse inside panels is added into panel1.

Member Avatar for user1980
0
188
Member Avatar for kayjenx

Getting error because You are trying to assign the command into control text. Try below set of statements and Red color are modified [CODE] 'Make Connection to database Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\Atlanet\loantracking\CTS_be.mdb") 'Query information for Branch Number Dim BranchNumber As OleDbCommand = New OleDbCommand("SELECT Branch_Number From MSysUserList WHERE …

Member Avatar for kayjenx
0
207
Member Avatar for matt.clark.228

You have to check in form resize event as per my understanding, [CODE] private void Form1_Resize(object sender, EventArgs e) { txtresize.Width = this.Width - 40; } [/CODE]

Member Avatar for Geekitygeek
0
80
Member Avatar for stuncrazy

This are the issues in ur code, 1. where did u specified the connection string value in this red colr var [CODE] Dim daClient As New OleDb.OleDbDataAdapter("SELECT * FROM Client;", [COLOR="red"]connection[/COLOR]) [/CODE] 2.I just modified ur code, [CODE] 'DATASET AND ADAPTER Dim dsC As New dsClient1 Dim daClient As New …

Member Avatar for Renukavani
0
87
Member Avatar for Bodul

Try this, [CODE] dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect dataGridView1.MultiSelect = False [/CODE]

Member Avatar for Renukavani
0
1K
Member Avatar for Rageagainst20

Use this and specify the URL properly [CODE] private void RequestResponse() { try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(@"http://192.168.00.000/Folder/test123.html"); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader sr = new StreamReader(response.GetResponseStream()); string strRead = sr.ReadToEnd(); txtHTMLContent.Text = strRead; sr.Close(); } catch { } } [/CODE]

Member Avatar for Rageagainst20
0
167
Member Avatar for Dimansu

If its that dialog box s usercontrol then u can do this way, Create instance for Usercontrol, using that instance u can get the close button ID. based on that ID assign whatever property u want to assign.

Member Avatar for Renukavani
0
85
Member Avatar for Dimansu

Place this below code into button click if you want to check or to textchanged event. [CODE] bool isStrictMatch = false; string patternStrict = @"^([a-zA-Z]+)$"; Regex reStrict = new Regex(patternStrict); if (txtSecond.Text.Trim() != string.Empty) { isStrictMatch = reStrict.IsMatch(txtSecond.Text.Trim()); if (!isStrictMatch) MessageBox.Show("Please use alphabetics", "Validation", MessageBoxButtons.OK); } [/CODE]

Member Avatar for Dimansu
0
87
Member Avatar for Ajith S Kulgod

Before complete the running process dont try to install the next process

Member Avatar for Renukavani
0
62
Member Avatar for Archana.K

Either edit the column via table Structure panel, Or run the following SQL query: [CODE] ALTER TABLE 'workers' CHANGE 'id' SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT [/CODE]

Member Avatar for Renukavani
-1
85
Member Avatar for shubhamshah

Just hardcoded the data with single quotes [CODE] lstView.Items.Add("CSharp'"); lstView.Items.Add("Vb'"); [/CODE] Or U can get data from backend and using the loop jus concate the backend data with "'" and add into listbox.

Member Avatar for Oxiegen
0
110
Member Avatar for nrsh_ram

Try modified statement what you mentioned in red font [CODE] Bitmap bm = new Bitmap(Width, Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); Rectangle rect = new Rectangle(0, 0, Width, Height); [/CODE]

Member Avatar for Renukavani
0
124
Member Avatar for ogimy

Place below code after the com declaration [CODE] If com.ExecuteNonQuery = 0 Then hasErrors = True End If conn.Close() If Not hasErrors Then txtStatus.Text &= vbCrLf & "Query Successful" & vbCrLf Else txtStatus.Text &= vbCrLf & "You may only update an existing record. " End If [/CODE]

Member Avatar for Renukavani
0
83
Member Avatar for ogimy

If u know how many records want to update, go for loop and update it one by one with condition.

Member Avatar for Oxiegen
0
103
Member Avatar for student21

Check whether record count is 0 or more than. If its >0 then show ur searh data into second form, else redirect into first form (Search form) with message box

Member Avatar for student21
0
100
Member Avatar for Hemanandhini

In "Clear Filters" button click event write this code to clear the text [CODE]Searchtextbox.Text = String.Empty; //or Searchtextbox.Text = ""; [/CODE]

Member Avatar for Renukavani
0
70
Member Avatar for sluck

If your store procedure doest have input param specify as [CODE] string selUser = "SELECT LidID FROM leden WHERE LidID=" + userID; //Add input data [/CODE] then remove line from 23 to 25 and check the status

Member Avatar for sluck
0
280
Member Avatar for xairzx

The way what your written as wrong [CODE] If ComboBox1.SelectedItem = "sabah" Then [/CODE] So whenever user selects as "sabah" then you are doing some set of statements. Until unless its not going inside to get the any output regarding the Summary. Change your logic and try it.

Member Avatar for xairzx
0
91
Member Avatar for mldardy

Check this URL will redirect to you to get the correct solution [url]http://www.devasp.net/net/articles/display/706.html[/url]

Member Avatar for Renukavani
0
224
Member Avatar for dawsonz

Please look this code after the modification, [B]login.aspx[/B] [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox> <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Click"/> </div> </form> </body> </html> [/CODE] …

Member Avatar for dawsonz
0
100
Member Avatar for Sujit_Patil

Use this [CODE]SqlConnection myConnection = new SqlConnection("Data Source=IPaddress;Initial Catalog=databasename;Persist Security Info=True;User ID=username;Password=password"); SqlCommand cmd = new SqlCommand("SP name", myConnection); cmd.CommandType = CommandType.StoredProcedure; SqlParameter par = cmd.Parameters.Add("@MESSAGE ", SqlDbType.Varchar); par.Direction = ParameterDirection.ReturnValue; cmd.Parameters.Add("param", SqlDbType.NVarChar, 50).Value = "**"; myConnection.Open(); cmd.ExecuteNonQuery(); string strerrormes=par.Value; [/CODE] [B]Database side[/B] IF @@ERROR <> 0 SET @MESSAGE ='FAILURE' …

Member Avatar for kvprajapati
0
99
Member Avatar for pysdex

First time might be u r getting array(0) is 10 digits and when click again the button, arrya(0) holding 9 digits. So when your are trying to use substring(5,5), length is not correct thats what throwing the exception.

Member Avatar for Renukavani
0
95
Member Avatar for Rageagainst20

Might be ur application path and deleting file path is differnt.So specify the full path to delete the file like "c:\program files\....."

Member Avatar for Geekitygeek
0
187
Member Avatar for ramsham
Member Avatar for Renukavani
0
381
Member Avatar for botaxsmaniz

Create Session variable or Hidden control and assign username into session vairable or hidden control when the login is succssfull. Using session variable u can know who is inserting the data or updating

Member Avatar for Renukavani
0
174
Member Avatar for saj_amo

Use this, [CODE]SqlConnection myConnection = new SqlConnection("Data Source=IP address;Initial Catalog=Databasename;Persist Security Info=True;User ID=username123;Password=password123");[/CODE]

Member Avatar for Renukavani
0
71
Member Avatar for keny2020j

You can fetch data from DB and assign into dataset or datatable. Using the loop u can bind data into dictionary with key, value pair.

Member Avatar for keny2020j
0
188
Member Avatar for laptop545

If u use onserverclick then u will get this error "No overload for method 'temp' takes '0' arguments" Instead of that u can go for server control with onclick. [CODE]<asp:Button ID="btnClick" Text="Click" runat="server" onclick="btnClick_Click" />[/CODE] [B]Codebehind[/B] [CODE]protected void btnClick_Click(object sender, EventArgs e) { }[/CODE] OR If u want html control …

Member Avatar for Renukavani
0
69
Member Avatar for umairraja52
Member Avatar for hitro456

You can use like this, [CODE] string Connectionstring = "...."; sqlConnection con = new sqlConnection(Conncetionstring); try { con .Open(); } catch (SqlException exp) { //assigned into string vari strErrorState = exp.Message; }[/CODE]

Member Avatar for Renukavani
0
109
Member Avatar for Renukavani

Hi All, I am having html content in text format and want that to convert as image to send to user instead of Html content to prevent the modification.

Member Avatar for kvprajapati
0
47
Member Avatar for aideveloper
Member Avatar for aideveloper
0
102
Member Avatar for rosebabu

[QUOTE=rosebabu;697922]Can anybody say, how to minimize the window form on close button is clicked in C#? thanks in advance.[/QUOTE] hi u mean, r u created any buton on ur form or r u teling the default close, mini,max button top right corner of form. tel me clearly where u want …

Member Avatar for Geekitygeek
0
2K

The End.