16,012,223 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Altaful Haq (Top 46 by date)
Altaful Haq
24-Aug-15 2:30am
View
ohh nice suggestion
Altaful Haq
24-Aug-15 2:28am
View
asp.net but grid view have some control i don't want to deal with them..
Altaful Haq
24-Aug-15 2:27am
View
in asp.net webpage i want to display record searched from sql server 2008 R2 table in a table form not in gridview
Altaful Haq
24-Aug-15 2:15am
View
i dont want to show the information which i searched by click on search button in grid. i want to display these records in a table e.g
Name CNIC DOB Address
abc 1111 2008 pakistan
xyz 2222 2003 UK
Altaful Haq
21-Aug-15 3:10am
View
thanks
Altaful Haq
20-Aug-15 7:41am
View
thanks for helping.. the above question is also solve by href = "/../pages/order.aspx"
Altaful Haq
20-Aug-15 7:39am
View
and some page are in the folder like href = "../pages/order.aspx"
Altaful Haq
20-Aug-15 7:29am
View
<ul>
<li class='active'><a href="Default.aspx"><span>User Information</span></li>
<li class='has-sub'><a href="#"><span>Managment</span>
<ul>
<li>
<span>Order</span>
</li>
<li class='last'>
<span>City</span>
</li>
</ul></li>
</ul>
Altaful Haq
20-Aug-15 6:05am
View
thanks i have a menu on my master page. When i am on default page it works fine and when i am on other pages like Order Page when i click over a button i does not load a page. because according to address-bar a link is look like
[ http://localhost:54246/Pages/Pages/order.aspx ]
a pages increase automatically in it.
help me if you can
Altaful Haq
17-Aug-15 4:10am
View
it does not working Andy. Can you share any other techniques. like ajax or jquery
Altaful Haq
17-Aug-15 3:46am
View
does not generate the alrt and save the record is i enter it
Altaful Haq
13-Aug-15 8:27am
View
Can i also change the format of date entered into textbox
Altaful Haq
11-Aug-15 7:45am
View
<%@ Page Title="" Language="C#" MasterPageFile="~/CRMTrackingUser.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CRMTracking.Pages.Default2" EnableEventValidation="false" %>
Altaful Haq
11-Aug-15 7:44am
View
yah i have a master page and these codes are an the content page...
Altaful Haq
7-Aug-15 6:23am
View
yes
Altaful Haq
7-Aug-15 1:36am
View
its just an example actuly i have two table USER and USER_EMRG_INFO which have one to one relation. and i want to generate both record from the same table.
Altaful Haq
7-Aug-15 1:36am
View
its just an example actuly i have two table USER and USER_EMRG_INFO which have one to one relation. and i want to generate both record from the same table.
Altaful Haq
7-Aug-15 1:33am
View
humm yah. but i want to insert a new generated empid of emp table into a Dept table dept.empid on same save button. because i put insertion textboxs of these two table on same form. as i generate the new record an emp table it also generate a new record in dept table with a foreign key empid
Altaful Haq
5-Aug-15 2:53am
View
thanks
Altaful Haq
5-Aug-15 2:51am
View
I figure out something else but quite Useful so for
www.youtube.com/watch?v=VtRp8RhNk2U
Altaful Haq
5-Aug-15 1:43am
View
protected void OnRowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(GView, "Select$" + e.Row.RowIndex);
e.Row.ToolTip = "Click to select this row.";
}
}
protected void OnSelectedIndexChanged(object sender, EventArgs e)
{
foreach (GridViewRow row in GView.Rows)
{
if (row.RowIndex == GView.SelectedIndex)
{
row.BackColor = ColorTranslator.FromHtml("#A1DCF2");
row.ToolTip = string.Empty;
txtUID.Text = GView.Rows[0].Cells[0].Text;
}
else
{
row.BackColor = ColorTranslator.FromHtml("#FFFFFF");
row.ToolTip = "Click to select this row.";
}
}
}
can you help me with it to send specific row data into webform.
Altaful Haq
5-Aug-15 0:45am
View
@Tadit Dash it does not working dear...
Altaful Haq
5-Aug-15 0:19am
View
for example (a bit coding hints please)
Altaful Haq
4-Aug-15 9:00am
View
C# Coding is Here
protected void GView_RowEditing(object sender, GridViewEditEventArgs e)
{
Form_Enable();
using (SqlConnection conn = new SqlConnection(conStr))
using (SqlCommand cmd = new SqlCommand(@"SELECT * FROM UserInfo WHERE UID = UID", conn))
{
conn.Open();
using (SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection))
{
if (dr.Read())
{
// int id = Convert.ToInt32(dr["UID"]);
// txtUID.Text = (id + 1).ToString();
txtUID.Text = Convert.ToString(dr["UID"]);
txtFName.Text = Convert.ToString(dr["UFName"]); txtMName.Text = Convert.ToString(dr["UMName"]);
txtLName.Text = Convert.ToString(dr["ULName"]); txtUNic.Text = Convert.ToString(dr["UNic"]);
txtUDob.Text = Convert.ToString(dr["UDOB"]); txtUHPhone.Text = Convert.ToString(dr["UHPhone"]);
txtUCNumber.Text = Convert.ToString(dr["UCPhone"]); txtUEmail.Text = Convert.ToString(dr["UEmail"]);
ddlUState.Text = Convert.ToString(dr["UState"]);
txtUCity.Text = Convert.ToString(dr["UCity"]);
txtUAddress.Text = Convert.ToString(dr["UAddress"]);
// txtUComName.Enabled = true; txtUDesignation.Enabled = true; txtWPhone.Enabled = true; txtFaxNumber.Enabled = true; txtBCity.Enabled = true; txtCAddress.Enabled = true;
// txtECName.Enabled = true; txtECMNumber.Enabled = true; txtRelationship.Enabled = true; txtRHPhone.Enabled = true; txtECMNumber.Enabled = true;
//ddlUState.Text = Convert.ToString(dr["UState"]);
DateTime GV_date = DateTime.Now;
txtUDob.Text = GV_date.ToShortDateString();
this.GView.Visible = false;
txtFName.Focus();
this.btnUpdate.Enabled = true; this.btnShow.Enabled = false; this.btnSave.Enabled = false; this.btnAdd.Enabled = false; this.btnCancel.Enabled = true; this.btnClear.Enabled = false;
}
}
}
// End of Assigning Value to the foreign key of the Business Info and Emrg Contact Info Tables
}
Altaful Haq
4-Aug-15 8:39am
View
THANKS FOR HELPING
Altaful Haq
4-Aug-15 7:34am
View
i tried to follow you but when i do so then the record is not loading into the textboxs in the control. the textboxs and the gridview are an the same control...
Altaful Haq
4-Aug-15 6:25am
View
i want to show the gridview data in a form can you help me with my code i try hard but it send the first record. because of dr.Read(); (some one told me that read() always started from the first record).
Altaful Haq
4-Aug-15 5:26am
View
ya i know i am not export of asp but i stuck with it. and i just need help to solve my problem. if you can just correct my mistakes in the code and suggest your way of going so @RYAN_DEV
Altaful Haq
4-Aug-15 2:00am
View
in the above solution we get a value and assign it into the textbox e.g the value is 7 now i want to make that value 8... how would i do so.
Altaful Haq
3-Aug-15 8:49am
View
if i click the second record in grid view is load the first record into the form...
Altaful Haq
3-Aug-15 7:35am
View
Thanks a lot nice work
Altaful Haq
3-Aug-15 7:30am
View
Thanks to all yes its was the syntax error i have added extra spaces after UID = QUID and so on.... thanks for helping Dears.......
Altaful Haq
3-Aug-15 4:32am
View
Thanks i got my mistake in my Form_Disable function i was try to send args which was the problem in the coding.
Altaful Haq
3-Aug-15 3:27am
View
my question is that how would i will call the method @Ralf Meier
Altaful Haq
3-Aug-15 3:27am
View
my question is that how would i will call the method @Ralf Meier
Altaful Haq
3-Aug-15 0:49am
View
Can I increment that value by if yes than help me..
Altaful Haq
3-Aug-15 0:28am
View
Thanks a lot Richard Deeming love your working with explanation...
Altaful Haq
31-Jul-15 8:55am
View
Still Not Working with txtUID.Text = dr["ID"].ToString();
#CPallini
Altaful Haq
31-Jul-15 0:56am
View
web asp.net
Altaful Haq
30-Jul-15 2:47am
View
oh sorry my question is simply that which data-type is have to used for the above fields in database..
Altaful Haq
30-Jul-15 2:47am
View
oh sorry my question is simply that which data-type is have to used for the above fields in database..
Altaful Haq
30-Jul-15 2:39am
View
Deleted
oh sorry my question is simply that which data-type is have to used for the above fields in database..
Altaful Haq
29-Jul-15 5:47am
View
it have value which i can see in gridview but not her and the is only one record
Altaful Haq
29-Jul-15 5:44am
View
what does you means by break point
Altaful Haq
29-Jul-15 5:34am
View
invalid Operational exception was unhandled by User
{"Invalid attempt to call MetaData when reader is closed."}
Altaful Haq
28-Jul-15 3:49am
View
can you make it right
Show More