15,891,136 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 vaibhav mahajan (Top 67 by date)
vaibhav mahajan
28-Sep-16 6:45am
View
Worked for me. Thanks Sheikh Muhammad Haris.
vaibhav mahajan
27-Apr-15 10:09am
View
Thnks :)
vaibhav mahajan
4-Jun-14 6:26am
View
it has some limitation.
vaibhav mahajan
19-Nov-13 6:47am
View
please elaborate the question.
vaibhav mahajan
10-Oct-13 3:17am
View
Its Ok Keerthi.
pls mark it as answer and rate it.
vaibhav mahajan
4-Apr-13 4:50am
View
aspnet_regiis is right.
vaibhav mahajan
28-Feb-13 8:37am
View
i tried to convert in csv.
but it is not converting
Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "Customers.csv"));
// Response.ContentType = "text/csv";
vaibhav mahajan
28-Jan-13 0:04am
View
can u put the code here.
vaibhav mahajan
24-Jan-13 4:03am
View
what does u actually want?
string concatenation or what?
vaibhav mahajan
24-Jan-13 4:00am
View
pls share the code.
vaibhav mahajan
22-Jan-13 3:25am
View
well both windows are independent..they don't have any data relation in them....(only database is common).....when i work on child window and search for data(it takes quite a lot time )...in the mean time when query is processing...any request made on parent window is entertained only after child window gets data.
vaibhav mahajan
22-Jan-13 3:24am
View
well both windows are independent..they don't have any data relation in them....(only database is common).....when i work on child window and search for data(it takes quite a lot time )...in the mean time when query is processing...any request made on parent window is entertained only after child window gets data.
vaibhav mahajan
20-Nov-12 7:21am
View
nops its not working..!!
vaibhav mahajan
20-Nov-12 7:12am
View
its not happening..!!
vaibhav mahajan
20-Nov-12 7:09am
View
namespace?
vaibhav mahajan
26-Sep-12 5:53am
View
dont use ie6...
vaibhav mahajan
26-Sep-12 3:37am
View
pls write the details..
vaibhav mahajan
25-Sep-12 7:15am
View
fill the first drop down in !ispostback..then 2 nd on the selected index change of 1 st....n similarly for 3rd..
hope this will solve
vaibhav mahajan
25-Sep-12 6:47am
View
pls debug ur code...r u filling ur drop down on page load?
vaibhav mahajan
24-Aug-12 6:24am
View
i agree with Mits Machhi..
vaibhav mahajan
3-Aug-12 6:30am
View
it worked for me..!!..;)
vaibhav mahajan
3-Aug-12 3:07am
View
System.Math.Round(Convert.ToDouble(_otif));
it is not working..!!
vaibhav mahajan
3-Aug-12 2:49am
View
yes...bt
float _otif;
Convert.ToInt32(Convert.ToDouble(_otif);
but above statements are not working..!!
vaibhav mahajan
27-Jul-12 8:32am
View
:)
vaibhav mahajan
27-Jul-12 8:25am
View
@mits:the row_created event really done the job for me..!!
thnks a lot
cheers..!!
vaibhav mahajan
27-Jul-12 7:45am
View
can u pls help us out..!!
vaibhav mahajan
27-Jul-12 7:44am
View
@mits macchi:i really thankful 4 ur intrest
vaibhav mahajan
27-Jul-12 7:30am
View
Error:Input string was not in a correct format.
vaibhav mahajan
27-Jul-12 7:25am
View
it is giving error at the
int index = System.Convert.ToInt32(e.CommandArgument);
line
vaibhav mahajan
27-Jul-12 7:17am
View
protected void grdOTIF_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName=="rate")
{
int index = System.Convert.ToInt32(e.CommandArgument);
GridViewRow gr = (GridViewRow)grdOTIF.SelectedRow;
//gr.RowIndex=
string _trans_code = "";
string _trans_name = "";
string _from_loc = "";
string _to_loc = "";
string _load_type = "";
string _queryString = "";
_trans_code = gr.Cells[2].Text.ToString();
_trans_name = gr.Cells[3].Text.ToString();
_from_loc = gr.Cells[4].Text.ToString();
_to_loc = gr.Cells[5].Text.ToString();
_load_type = gr.Cells[6].Text.ToString();
_queryString = _trans_code + ",";
_queryString = _queryString +_trans_name +",";
_queryString = _queryString + _from_loc + ",";
_queryString = _queryString + _to_loc + ",";
_queryString = _queryString + _load_type;
//Response.Write("<script>window.open('../BILLpassSYSTEM/frmDataEntry.aspx?param=" + _query_string_que + "','_blank');</script>");
}
if (e.CommandName == "days")
{
foreach (GridViewRow gr in grdOTIF.Rows)
{
}
}
}
html-------------
<asp:Panel ID="panelOTIF" runat="server" Width="1000px">
<asp:GridView ID="grdOTIF" runat="server" CssClass="MyGridView" BackColor="#DEBA84"
BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
Height="88px" OnRowCommand="grdOTIF_RowCommand" OnRowEditing="grdOTIF_RowEditing" AutoGenerateColumns="False">
<footerstyle backcolor="#F7DFB5" forecolor="#8C4510">
<rowstyle backcolor="#FFF7E7" forecolor="#8C4510">
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" Font-Underline="True" ForeColor="White" />
<columns>
<asp:TemplateField HeaderText="RATE">
<itemtemplate>
<asp:Button ID="btnrate" runat="server" Text="Add Rate" CommandName="rate" />
<asp:TemplateField HeaderText="DAYS">
<itemtemplate>
<asp:Button ID="btndays" runat="server" Text="Add Days" CommandName="days" />
<asp:BoundField DataField="TRANS_CODE" HeaderText="TRANS CODE" />
<asp:BoundField DataField="TRANS_NAME" HeaderText="TRANS NAME" />
<asp:BoundField DataField="FROM_LOC" HeaderText="FROM_LOC" />
<asp:BoundField DataField="TO_LOC" HeaderText="TO_LOC" />
<asp:BoundField DataField="LOAD_TYPE" HeaderText="LOAD_TYPE" />
<asp:BoundField DataField="RATE" HeaderText="RATE" />
<asp:BoundField DataField="DAYS" HeaderText="DAYS" />
vaibhav mahajan
27-Jul-12 7:13am
View
e.RowIndex does not come in row command event
vaibhav mahajan
27-Jul-12 7:08am
View
it gives error here
int index = System.Convert.ToInt32(e.CommandArgument);
vaibhav mahajan
27-Jul-12 7:04am
View
they are having different ids
vaibhav mahajan
27-Jul-12 7:03am
View
dear...how can u give same id for different button...!!..pls elaborate
vaibhav mahajan
27-Jul-12 7:01am
View
@_Amy :it is having errors....no overload method for GridViewRow takes 1 argument
vaibhav mahajan
27-Jul-12 6:55am
View
i will only check the button i clicked...bt how to check which Row's button is clicked?
vaibhav mahajan
27-Jul-12 6:50am
View
@MIts:I tried it ...bt its not working..!!
vaibhav mahajan
27-Jul-12 6:50am
View
@_Amy:can u pls elaborate..!!
vaibhav mahajan
27-Jul-12 6:44am
View
i want to check which "ROW" is clicked in row_command event
vaibhav mahajan
27-Jul-12 6:42am
View
pls read the question..!!
vaibhav mahajan
27-Jul-12 6:41am
View
i know this.....bt how to check which row is clicked?...
vaibhav mahajan
24-Jul-12 2:50am
View
thnks codeBegin..!!
vaibhav mahajan
12-Jun-12 6:19am
View
could you can please elaborate it OriginalGriff ?
vaibhav mahajan
16-May-12 7:40am
View
RIGHT bhagirathimfs I ACCEPT UR SUGGESTION...BT..WHAT SHUD I DO NOW..?..IT IS ALREADY HOSTED ON TO THE SERVER..N USERS ARE USING IT..!!
vaibhav mahajan
25-Apr-12 5:09am
View
again 5 prasad..!!..u r awesome..!!
vaibhav mahajan
23-Apr-12 4:08am
View
thnks prasad..!!
but..
Suppose I have a table containing only one record ...there are two columns having datatype as datetime.......from_date is having a value of 01/01/2012 and to_date having a value of 04/03/2012 ...i want a list of dates between 01/01/2012 and 04/03/2012..
vaibhav mahajan
19-Apr-12 1:56am
View
here is the link
http://www.codeproject.com/Questions/368445/problem-while-running-the-application-in-VS2008-Ob
vaibhav mahajan
19-Apr-12 1:55am
View
We have tried to add your comment 3 times without success. Our servers are just a little overworked. Sorry.
vaibhav mahajan
18-Apr-12 5:33am
View
the same application is running ok on another PC..bt my PC is showing this kinda error..!!
vaibhav mahajan
7-Apr-12 3:02am
View
DATASET CAN BE THE ANSWER
vaibhav mahajan
5-Apr-12 6:36am
View
check ur code
vaibhav mahajan
20-Mar-12 1:26am
View
Yes i agree..!!..but it will not solve the issue from the programmers side..!!. i want to make compatible application irrespective of any downloads from the users end..!!
vaibhav mahajan
14-Mar-12 7:18am
View
looks like difference between 4 and 5 matters u a lot..;-)
vaibhav mahajan
1-Mar-12 1:51am
View
do u want to delete data automatically..?..or with the user's interaction..?
vaibhav mahajan
22-Feb-12 7:45am
View
Dim str As StringBuilder = New StringBuilder()
Dim stringWriter As New StringWriter(str)
Dim _html As HtmlTextWriter = New HtmlTextWriter(stringWriter)
Dim ds As New DataSet()
ds = Session("CNF_Dataset_Mail")
Dim _gv As New GridView()
_gv = New GridView()
_gv.DataSource = Nothing
_gv.DataSource = ds
_gv.DataBind()
_gv.RenderControl(_html)
vaibhav mahajan
22-Feb-12 7:44am
View
i have tried FreetextBox.
it works too..!!...but after sending the mail it shows in a HTML format to the client.!!
vaibhav mahajan
22-Feb-12 7:42am
View
i have my desired data in a grid.
i want to mail the contents of that grid in a tabled manner.
and the body of the mail is a textbox.
vaibhav mahajan
20-Feb-12 4:47am
View
what shud i learn in sql-server..?
vaibhav mahajan
20-Feb-12 4:47am
View
what shud i learn in sql-server..?
vaibhav mahajan
20-Feb-12 4:47am
View
what shud i learn in sql-server..?
vaibhav mahajan
10-Feb-12 2:08am
View
I want following kind of a system
..mails are sent automatically from the web server everyday on 07.00 am.
then?
vaibhav mahajan
9-Feb-12 6:30am
View
i dont want to send mail when any user is using the application.
it should be automatically sent from the server itself without the user intervention.
vaibhav mahajan
9-Feb-12 6:28am
View
Hi venkat,
i dont want to send mail when any user is using the application.
it should be automatically sent from the server itself without the user intervention.
vaibhav mahajan
31-Jan-12 4:09am
View
Sorry johnriders!!
Its not working
vaibhav mahajan
30-Jan-12 1:48am
View
m using the age old...visual web developer 2005
vaibhav mahajan
30-Jan-12 1:38am
View
m running as usual...F5
vaibhav mahajan
30-Jan-12 1:37am
View
there is no error msg.
Show More