15,895,011 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 maverick12131 (Top 21 by date)
maverick12131
21-Dec-13 1:05am
View
function Validation() {
$("[id$=txtFileName]").keypress(function(event) {
var regex = new RegExp("^[-a-zA-Z0-9' ]+(\\.[-a-zA-Z0-9' ]+)?$");
if (event.which != 40 && event.which != 41 && event.which != 42 && event.which != 43 && event.which != 44) {
var str = String.fromCharCode(!event.charCode ? event.which : event.charCode);
if (regex.test(str))
return true;
}
event.preventDefault();
return false;
})
}
even after escaping the backslash, the reg ex dosen't accept a dot
maverick12131
20-Dec-13 2:19am
View
its not a mandate to have the dot always.
its just that the dot should be persent only 1 time (zero or one occourance)
also the reg ex you mentioned is not accepting any dots. Not even 1
^[-a-zA-Z0-9' ]+(\.[-a-zA-Z0-9' ]+)?$
maverick12131
16-Oct-13 0:29am
View
I don't have problem displaying the popup.
the dropdown in the popup dosent bind the given data and remains blank.- that's the problem
maverick12131
16-Jul-13 9:16am
View
what difference will it make anyway
maverick12131
16-Jul-13 9:03am
View
also the WebDataGrid1 is showing "null" while debugging.
maverick12131
16-Jul-13 8:59am
View
dt has 10 records. I already checked that
maverick12131
3-Jul-13 1:48am
View
This will do, but what if I have more than 1 file to be displayed.
how to show multiple files using a link button and image.
Can u guide me how to use repeater control for this purpose
maverick12131
2-Jul-13 9:36am
View
visibility is true
maverick12131
2-Jul-13 7:41am
View
I want it to be displayed a Image followed by the file name
aspx page:
<asp:LinkButton ID="LinkButton1" runat="server">
<img runat="server" id="Image2"/>
.cs page
if (fi.Extension == ".txt")
{
Image2.Src = @"~\Upload\x_icon.png";
LinkButton1.Text = fi.Name;
LinkButton1.Visible = true;
}
else if (fi.Extension == ".docx")
{
Image2.Src = @"~\Upload\Add.jpg";
LinkButton1.Text = fi.Name;
LinkButton1.Visible = true;
}
but in this case i only get text in hyperlink and not the image
maverick12131
2-Jul-13 5:59am
View
Deleted
In PageLoad()
{
Icon ico = Icon.ExtractAssociatedIcon(@"d:\MyZipFile.zip");
}
I get a icon object here.
now how do i display it on my asp page
maverick12131
2-Jul-13 5:16am
View
Deleted
I want a the img to be clickable and also display the name of file along with icon.
the name should also be clickable which should download the file
maverick12131
1-Jul-13 1:37am
View
Now I am doing this.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{ if (e.Row.RowType == DataControlRowType.DataRow)
{ var firstCell = e.Row.Cells[1];
firstCell.Controls.Clear();
Button btn_Check = new Button();
btn_Check.ID = "btn_Check";
btn_Check.Text = firstCell.Text;
btn_Check.CommandArgument = btn_Check.ID;
btn_Check.CommandName = "Check";
firstCell.Controls.Add(btn_Check); } }
protected void GridView1_OnRowCommand(object sender, GridViewCommandEventArgs e)
{ Response.Write("btn_Check Click event called"); }
But still nothing happens on the click of the button in the grid
Also the GridView1_OnRowCommand is never called on the button click
maverick12131
28-Jun-13 6:26am
View
the button is not getting added to the grid if I use GridView1_RowCreated instead of GridView1_RowDataBound.
Also In GridView1_RowDataBound button is added to the grid but it dosent call the btn_Check_Click method
maverick12131
24-Jun-13 15:18pm
View
thanks a ton :)
maverick12131
21-Jun-13 4:40am
View
Thanks a TON :)
maverick12131
14-Jun-13 5:29am
View
this solved the last entry arr[3] = "";
this is removed
but how to resolve the leading extra space in following
arr[1] = " Sham Dass"
arr[2] = " Suresh Khanna"
Also I have to remove any duplicate entries in the array
thanks
maverick12131
13-Jun-13 9:19am
View
Sorry, Updated my question now!!
maverick12131
26-May-13 15:46pm
View
Those are not tables in the database. Those are DataTables in C#
Can you please guide me accordingly
maverick12131
21-May-13 2:19am
View
also, unless and un till the first 2 columns are filled the last column should be disable.
Once the first 2 columns are filled then the last column should be editable
maverick12131
20-May-13 13:24pm
View
In the link provided by you the insert in grid is done by separate text box and buttons outside the grid.
I want the text boxes to be inside the grid itself for inserting data
further more if the value of the drop down box is "grey" then for that row should not be editable.
how to deal with that?
maverick12131
20-May-13 13:24pm
View
In the link provided by you the insert in grid is done by separate text box and buttons outside the grid.
I want the text boxes to be inside the grid itself for inserting data
further more if the value of the drop down box is "grey" then for that row should not be editable.
how to deal with that?
Show More