15,902,939 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 Python 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 fak_farrukh (Top 84 by date)
fak_farrukh
24-Oct-14 0:08am
View
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'jqGrid'
That is what error is
fak_farrukh
24-Oct-14 0:00am
View
<table id="Jgrid"></table>
This is html Id
fak_farrukh
23-Oct-14 9:56am
View
I have updated the question write at the top
fak_farrukh
21-Oct-14 14:53pm
View
yes it gives me same result
fak_farrukh
21-Oct-14 9:19am
View
still problem
fak_farrukh
21-Oct-14 8:57am
View
Mvc application
fak_farrukh
16-Jun-14 6:05am
View
Deleted
I want convert into yyyy/MM/dd format
fak_farrukh
16-Jun-14 6:04am
View
i want to convert into "yyyy/MM/dd" this format
fak_farrukh
6-Feb-14 2:16am
View
Now i have updated more code
fak_farrukh
6-Feb-14 2:11am
View
look on objActiveDept i have all ids department which i have get from query. Now i want to det deparments name using foreach loop and save into an array. hope you understand now
fak_farrukh
6-Feb-14 2:03am
View
look on objActiveDept i have all ids department which i have get from query.
Now i want to det deparments name using foreach loop and save into an array.
hope you understand now
fak_farrukh
22-Jan-14 5:20am
View
on pageload i want it false and when i checked the checked box then it become true..
for now i will use checkbox..
fak_farrukh
22-Jan-14 4:41am
View
where i have to write this code i want to detect automatically not using checked box
fak_farrukh
22-Jan-14 4:28am
View
how use it cant understand that
fak_farrukh
11-Dec-13 2:26am
View
No i have used both port 25,587 but error still remain.
port 25 error fail sending mail
port 587 error Mailbox unavailable. The server response was: This is a submission only port. You must authenticate before sending mail
fak_farrukh
10-Dec-13 3:53am
View
i have given 587 port number but now error is Mailbox unavailable. The server response was: This is a submission only port. You must authenticate before sending mail
fak_farrukh
9-Dec-13 3:29am
View
i have give port num and check firewall now error is "Mailbox unavailable. The server response was: This is a submission only port. You must authenticate before sending mail"
fak_farrukh
9-Dec-13 2:14am
View
This is complete error
"failure sending mail"
fak_farrukh
9-Dec-13 1:59am
View
i have remove this enableSSL=true but error still remains
fak_farrukh
14-Jun-13 6:08am
View
code is already in the button
fak_farrukh
14-Jun-13 3:44am
View
thanx it is done
but when my insert code run after pressing button of upload its shows nothing and when i again run and upload image its show the image
here is my insert code
SqlCommand cmd1 = new SqlCommand("Insert into imagePath(imagename,imgpath) values(@imagename,@imgpath)", con);
cmd1.Parameters.AddWithValue("@imagename", username);
cmd1.Parameters.AddWithValue("@imgpath", "Images/" + username);
cmd1.ExecuteNonQuery();
please tell me
fak_farrukh
14-Jun-13 3:10am
View
please now tell if imagename is already exists in database then update otherwise insert the data how will i do this???
fak_farrukh
13-Jun-13 1:33am
View
name of the image is store on session name
give any example to do this
fak_farrukh
13-Jun-13 1:31am
View
Image1.ImageUrl = "Images/" + username;
but if i give only this then its shows nothing on the page_upload it upload image but on page_load shows nothing
fak_farrukh
13-Jun-13 1:25am
View
Image1.ImageUrl = "Images/" + username + ".jpg";
in this i have added ".jpg" to show picture but it will only show pictures with extension .jpg but i want pictures of .png and .gif extension..
fak_farrukh
12-Jun-13 6:26am
View
what should be written on page load????
fak_farrukh
12-Jun-13 4:09am
View
still the same result
fak_farrukh
10-Jun-13 4:51am
View
the file saves like this for example: john.jpeg
but session value is john so it does not identify
fak_farrukh
10-Jun-13 3:05am
View
problem is that it is not showing picture after logout.means when i again login from that id it shows nothing
fak_farrukh
3-Jun-13 2:08am
View
protected void Page_Load(object sender, EventArgs e)
{
string username = (string)(Session["UserAuthentication"]);
if(Session["UserAuthentication"]!=null)
{
Label2.Text=username;
}
else
{
Response.Redirect("Login.aspx");
}
fak_farrukh
31-May-13 3:22am
View
Deleted
i have set to 90 minutes but same problem is comming
fak_farrukh
30-May-13 3:28am
View
login.aspx page
protected void Button1_Click(object sender, EventArgs e)
{
try
{
// string username = txtusername.Text;
// string pwd = txtpassword.Text;
SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Administrator\Desktop\Orignal Project Part 1\Inventory Management System\IMS.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True");
string query = "SELECT [user].* FROM [user] where u_name='" + txtusername.Text + "' and pwd='" + txtpassword.Text + "'";
SqlCommand com = new SqlCommand(query, con);
con.Open();
// Session["username"] = txtusername.Text;
if (txtusername.Text == "admin")
{
if (com.ExecuteReader().HasRows)
{
Response.Redirect("index.html");
Label3.Text = "successfully";
}
else
{
Label3.Text = "not successfully";
txtusername.Text = "";
txtpassword.Text = "";
}
}
else if (txtusername.Text == "user")
{
if (com.ExecuteReader().HasRows)
{
Response.Redirect("userinventory.aspx");
Label3.Text = "successfully";
}
else
{
Label3.Text = "not successfully";
txtusername.Text = "";
txtpassword.Text = "";
}
}
con.Close();
}
catch (Exception ex)
{
Console.Write("" + ex.Message);
}
fak_farrukh
27-May-13 8:52am
View
add to where
fak_farrukh
27-May-13 4:16am
View
thanks again
fak_farrukh
27-May-13 4:08am
View
i have an index page in which i have my task tab in menu.now when a person name john login in then in my task tab it should show only john task if another person login its should show his task but the index page must be same for all of them
how can i do this...
fak_farrukh
27-May-13 3:59am
View
ok i have another question but not this post related can i ask yu here
fak_farrukh
27-May-13 3:55am
View
yesssss and it is done
thank yu sir
fak_farrukh
27-May-13 3:23am
View
int IDD = Convert.ToInt32(ID.ToString());
but what is about to do with this error
fak_farrukh
27-May-13 3:13am
View
int IDD = Convert.ToInt32(ID.ToString());
input string was not in correct format
error on this line
fak_farrukh
27-May-13 3:01am
View
when i press f 11 its says 'F' is already defined 'aa' is already defined and many more
fak_farrukh
27-May-13 2:58am
View
using this code on pageload
public void data()
{
try
{
//con = new SqlConnection(connstring);
string query = "SELECT ['2013 Projects$'].* FROM ['2013 Projects$']";
da = new SqlDataAdapter(query, connstring);
dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
}
catch (Exception)
{
}
fak_farrukh
27-May-13 2:44am
View
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
onrowcancelingedit="GridView1_RowCancelingEdit"
onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound"
onrowdeleted="GridView1_RowDeleted" onrowdeleting="GridView1_RowDeleting"
onrowediting="GridView1_RowEditing" onrowupdated="GridView1_RowUpdated"
onrowupdating="GridView1_RowUpdating"
onselectedindexchanged="GridView1_SelectedIndexChanged" Width="1009px"
style="margin-left: 0px" BackColor="White" BorderColor="White"
BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
GridLines="None">
<columns>
<asp:TemplateField HeaderText="ID">
<edititemtemplate>
<asp:TextBox ID="TextBoxEditID" runat="server" Text='<%# Bind("ID") %>' />
<itemtemplate>
<asp:Label ID="LabelID" runat="server" Text='<%# Bind("ID") %>' />
<footertemplate>
<asp:TextBox ID="TextBoxID" runat="server" />
<asp:TemplateField HeaderText="Node">
<edititemtemplate>
<asp:TextBox ID="TextBoxEditNode" runat="server" Text='<%# Bind("Node") %>' />
<itemtemplate>
<asp:Label ID="LabelNode" runat="server" Text='<%# Bind("Node") %>' />
<footertemplate>
<asp:TextBox ID="TextBoxNode" runat="server" />
<asp:TemplateField HeaderText="Title">
<edititemtemplate>
<asp:TextBox ID="TextBoxEdittitle" runat="server" Text='<%# Bind("title") %>' />
<itemtemplate>
<asp:Label ID="Labeltitle" runat="server" Text='<%# Bind("title") %>' />
<footertemplate>
<asp:TextBox ID="TextBoxrtitle" runat="server" />
<asp:TemplateField HeaderText="Source">
<edititemtemplate>
<asp:TextBox ID="TextBoxEditsource" runat="server" Text='<%# Bind("source") %>' />
<itemtemplate>
<asp:Label ID="Labelsource" runat="server" Text='<%# Bind("source") %>' />
<footertemplate>
<asp:TextBox ID="TextBoxsource" runat="server" />
<asp:TemplateField HeaderText="Scope">
<edititemtemplate>
<asp:TextBox ID="TextBoxEditscope" runat="server" Text='<%# Bind("scope") %>' />
<itemtemplate>
<asp:Label ID="Labelscope" runat="server" Text='<%# Bind("scope") %>' />
<footertemplate>
<asp:TextBox ID="TextBoxscope" runat="server" />
<asp:CommandField ButtonType="Button" ShowEditButton="True" />
fak_farrukh
27-May-13 2:37am
View
i have debug the code but it does not goes to rowupdating event
fak_farrukh
27-May-13 2:23am
View
i had add this same result
fak_farrukh
24-May-13 3:51am
View
thank yu :)
fak_farrukh
24-May-13 2:45am
View
but when i run project image control show nothing i want is shows the last image that was saved
fak_farrukh
23-May-13 2:34am
View
it is showing multiple images i want one image at one time
fak_farrukh
21-May-13 2:44am
View
how to use that??
fak_farrukh
13-May-13 3:13am
View
cant understand
fak_farrukh
13-May-13 3:09am
View
i only want this "SELECT ID, Name, [Content], size, data FROM Connectivity where ID=@ID"; query changes to this "SELECT ID, Name, [Content], size, data FROM IN where ID=@ID"; query when different button is press
i cant understand how to do that??
fak_farrukh
13-May-13 2:08am
View
i have removed extra code
fak_farrukh
8-May-13 7:12am
View
thanxxxxxxxxxxxxxx
fak_farrukh
8-May-13 6:58am
View
i'm using input type="file"
fak_farrukh
30-Apr-13 5:37am
View
how to use roles i dont know that
fak_farrukh
30-Apr-13 2:44am
View
noooo
fak_farrukh
30-Apr-13 2:29am
View
nothing
fak_farrukh
30-Apr-13 1:56am
View
"the computer is not running internet information services version 4 or higher"
i'm getting that error while running iise manager 6.0
fak_farrukh
26-Apr-13 2:08am
View
GetGridDetails(true);
cant find this??
fak_farrukh
26-Apr-13 0:37am
View
i have download a html template and now i want to add in my project
fak_farrukh
25-Apr-13 7:43am
View
how will i use it??
fak_farrukh
25-Apr-13 1:37am
View
how to check trailing spaces
fak_farrukh
24-Apr-13 6:15am
View
what query i have to write
fak_farrukh
24-Apr-13 3:48am
View
Object reference not set to an instance of an object.
execption is coming after adding this code
fak_farrukh
23-Apr-13 6:59am
View
nothing happing
fak_farrukh
22-Apr-13 8:19am
View
in this i can only get hardDisks Column but if i want to select different value from combox it will not run because in query harddisk column se selected.
so how to get more column??
fak_farrukh
22-Apr-13 6:38am
View
i'm getting the message "No Records Found".
tell me what is the problem
fak_farrukh
22-Apr-13 1:20am
View
noo again same result
fak_farrukh
22-Apr-13 1:09am
View
can't understand
fak_farrukh
22-Apr-13 1:03am
View
i have change but same issue
fak_farrukh
19-Apr-13 7:03am
View
no error nad also showing nothing
fak_farrukh
19-Apr-13 2:54am
View
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
string query = "SELECT [Model], [SN] FROM ['ISB VAS Nodes$']";
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(query, constr);
da.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
GridView1.DataSource = ds;
GridView1.DataBind();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string searchTXt = GridView1.SelectedValue.ToString();
string query = "SELECT [Model], [SN] FROM ['ISB VAS Nodes$']";
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(query, constr);
da.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
GridView1.DataSource = ds;
GridView1.DataBind();
}
fak_farrukh
19-Apr-13 2:51am
View
i have applied your code its giving execption "Data keys must be specified on GridView 'GridView1' before the selected data keys can be retrieved. Use the DataKeyNames property to specify data keys"
string searchTXt=ddlComments.SelectedValue.ToString(); // at this line
fak_farrukh
19-Apr-13 2:34am
View
but if i want to hard code these values??
fak_farrukh
19-Apr-13 2:27am
View
problem in update query sir
fak_farrukh
19-Apr-13 2:25am
View
sant osha in your code the values of dropdownlist are coming from database??
fak_farrukh
19-Apr-13 2:21am
View
it is present and i am using it
look at the top select query is present and its working
fak_farrukh
18-Apr-13 6:55am
View
"A call to Bind was not well formatted. Please refer to documentation for the correct parameters to Bind"
that was the error
fak_farrukh
18-Apr-13 6:54am
View
"A call to Bind was not well formatted. Please refer to documentation for the correct parameters to Bind"
that was the error
fak_farrukh
18-Apr-13 6:40am
View
when i remove that i give error
fak_farrukh
18-Apr-13 1:30am
View
thanxxx its done
but what is purpose of using executereader.hasrows
fak_farrukh
18-Apr-13 1:14am
View
yessssss
fak_farrukh
17-Apr-13 8:35am
View
its done
thanxx
fak_farrukh
17-Apr-13 6:38am
View
i'm making a sign in page and want a full page picture at background
fak_farrukh
17-Apr-13 6:25am
View
i'm making a sign in page and want a full page picture at background
Show More