15,885,546 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 Yatin chauhan (Top 110 by date)
Yatin chauhan
31-May-13 1:13am
View
i know that to access from world wide we need to purchase domain...i just want to access that in my local network only. everyone withing LAN network they all are access by IP name .i want to do access that by NAME instead of IP.
Yatin chauhan
30-May-13 8:49am
View
I have Website and i published that now i configure that in my local IIS server. i can access that buy IP name like 192.168.2.77:80 now i want access that by giving name like mywebsite so how can i do that.....!!!
Yatin chauhan
2-Mar-13 0:22am
View
Thank You Sheikh Muhammad Haris...!!
Yatin chauhan
2-Mar-13 0:21am
View
Thx Sandeep...
Yatin chauhan
1-Mar-13 2:36am
View
I have Already add AutoGeneratedColumn="false"..
There is some problem i have many field on that grid and me hide some filed which is not neccesory. when i set all field show now its works fine....
Again tx _Amy and Amit....!!!
Yatin chauhan
1-Mar-13 2:07am
View
Thx For Reply Amit
I have Done but still textbox created automatically inside gridview row while click cancel button...
Yatin chauhan
26-Feb-13 4:44am
View
yes i have add that too..but its alwys false....
actully me write code on desing page. like
<div class="menus">
<ul>
<%
ApplicationLogic objBAL = new ApplicationLogic();
if (!this.IsPostBack)
{
DataTable dt = objBAL.GetDataForReports("SELECT * FROM DashBoardMenus Where ParentMenuId=0 and isdeleted=0 ORDER BY OrderID");
DataTable dt1;
int TableId = 0;
for (int i = 0; i < dt.Rows.Count; i++)
{
dt1 = objBAL.GetDataForReports("SELECT * FROM DashBoardMenus Where ParentMenuId=" + dt.Rows[i]["MenuID"].ToString() + " and isdeleted=0 ORDER BY OrderID");
Response.Write("<li class='with-submenu'>");
Response.Write("
<div class='label'> " + dt.Rows[i]["MenuName"].ToString() + " </div>
");
for (int j = 0; j < dt1.Rows.Count; j++)
{
if (Global.IsSuperUser == false)
{
TableId = Convert.ToInt32(dt1.Rows[j]["TableId"].ToString());
if (objBAL.CheckModuleRight(DBOperation.View, CommonInfo.CurrentUserID, TableId))
Response.Write("<ul><li>
" + dt1.Rows[j]["MenuName"] + "
</li></ul>");
}
else
{
TableId = Convert.ToInt32(dt1.Rows[j]["TableId"].ToString());
Response.Write("<ul><li>
" + dt1.Rows[j]["MenuName"] + "
</li></ul>");
}
}
Response.Write("</li>");
}
}
%>
</ul>
</div>
Yatin chauhan
4-Feb-13 3:54am
View
Hello Kishor Sir,
Thank For Information i solve that by your code.
Thank You Sir.
Yatin chauhan
1-Feb-13 1:09am
View
Heloo SA and JemiM
Now i set like this in BAL Layer
public string UserName
{
get
{
return _UserName;
}
set
{
_UserName = value;
}
}
public string BranchName
{
get
{
return _BranchName;
}
set
{
_BranchName = value;
}
}
and in my login page
session[CommonInfo]= ObjBAL.CommonInfo
now when i first time redirect to Default page all value set as i need like username and brnachname etc..
but when i tried to other page session get null value in that page..
Yatin chauhan
1-Feb-13 0:19am
View
Heloo SA
i have did like that but still it get null in all pages.
Yatin chauhan
1-Feb-13 0:14am
View
I have set that but when i switch to any page all time session get null value.
i have set in my BAL layer like this.
public string UserName
{
get
{
if (HttpContext.Current.Session["UserName"] == null)
return null;
return HttpContext.Current.Session["UserName"].ToString();
}
}
public string BranchName
{
get
{
if (HttpContext.Current.Session["BranchName"] == null)
return null;
return HttpContext.Current.Session["BranchName"].ToString();
}
}
Yatin chauhan
22-Nov-12 2:06am
View
its already in gridview.
here is my full aspx page code:-
<asp:GridView ID="GrdUser" runat="server" DataKeyNames="UserID" CssClass="Grid" AutoGenerateColumns="false">
<columns>
<asp:BoundField DataField="EmployeeName" HeaderText="User Name" />
<asp:TemplateField HeaderText="Rights">
<itemtemplate>
<asp:ImageButton ID="imgbtn" ImageUrl="~/Images/icon2.jpg" runat="server" Width="15" Height="15" onclick="imgbtn_Click" ToolTip="Click To Show Rights" />
<PagerStyle CssClass="GridPager" />
<alternatingrowstyle cssclass="GridAltItem">
<PagerSettings PageButtonCount="5" />
<rowstyle cssclass="GridItem">
<HeaderStyle CssClass="GridHeader" />
<!--Packing Details-->
<asp:Button ID="btnShowPopup" runat="server" style="display:none" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnlpopup" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
<animations>
<onshown>
<fadein duration=".75" fps="20">
<asp:Panel ID="pnlpopup" runat="server" BackColor="White" Height="50%" Width="90%">
<table style="border:Solid 3px #888" cellpadding="0" cellspacing="0">
<tr style="background-color:#D55500">
<td>
<asp:HiddenField ID="HiddenField1" runat="server" Value="0" />
</td>
</tr>
<tr>
<td align="center">
-: Rights Details :-
</td>
</tr>
<tr>
<td>
<asp:GridView ID="GrdRightDetails" runat="server" CssClass="mGrid"
AutoGenerateColumns="false" GridLines="Both" CaptionAlign="Top" CellPadding="2" CellSpacing="2" onrowdatabound="GrdRightDetails_RowDataBound">
<columns>
<asp:TemplateField HeaderText="PageNo">
<itemtemplate>
<asp:Label ID="lblPageID" runat="server" Text='<%#Eval("ID") %>' >
<asp:Templa
Yatin chauhan
22-Nov-12 1:42am
View
What value store i in that hiddenfiled which is inside my popup control??
Yatin chauhan
22-Nov-12 1:28am
View
It Select All the check-box. actually i have open one model popup box and inside that i bind grid view.
here is that :-
<asp:GridView ID="GrdRightDetails" runat="server" CssClass="mGrid"
AutoGenerateColumns="false" GridLines="Both" CaptionAlign="Top" CellPadding="2"
CellSpacing="2" onrowdatabound="GrdRightDetails_RowDataBound">
<columns>
<asp:TemplateField HeaderText="PageNo">
<itemtemplate>
<asp:Label ID="lblPageID" runat="server" Text='<%#Eval("ID") %>' >
<asp:TemplateField HeaderText="PageName">
<itemtemplate>
<asp:Label ID="lbldisplayname" runat="server" Text='<%#Eval("DisplayName") %>' >
<asp:TemplateField HeaderText="Status">
<itemtemplate>
<asp:CheckBox ID="ChkStatus" runat="server" />
Yatin chauhan
19-Nov-12 9:59am
View
@Tadit Dash: Button is in Child Gridview.
Yatin chauhan
8-Nov-12 10:38am
View
THX YOU I RESOLVE THIS.
THANK YOU SO MUCH
Yatin chauhan
8-Nov-12 8:51am
View
Thx To all you are right i get the solution its solve....Thx Njy
Yatin chauhan
7-Nov-12 3:15am
View
If you need that when your session is timeout or expire then u must have to refresh your page.
Yatin chauhan
6-Nov-12 7:26am
View
Thanks For Reply..
i solve that problem.
Yatin chauhan
6-Nov-12 1:32am
View
Hi Rajesh,
now i get the probelm. i have bind data source in dropdown . but i bind country list after state .now i bind country before state and based on that bind state so its solve the problem..
Thank You Sir..!!!
Yatin chauhan
3-Nov-12 10:24am
View
i have already do this for confirm box.. now i want Prompt box that user input sting in that and i want to update that sting in database table.
Yatin chauhan
3-Nov-12 9:29am
View
it will create problem while i publish in my IIS. everytime same problem with print option from IIS.
Yatin chauhan
3-Nov-12 2:36am
View
Response.redirect not open in new window. i have try to this too.
Yatin chauhan
2-Nov-12 1:14am
View
have you open this in firefox..!!
Yatin chauhan
30-Oct-12 10:07am
View
yes i get that error. and change this like same.now its work fine in local system and open this ..but i publish this on my IIS 5.1 again same probelm there is no any action ...
Yatin chauhan
30-Oct-12 9:59am
View
its give error like :-
"The system cannot find the file specified"
Yatin chauhan
30-Oct-12 9:52am
View
it give error like :-
The Process object must have the UseShellExecute property set to false in order to use environment variables.
Yatin chauhan
30-Oct-12 9:42am
View
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(pdfPath);
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized;
System.Diagnostics.Process.Start(startInfo);
startInfo.UseShellExecute = false;
Yatin chauhan
30-Oct-12 9:38am
View
i have write this code and its give the error so me add this line
startInfo.UseShellExecute = false;
now my pdf open in local but still it give error like
"The specified executable is not a valid Win32 application."
Yatin chauhan
30-Oct-12 8:56am
View
sir i know that .. in task manager acrobate32.exe start. but PDF not open. in the same way when run this code in local machine then its work fine and direct open the PDF... where i am wrong??
Yatin chauhan
25-Oct-12 7:23am
View
i have already debug and in my labelfilename display a full path of my pdf file location like
D:\CourierRate\FedExShipPDF\789456134.pdf
now the file store there but when i open its not do that...!!
Yatin chauhan
25-Oct-12 4:55am
View
This is in C# code. i have using FedEx web service for create an shipment PDF file .its work nice and store my folder but when i open after created its not opened. its give error like that
Yatin chauhan
20-Oct-12 9:08am
View
Can You Explain more about your Problem..So we can help you...!!!
Yatin chauhan
20-Oct-12 9:04am
View
thx for that...
i need a page load event fire while i click a button.
Yatin chauhan
5-Oct-12 9:37am
View
Thank You for Replay aysha.. This not aspx project. this is in asp pages...
i have .mdb file in my other server and my website in other server.. i want that database.
Yatin chauhan
3-Oct-12 10:47am
View
What You Want To Do...!!
Yatin chauhan
3-Oct-12 6:21am
View
Yes Zoltan....!!
Yatin chauhan
3-Oct-12 6:04am
View
Thank a Lot Dylan Morley....!!!!
Yatin chauhan
1-Oct-12 9:44am
View
I have do the same for that. but i get only 3 or 4 rowindex value and again it start from begin....!!!
Yatin chauhan
1-Oct-12 0:52am
View
Oky Oky Sir....!!
I solve that
Thank You So much for Reply...!!
Yatin chauhan
21-Sep-12 10:22am
View
Which service i have to start sir....!!!!
Yatin chauhan
21-Sep-12 10:17am
View
Ajax tool kit already there in bin folder...!!
Yatin chauhan
13-Sep-12 1:39am
View
I have also the same Problem and Same Error. And till not find any Method or any Property for that. when i look in wsdl there is one specification for that we have to set purpose of shipment type is SOLD or NOT_SOLD. but i don't know how can i set that...!!!
Yatin chauhan
8-Sep-12 1:55am
View
Hello i have already download WSDL and web service. but how can i intgrate this with my website...!!!
Yatin chauhan
4-Sep-12 5:20am
View
Thank You Prasad_Kulkarni....!!!
Yatin chauhan
4-Sep-12 5:20am
View
Thank You Gerxy....!!!
Yatin chauhan
29-Aug-12 8:17am
View
I have already write in div tag. but still the same problem...!!
Yatin chauhan
28-Aug-12 0:59am
View
Thank You Sandeepsir Mewara
Yatin chauhan
28-Aug-12 0:59am
View
Yes i set min value and check like that :-
if (OrderDate.Equals(DateTime.MinValue))
db.AddInParameter(objcmd, "@OrderDate", DbType.Date, DBNull.Value);
else
db.AddInParameter(objcmd, "@OrderDate", DbType.Date, OrderDate);
now its working fine..
Thank You Christian Amado
Yatin chauhan
27-Aug-12 8:45am
View
here in my code DateTime? dt = null;
not allow null value so that is the problem.
Yatin chauhan
27-Aug-12 8:33am
View
Thank You Sandeepsir for reply.
i found the problem and get the solution now its run correct.
Yatin chauhan
25-Aug-12 0:54am
View
I dont have dropdown.. i have bind that dropdown dynamic which already store in database in two column like:-
Quantity Unit
100 Gram
200 Gram
300 Gram
1 Kilogram
i bound in dropdown with concate.
Yatin chauhan
23-Aug-12 9:05am
View
but i have two grid when i click on my GrdOrder_EditCommand at that time i want to bind GrdOrder grid which i created dynamically...!!!!
Yatin chauhan
23-Aug-12 8:24am
View
there is no any editIndex method or property for GrdOrder. i create grdorder dynamically.
Yatin chauhan
23-Aug-12 5:48am
View
No LAKSS there is no any error behind that. when i debug its run clearly...!!
Yatin chauhan
23-Aug-12 5:47am
View
Hello Prabhakaran Soundarapandian,
I dont want to add in table..i have already add. this SP is for get the record and bind in datagrid only.
Yatin chauhan
22-Aug-12 1:51am
View
Hello Ryanb31
You right if i have to insert in then if found so me update...Thank you for posting.
Yatin chauhan
21-Aug-12 8:50am
View
Hello Ryanb31
No When i create an order for the OrderMaster Table at that time i insert OrderProduct Table. So OrderID is same for one Record.
Yatin chauhan
20-Aug-12 10:15am
View
here is my Store Procedure For insert:-
USE [DomesticRates]
GO
/****** Object: StoredProcedure [dbo].[InsertUpdateOrderProduct] Script Date: 08/20/2012 18:36:37 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[InsertUpdateOrderProduct]
@OrderID INT,
@ProductName VARCHAR(100),
@Quantity INT,
@Price FLOAT
AS
BEGIN
IF EXISTS (SELECT 1 From dbo.OrderProduct OP where @OrderID=OrderID)
BEGIN
UPDATE
dbo.OrderProduct
SET
OrderID=@OrderID,
ProductName=@ProductName,
Quantity=@Quantity,
Price=@Price
Where
OrderID=@OrderID
END
ELSE
BEGIN
INSERT INTO dbo.OrderProduct
(OrderID,ProductName,Quantity,Price)
SELECT
@OrderID,@ProductName,@Quantity,@Price
END
END
Yatin chauhan
20-Aug-12 10:14am
View
There is no erroer... i have insert 3 record in gridview all are found while debuge but only last insert in database. @Gladiatron
Yatin chauhan
20-Aug-12 10:13am
View
Deleted
here is my Store Procedure For insert:-
USE [DomesticRates]
GO
/****** Object: StoredProcedure [dbo].[InsertUpdateOrderProduct] Script Date: 08/20/2012 18:36:37 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[InsertUpdateOrderProduct]
@OrderID INT,
@ProductName VARCHAR(100),
@Quantity INT,
@Price FLOAT
AS
BEGIN
IF EXISTS (SELECT 1 From dbo.OrderProduct OP where @OrderID=OrderID)
BEGIN
UPDATE
dbo.OrderProduct
SET
OrderID=@OrderID,
ProductName=@ProductName,
Quantity=@Quantity,
Price=@Price
Where
OrderID=@OrderID
END
ELSE
BEGIN
INSERT INTO dbo.OrderProduct
(OrderID,ProductName,Quantity,Price)
SELECT
@OrderID,@ProductName,@Quantity,@Price
END
END
Yatin chauhan
20-Aug-12 10:13am
View
Deleted
There is no erroer... i have insert 3 record in gridview all are found while debuge but only last insert in database. @Gladiatron
Yatin chauhan
17-Aug-12 3:39am
View
oky sir but how can it allows multiple product insert in OrderProduct table. when i insert a recorde in OrderMaster table then i have to declare an OrderID = SCOPE_IDENTITY() like that.
Yatin chauhan
13-Aug-12 7:41am
View
Hey Thank You So much i resolve that ..Thank You So Much Santosh...!!!
Yatin chauhan
13-Aug-12 6:48am
View
i know that but i can i retrieve Gram . i store 1 for gram and 2 for kilogram in database.
how can i get gram using boundcolumn in datagrid???
Yatin chauhan
31-Jul-12 9:18am
View
Thx u Now i Solved that........
Yatin chauhan
31-Jul-12 6:35am
View
oky .....now i delete the DBhelper folder and make this 2 class file directly in app_code folder in root directory.
Yatin chauhan
31-Jul-12 6:32am
View
Ye i think You right...but how can i solve that.
Yatin chauhan
31-Jul-12 6:30am
View
How Can i add that reference?
there is no any dll for that .its just a class file only.
Yatin chauhan
31-Jul-12 6:03am
View
oky Welcome.....!!!
Yatin chauhan
30-Jul-12 1:20am
View
Oky Me Sorry..!!!
Yatin chauhan
28-Jul-12 3:29am
View
Thank For Reply ....
Yatin chauhan
28-Jul-12 3:12am
View
Deleted
Thx u So much Dear....
Solved..
Yatin chauhan
26-Jul-12 10:19am
View
Deleted
Make a back up of Bin folder.
then build your website again in VS. then update the aspx page and bin folder in IIS.
Thank You,
Yatin Chauhan
Yatin chauhan
26-Jul-12 10:12am
View
Always Welcome Dear..........!!!!!!!!!
Yatin chauhan
26-Jul-12 8:01am
View
What you want to pass in string??? can u give more specification about that what u want actually???
Yatin chauhan
23-Jul-12 7:48am
View
Hello AlluvialDeposit
i appreciated you for giving me nice answer. i like and solve my problem. Don't think like that i defiantly vote for you.
Thank You.
Yatin chauhan
23-Jul-12 7:12am
View
if i don't want to use try catch block then is there any other block or method ??
Yatin chauhan
23-Jul-12 7:12am
View
if i don't want to use try catch block then is there any other block or method ??
Yatin chauhan
21-Jul-12 2:01am
View
I have table like this.
table name [Order]
ID int Primary key
UserID int Forien Key
Table Name [User]
ID int Primary Key
FirstName varchar
LastName varchar
Email varchar
City varchar
Mobile varchar
Yatin chauhan
19-Jul-12 7:40am
View
I try to this too but it give the error like that :-
"ORDER BY items must appear in the select list if SELECT DISTINCT is specified."
this error because of we don't select order id in select statement. so it give error....
Yatin chauhan
19-Jul-12 7:39am
View
Yes i know that. so what i have to do for that.
Yatin chauhan
19-Jul-12 7:38am
View
I try to this too but it give the error like that :-
"ORDER BY items must appear in the select list if SELECT DISTINCT is specified."
this error because of we don't select order id in select statement. so it give error....
Yatin chauhan
19-Jul-12 1:50am
View
Hello Arul
i have distinct but it still display all the records.
Yatin chauhan
19-Jul-12 1:48am
View
Hello Sandeep Sir,
i try the same but same record display. still it display all the record of Priyam Shah.
Thank You.
Yatin chauhan
18-Jul-12 11:17am
View
i try Distinct too but same record display. no change.
Yatin chauhan
17-Jul-12 2:41am
View
Why you want to add the image in Session.???
Yatin chauhan
16-Jul-12 3:21am
View
can you put your code here that we can try to solve that problem.
Yatin chauhan
14-Jul-12 5:52am
View
just put some code what you try then tell your problem dear.
Yatin chauhan
14-Jul-12 5:48am
View
hello rizwan muhammed khan and AK . no i get that function Sendmail its return type if void so , now me change that bool and error solved.
Thax to so much ..........
have a nice day
Yatin chauhan
6-Jul-12 2:18am
View
have you try anything???
Yatin chauhan
5-Jul-12 10:43am
View
Why you need label to use click event???
please specify something more.
Yatin chauhan
5-Jul-12 10:08am
View
Its for to see that its content data in that or not. just for conformation to delete the history.
Yatin chauhan
4-Jul-12 10:25am
View
Please specify some more information that what you want ?
Yatin chauhan
3-Jul-12 6:29am
View
Please Specify some more details about your question that what you want to do . So we can understand and try to solve.
Yatin chauhan
3-Jul-12 2:28am
View
When Click on image button i want to display dropdown.
Please give more specification so that it can give the solution.
Yatin chauhan
3-Jul-12 2:22am
View
You store cuser_id in session["aaa"]. so when u call the session in other page it only display cuser_id in other page. plz store all the data which u want to transfer in next page. then call the session["aaa"] in other page.
Yatin chauhan
28-Jun-12 6:27am
View
Can u post some code which you are execute for insert query???
Yatin chauhan
28-Jun-12 5:47am
View
Nice Description Sandeep sir.
Yatin chauhan
28-Jun-12 5:10am
View
In Which line this error occured?????
Yatin chauhan
28-Jun-12 3:12am
View
nice answer.....
Yatin chauhan
28-Jun-12 3:00am
View
What you want in gridview ? i means what u need exact in gridview?
Yatin chauhan
27-Jun-12 10:45am
View
Thank You for Replay TIM. i know i have done with extension. but i want to do by manual.
Thank You again.
Yatin chauhan
20-Jun-12 3:07am
View
sir i have try some of that , with the using of jquery and sql server. but i just wnt to simple chat only.
Yatin chauhan
19-Jun-12 9:10am
View
That is i know sir, for that i have to write some code behind that , but is there any control of ajax? there is JaxterChat control but how can i download that?
Yatin chauhan
16-Jun-12 2:48am
View
your checkbox return null value thats y its give error. plz debuge and check that.
Yatin chauhan
16-Jun-12 2:04am
View
Hello Ranjit
Please clarify with some more description about your problem that we can try to solve.
Yatin chauhan
15-Jun-12 11:10am
View
for what kind of things you want to reduce a stock. give more description.
Yatin chauhan
15-Jun-12 6:25am
View
hello sandeep sir.. is there any jquery tool or ajax tool that we bind direct with dotnet control for chat???
Yatin chauhan
14-Jun-12 11:03am
View
thank you sandeep
Show More