15,905,971 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 Alok.singh1166 (Top 82 by date)
Alok.singh1166
29-Sep-15 1:36am
View
how this will work .where I need to write these code in order to achieve my tasks complete please help.
Alok.singh1166
30-May-14 1:02am
View
Sampath there is no error what ever code you have provided and i have tried is working fine in IE or Chrome but not working in FireFox. after FF 4.0 no js file is supported to mozialfirefox.
Please check.
Regards
Alok Singh
Alok.singh1166
29-May-14 5:13am
View
i already tried this .But it is not working with firfox
Please Help
Alok.singh1166
29-May-14 4:20am
View
some body please help me
Alok.singh1166
29-May-14 2:30am
View
Please help me
Alok.singh1166
28-May-14 3:17am
View
Somebody please help me :(
Alok.singh1166
28-May-14 2:46am
View
As we can understand user has logged on in one project he can save or bookmark any page in the browser or he has set the property in browser ( continue where i left) now browser is closed.Next time when user will open the browser that same page will load there i want some condition in java script to restrict him. I want my java script code to run first . How i will achieve this please help. :)
Alok.singh1166
14-Apr-14 3:04am
View
some body help me i need help
Alok.singh1166
11-Apr-14 5:02am
View
Please Somebody help me :(
Alok.singh1166
19-Jan-14 2:26am
View
Actuly i was confused thats why i posted here .
Thank you :)
Alok.singh1166
16-Jan-14 12:18pm
View
Thank You i got it :)
Alok.singh1166
16-Jan-14 12:15pm
View
I want this to be done by C# code
Alok.singh1166
6-Jan-14 14:07pm
View
Cannot implicitly convert type 'System.Web.UI.WebControls.ListItem' to 'string'
-------------------------
Things are working fine under ddl.Items.FindByText("city"); this error is coming please do the nees full
Alok.singh1166
6-Jan-14 11:10am
View
what i want when my page is running then if user will clic on edit then one edit mode of gridview that dropdown shold show list of cities how to do this in edit mode
Alok.singh1166
6-Jan-14 10:59am
View
yes in database i have only one city but i want to add many cities how to achive that
Alok.singh1166
6-Jan-14 10:35am
View
I am not able to populate list of cities in dropdown it is showing only one city name which is coming from database
Alok.singh1166
6-Jan-14 7:05am
View
I dont think it is help full please give some other way
Alok.singh1166
5-Jan-14 21:48pm
View
i want to show a list of item in a gridview drop downlist on edit mode.How to do this please help
Alok.singh1166
5-Jan-14 14:55pm
View
Actuly i have to add list of items in that dropdown
Alok.singh1166
5-Jan-14 12:23pm
View
:) NP Thank you did finaly.
Alok.singh1166
5-Jan-14 12:03pm
View
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
var name = e.NewValues["name"] as string;
string age = (string)e.NewValues["age"];
string userid = (string)e.Keys[0];
UpdateProduct(userid, name, age);
}
This is working fine Thank you so much
Alok.singh1166
5-Jan-14 11:59am
View
Thank You So much David. :)
Actuly there was castig problem i solved that thank you so much :)
Alok.singh1166
5-Jan-14 11:45am
View
Specified cast is not valid.
This error is coming
Alok.singh1166
5-Jan-14 11:40am
View
Thank you so much David actuly i am getting some casting error can you please help me here. My method is
private void UpdateProduct(int userid, string name, decimal age)
for fixed line i am getting error.
Alok.singh1166
5-Jan-14 11:33am
View
for solution 3 this error is coming
in this code for var age = e.newValues["age"] as decimal .Error is coming like the as operator must be use with reference type or null type decimal is not null type
Alok.singh1166
5-Jan-14 11:18am
View
in this code for var age = e.newValues["age"] as decimal .Error is coming like the as operator must be use with reference type or null type decimal is not null type
Alok.singh1166
5-Jan-14 11:12am
View
hi David Please check solution 4 for markup
and do the needfull.
Alok.singh1166
5-Jan-14 11:03am
View
Deleted
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowcancelingEdit" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="userid" OnRowEditing="GridView1_RowEditing" >
<columns><asp:BoundField DataField="userid" HeaderText="userid" ReadOnly="true" />
<asp:TemplateField HeaderText="name"><itemtemplate><%# Eval("name")%>
<edititemtemplate><asp:TextBox runat="server" ID="txtname" Text='<%# Eval("name")%>' />
<asp:TemplateField HeaderText="age"><itemtemplate><%# Eval("age")%><edititemtemplate><asp:TextBox runat="server" ID="txtage" Text='<%# Eval("age")%>' />
<asp:CommandField ShowEditButton="True" ButtonType="Button" />
Alok.singh1166
5-Jan-14 11:02am
View
Deleted
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowcancelingEdit" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="userid" OnRowEditing="GridView1_RowEditing" >
<columns>
<asp:BoundField DataField="userid" HeaderText="userid" ReadOnly="true" />
<asp:TemplateField HeaderText="name"><itemtemplate><%# Eval("name")%>
<edititemtemplate><asp:TextBox runat="server" ID="txtname" Text='<%# Eval("name")%>' />
<asp:TemplateField HeaderText="age"><itemtemplate><%# Eval("age")%><edititemtemplate><asp:TextBox runat="server" ID="txtage" Text='<%# Eval("age")%>' />
<asp:CommandField ShowEditButton="True" ButtonType="Button" />
Alok.singh1166
5-Jan-14 11:01am
View
Deleted
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowcancelingEdit" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="userid" OnRowEditing="GridView1_RowEditing" >
<columns>
<asp:BoundField DataField="userid" HeaderText="userid" ReadOnly="true" />
<asp:TemplateField HeaderText="name"><itemtemplate><%# Eval("name")%>
<edititemtemplate><asp:TextBox runat="server" ID="txtname" Text='<%# Eval("name")%>' />
<asp:TemplateField HeaderText="age"><itemtemplate><%# Eval("age")%><edititemtemplate><asp:TextBox runat="server" ID="txtage" Text='<%# Eval("age")%>' />
<asp:CommandField ShowEditButton="True" ButtonType="Button" />
Alok.singh1166
5-Jan-14 10:57am
View
Deleted
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowcancelingEdit" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="userid" OnRowEditing="GridView1_RowEditing" >
<columns>
<asp:BoundField DataField="userid" HeaderText="userid" ReadOnly="true" />
<asp:TemplateField HeaderText="name">
<itemtemplate>
<%# Eval("name")%>
<edititemtemplate>
<asp:TextBox runat="server" ID="txtname" Text='<%# Eval("name")%>' />
<asp:TemplateField HeaderText="age">
<itemtemplate>
<%# Eval("age")%>
<edititemtemplate>
<asp:TextBox runat="server" ID="txtage" Text='<%# Eval("age")%>' />
<asp:CommandField ShowEditButton="True" ButtonType="Button" />
Alok.singh1166
5-Jan-14 10:10am
View
on using this also i am getting same error i.e( Input string was not in a correct format.)
int userid= Int32.Parse(GridView1.DataKeys[0][e.RowIndex].ToString());
Alok.singh1166
5-Jan-14 10:07am
View
This is the gridview markupj
----------
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowcancelingEdit" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="userid" OnRowEditing="GridView1_RowEditing" >
<columns>
<asp:BoundField DataField="userid" HeaderText="userid" ReadOnly="true" />
<asp:TemplateField HeaderText="name">
<itemtemplate>
<%# Eval("name")%>
<edititemtemplate>
<asp:TextBox runat="server" ID="txtname" Text='<%# Eval("name")%>' />
<asp:TemplateField HeaderText="age">
<itemtemplate>
<%# Eval("age")%>
<edititemtemplate>
<asp:TextBox runat="server" ID="txtage" Text='<%# Eval("age")%>' />
<asp:CommandField ShowEditButton="True" ButtonType="Button" />
Alok.singh1166
5-Jan-14 10:04am
View
Thanks David i used DataKeyNames property now it is showing different error.
----------------------------------------------------------
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 49:
Line 50:
Line 51: int userid = Int32.Parse(GridView1.DataKeys[e.RowIndex].Value.ToString());
Alok.singh1166
5-Jan-14 9:54am
View
still i am getting same error ( actuly it is showing row index value =0
Alok.singh1166
5-Jan-14 9:50am
View
still i am getting same error ( actuly it is showing row index value =0)
Alok.singh1166
5-Jan-14 9:49am
View
Deleted
still i am getting same error
Alok.singh1166
13-Dec-13 23:51pm
View
Please some body help me
Alok.singh1166
13-Dec-13 10:26am
View
plz help me
Alok.singh1166
13-Dec-13 10:26am
View
plz help me
Alok.singh1166
13-Dec-13 10:12am
View
actually i just installed TFS 2010 & While configuring Application-Tier i am getting feature missing error.
Error [ Application Tier ] TF255151: Service is not installed: IIS
Error [ Application Tier ] TF255397: Windows Authentication has not been configured as a role service in Internet Information Services (IIS). Team Foundation Server requires that Windows Authentication is installed as one of the role services in IIS.
Alok.singh1166
13-Dec-13 10:08am
View
i tried inetpub but not able to open root directory
Alok.singh1166
13-Dec-13 10:00am
View
when i am writing this ( http://localhost ) url in my browser it is showing
HTTP Error 404. The requested resource is not found
Alok.singh1166
13-Dec-13 9:53am
View
when i am writing this ( http://localhost ) url in my browser it is showing
HTTP Error 404. The requested resource is not found.
Alok.singh1166
13-Dec-13 9:42am
View
i tried same but its not working for me
Alok.singh1166
13-Dec-13 9:41am
View
windows 8 pro version of operating system
Alok.singh1166
31-Jul-13 8:35am
View
Thanks for the answer i have one more query that i have a pdf in my asp.net page and that i want to print on linkbutton click..(http://localhost/orange//documents/applicants/<%=CustomerIde %>/AccountStatement.pdf )i have that pdf on this location this i have to print can you plz help me
Alok.singh1166
19-Jul-13 7:59am
View
see i have a button on the page and on button click i have to update the addres simply iam using the update query which has updated the data in database but same time means same login i want my address should update on the page also . on page it is showing the updated addres on next login please help
Alok.singh1166
19-Jul-13 7:56am
View
i used respons.redirect("mypage.aspx");
to recallthe page and even manually i refreshed the page but still its not coming
Alok.singh1166
19-Jul-13 7:26am
View
that is also not working
Alok.singh1166
19-Jul-13 7:04am
View
this is not working
Alok.singh1166
19-Jul-13 2:17am
View
okay Can you give me any solution for this
Alok.singh1166
19-Jul-13 2:17am
View
Deleted
ok Can you me any solution for this
Alok.singh1166
18-Jul-13 4:27am
View
okay
Alok.singh1166
7-Jul-13 11:44am
View
oh actuly i wast a question can you plz help me
Alok.singh1166
7-Jul-13 11:31am
View
i didnt get you
Alok.singh1166
7-Jul-13 11:22am
View
Thanks man it was really help full
Alok.singh1166
5-Jul-13 9:16am
View
Thanks Alot i got that :)
Alok.singh1166
5-Jul-13 8:56am
View
Plz clarify it i did'nt get this ( i have to click on the button then i have to create dynamicaly a panel and inside that i want one radiobutton and one lable)
Alok.singh1166
5-Jul-13 8:55am
View
Deleted
Plz clarify it i did'nt get this ( i have to click on the button then i have to create a panel and inside that i want one radiobutton and one lable)
Alok.singh1166
5-Jul-13 8:52am
View
What is this placeHOldertable
Alok.singh1166
29-Jun-13 6:24am
View
Thanks prasad i got that .
Regards
Alok singh
Alok.singh1166
29-Jun-13 5:49am
View
Deleted
Thanks prasad but i do not understand any thing from their plz make it more clear.
Alok.singh1166
29-Jun-13 4:44am
View
Can you tell me that what exactly this code will do
[System.Web.Services.Protocols.SoapDocumentMethodAttribute
Alok.singh1166
29-Jun-13 4:37am
View
yes you are write but iam unable to understand the code
Alok.singh1166
29-Jun-13 4:11am
View
Thanks Alot Prasad
Alok.singh1166
23-Jun-13 6:07am
View
That is a web application and i used session for login from customer table..
Alok.singh1166
29-May-13 15:54pm
View
This is client side i am asking ( how to get files from folder or directory and bind to Gridview in asp.net using C#)
Alok.singh1166
14-May-13 2:40am
View
Thank's
Alok.singh1166
27-Apr-13 15:37pm
View
i am using Browser.Navigate in C#
here i want to navigate using java script in place to any url
Alok.singh1166
25-Apr-13 10:34am
View
Can any provide me any solution on this plz ..
Alok.singh1166
25-Apr-13 8:47am
View
Deleted
please read once
Alok.singh1166
25-Apr-13 8:47am
View
Deleted
Please read my question once ( i am automating a page using work flow in between a html page a popup window is coming i want to handle that popup window using workflow and c# code.
Alok.singh1166
23-Apr-13 10:32am
View
Hi Pallavi your code is working fine but when you will enter only upper case and you will not use any lower case and special character at that time it is not throwing any error.you try entering only upper case and see no error will come .but what i want if user enters only uppercase then it should ask to enter upper case lower case and special character..
Alok.singh1166
21-Apr-13 22:27pm
View
its not working pls help
Alok.singh1166
21-Apr-13 13:00pm
View
hi Pepin z Hane i used ValidationExpression: [.]{5,7} but attribute missin error is coming
Alok.singh1166
21-Apr-13 12:40pm
View
I entered only letters no special character i used and it is not throwing any error.
Alok.singh1166
21-Apr-13 12:32pm
View
please help
Alok.singh1166
21-Apr-13 12:25pm
View
Hi OriginalGriff according to my requirement in password txt field user should enter at least one upper case ,one lower case and one special character .at least one is mandatory until & unless it should throw error.pls help
Alok.singh1166
21-Apr-13 12:11pm
View
Hi pallavi i used this code but its not what i want .according to my need user should enter atleast one upper case,lower case and special character.if user entered only uppercase and not entered any special character it should throw error..
Alok.singh1166
21-Apr-13 11:47am
View
Hi Nelek in the above link you can find a image under Remark there in application menu there is a area application menu auxiliarypane i want to resize that area using xaml or code because i am not finding any way to control that area
Alok.singh1166
21-Apr-13 11:35am
View
THANK'S PALLAVI
this is the code i am using but what i want in password txt field user there should be at least one upper case one lower case and one special character .but this regex expresion is not throwing any error while entering only charaters.pls help
private void txtpassword(object sender, EventArgs e)
{
try
{
if (System.Text.RegularExpressions.Regex.IsMatch("$#%hg#$Y%#$", @"^(?=.*[a-zA-Z])(?=.*[!@#$%^&*])"))
return;
}
catch (Exception ey)
{
label3.Visible = true;
label3.Text = "Enter at least one uppercase and leter in uppercase and lower case & special character";
}
}
Show More