16,012,508 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 advancedansh (Top 48 by date)
advancedansh
22-Jan-13 11:42am
View
thanks friends but i got the problem it is server problem basically my domains is maped with two ips that the real cause
advancedansh
21-Jan-13 4:05am
View
have to try to open my web app .yes in some system it open .this not the problem with pages .application load on system it works fine.as i also tested with my local iis
advancedansh
1-May-12 2:00am
View
Hoping that it should be resolved soon i had talk to my hosting server provider and ask to check the system log .
advancedansh
25-Apr-12 8:21am
View
kk sir thanks for ur time
advancedansh
25-Apr-12 8:15am
View
i am using default session
advancedansh
25-Apr-12 8:03am
View
sir problem is only when data is going to be inserted it automatically redirect to login page witout saving data but not for every time we can say 4 out of 10 times .sometimes it insert and move to infomation page that the record is inserted with out any problem i hope this make you under stand the correct problem.
advancedansh
25-Apr-12 7:48am
View
connection timeout is set to 1 hour by defalut
advancedansh
25-Apr-12 7:47am
View
it is already set to 900 seconds
advancedansh
25-Apr-12 7:35am
View
sir i want some detail about 2 point i have no idea about this please let me clear it pls
advancedansh
25-Apr-12 7:33am
View
No in starting i use ajax but now i remove ajax control so no update panel was usedand i dont use any http link sir
advancedansh
25-Apr-12 7:32am
View
yes i already try on my local intanet and also on my iss it working fine
advancedansh
25-Apr-12 7:30am
View
the global.asax file code is show below
<%@ Application Language="C#" %>
<script runat="server">
void Application_Start(object sender, EventArgs e)
{
Application["users"] = 0;
}
void Application_End(object sender, EventArgs e)
{
// Code that runs on application shutdown
}
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
}
void Session_Start(object sender, EventArgs e)
{
int i = (int)Application["users"];
i = i + 1;
Application["users"] = i;
}
void Session_End(object sender, EventArgs e)
{
int i = (int)Application["users"];
i = i - 1;
Application["users"] = i;
}
</script>
please chech is effect something
advancedansh
25-Apr-12 7:27am
View
yes i checked it locally it working fine .but when i published on internet it shows problem i want to ask one thing that is that problem will relate to response.redirect() or server.transfer() is this are two method will effect session values.
advancedansh
25-Apr-12 7:24am
View
Thanks for your replay sir but i already said above that the defalut session time is 1 hour so you 2 link is not suited for me.
advancedansh
24-Nov-11 2:36am
View
thanks for rpl.but i am not clear
<div id="header"> <img src="images/task.jpg" alt=" LOGO"/></div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<div id="nav" style="width: 218px" >
<ul>
<li>
TASK MASTER
</li>
<li>
ASSIGN MASTER
</li>
<li>
USER MASTER
</li>
<li>
REPORT MASTER
</li><li></li>
<li></li>
<li></li>
</ul>
</div>
<div id="content">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</div>
</div>
my problem is that when i click link the another page loads
but i want to change content place holder pls help.
just like gmail
advancedansh
13-Sep-11 5:54am
View
can u give me any example how the device controller work
advancedansh
13-Sep-11 5:52am
View
thanks bro really i need this type of help .nw i m confident now and make a call to manufacturer.
advancedansh
13-Sep-11 5:33am
View
i can connect it but i dont know how to unload data from the memory of device to dataset
advancedansh
13-Sep-11 5:11am
View
is there are commonds of specific device to do communication
advancedansh
13-Sep-11 5:11am
View
yes i want .
advancedansh
13-Sep-11 3:38am
View
if You Had application to read virtual port then pls give me link
advancedansh
31-Aug-11 4:16am
View
I think u didnot read the question i say didnt want to use any dll
advancedansh
19-Aug-11 5:58am
View
Deleted
if i would provide u my API would u like to Help
advancedansh
16-Aug-11 6:42am
View
Act i wnat to do that when the year is change the whole data in the tables of this year will save in other table or we can say table with tag as a year
advancedansh
9-Aug-11 2:16am
View
really thanks
advancedansh
8-Aug-11 3:32am
View
I need windows form pls help for me provide some info..
advancedansh
7-Aug-11 8:30am
View
hello.
thanks for showing ur intrest for providing me info .But first of all i want to let u know i am working on window application is this info is worth full for me or not.
advancedansh
6-Aug-11 8:16am
View
thanks i know this solution .
advancedansh
4-Aug-11 1:12am
View
ya under stand but i dont know how to take out the numeric part from sting
advancedansh
2-Aug-11 2:02am
View
thanks but would u like to tell me if i do this then user select two diff date in dtp but same time let sy 12 o'clock then what happen it only give same days difference and hours diff = 0;
advancedansh
29-Jul-11 4:00am
View
thanks sir..
but i know some basics but i did not know to integrate this finger print reader with application so please give idea what are the steps to do it..in simple language..
advancedansh
29-Jul-11 3:32am
View
Deleted
Thanks for telling me ..but please help me about this topic act i have to work alot but i am not able to do that because i need basics about doing this.
advancedansh
27-Jul-11 6:48am
View
thanks bro..
advancedansh
27-Jul-11 4:58am
View
thanks but can you give me the example of this that how can i restrict the property value
advancedansh
15-Jul-11 1:37am
View
ok i will provid you soon thanks
advancedansh
14-Jul-11 0:40am
View
act i deleted all because they are nt working and showing lot of error in my application so i cant show ..sry for that
advancedansh
13-Jul-11 7:41am
View
K THANKS I WANT TO KNOW HOW BYTE VALUE IS PASS TO QUERY
advancedansh
13-Jul-11 7:10am
View
Deleted
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Drawing.Imaging;
using System.IO;
namespace temp
{
public partial class visitor : Form
{
SqlConnection con = new SqlConnection("server=BGIL001\\SQLEXPRESS;database=temp1;Integrated Security=SSPI");
SqlCommand cmd;
SqlDataAdapter adap;
public visitor()
{
InitializeComponent();
}
private void btnsave_Click(object sender, EventArgs e)
{
string FirstName = txtfirstname.Text;
string LastName = txtlastname.Text;
string EmailID = txtemailid.Text;
string IdentityOption = cbidentityyoption.SelectedItem.ToString();
string IdentityNo = txtidentityno.Text;
string Company = txtcompany.Text;
string Address = txtaddress.Text;
string City = txtcity.Text;
byte[] Image = readfile(txtbrowse.Text);
string ToMeet = txttomeet.Text;
string Department = txtdepartment.Text;
string Purpose = cbpurpose.SelectedText;
string VisitorType = cbvisitortype.SelectedText;
con.Open();
cmd = new SqlCommand("insert into visitor1(First_Name,Last_Name,Email_ID,Identity_Option,Identity_No,Company,Address,City,Picture,To_Meet,Department,Purpose,Visitor_type) values('" + txtfirstname.Text + "','" + txtlastname.Text + "','" + txtemailid.Text + "','" + cbidentityyoption.SelectedItem.ToString() + "','" + txtidentityno.Text + "','" + txtcompany.Text + "','" + txtaddress.Text + "','" + txtcity.Text + "','Image.value.toString()','" + txttomeet.Text + "','" + txtdepartment.Text + "','" + cbpurpose.SelectedItem.ToString() + "','" + cbvisitortype.SelectedItem.ToString() + "')", con);
cmd.ExecuteNonQuery();
con.Close();
}
private void btnbrowse_Click(object sender, EventArgs e)
{
openFileDialog1.Title = "insert an image";
openFileDialog1.InitialDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.Personal);
openFileDialog1.FileName = "";
openFileDialog1.Filter = "JPEG IMAGES|*.jpg|GIF IMAGES|*.gif";
openFileDialog1.ShowDialog();
string choosenfile = openFileDialog1.FileName;
txtbrowse.Text = openFileDialog1.FileName;
pbimagephoto.Load(choosenfile);
//pbimagephoto.Image = openFileDialog1.OpenFile(choosenfile);
}
byte[] readfile(string spath)
{
byte[] data = null;
FileInfo finfo = new FileInfo(spath);
long numbytes = finfo.Length;
FileStream fstream = new FileStream(spath, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fstream);
data = br.ReadBytes((int)numbytes);
return data;
}
private void btnshow_Click(object sender, EventArgs e)
{
//Initialize SQL adapter.
adap = new SqlDataAdapter("Select Picture from visitor1 where Pass_Code=2", con);
//Initialize Dataset.
DataSet DS = new DataSet();
//Fill dataset with ImagesStore table.
adap.Fill(DS, "visitor1");
//Fill picturebox with image.
byte[] imageData = (byte[])DS.Tables["visitor1"].Rows[0]["Picture"];
//Initialize image variable
Image newImage;
//Read image data into a memory stream
using (MemoryStream ms = new MemoryStream(imageData, 0, imageData.Length))
{
ms.Write(imageData, 0, imageData.Length);
//Set image variable value u
advancedansh
13-Jul-11 6:51am
View
i m also use it without boolean parameter but its nt working
advancedansh
13-Jul-11 0:23am
View
thanks friend..
but i tried but its nt working
advancedansh
12-Jul-11 4:27am
View
i need a demo window application i leant alot but i need to do some practice pls send me some demo basics
advancedansh
12-Jul-11 4:24am
View
i like to make a window application
advancedansh
11-Jul-11 8:31am
View
thanks it hope so it would me
advancedansh
11-Jul-11 8:08am
View
hii think first u hv to take three check box(books,cd,both)then it would be possible
advancedansh
11-Jul-11 6:22am
View
is this code would help me in window application
advancedansh
11-Jul-11 6:21am
View
i already check that link
void fill()
{
int i;
DataSet ds = new DataSet();
string str = "select * from user1 ";
adap = new SqlDataAdapter(str, con);
adap.Fill(ds, "user1");
dataGridView1.AutoGenerateColumns = false;
dataGridView1.DataSource = ds.Tables["user1"];
dataGridView1.Columns["FirstName"].DataPropertyName = "FirstName";
dataGridView1.Columns["LastName"].DataPropertyName = "LastName";
dataGridView1.Columns["username"].DataPropertyName = "username";
dataGridView1.Columns["password"].DataPropertyName = "password";
int cou =ds.Tables[0].Rows.Count;
for (i = 0; i < cou; i++)
{
bool chk = Convert.ToBoolean(ds.Tables[0].Rows[i][4]);
if (chk == true)
{
//dataGridView1.Rows[i].Cells[4].Value
}
}
dataGridView1.Columns["checkbox"].DataPropertyName = "checkbox";
pls help me in this respect
advancedansh
11-Jul-11 6:17am
View
hi,
sry this not what i m looking for.
thanks
advancedansh
11-Jul-11 4:48am
View
act i have a data grid view in which i have a check box ..
and i have a data base table in which one coloumn name is select which is boolean type i m accessing the table value in data set if select value is true i want to checked the check box automatically pls help
Show More