16,018,637 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 Visual Basic questions
View Javascript 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 Zafar A khan (Top 37 by date)
Zafar A khan
13-Feb-17 1:13am
View
check the improved solution
Zafar A khan
13-Feb-17 1:00am
View
in BindGridView("query","countquery") . the query and count query should have records. if there is no record in second page you can only see gridview
Zafar A khan
7-Oct-13 6:39am
View
which library you are using... itextsharp, pdfClown, PdfSharp
Zafar A khan
7-Oct-13 3:04am
View
firebug is mozilla firefox extension it is used in the browser not in visual studio.
any way your problem has been solved by using jquery .
Zafar A khan
7-Oct-13 1:35am
View
this will not work inside formview use firebug to get the correct id of chng_profilepic
and then give it in javascript code.
document.getElementById('get this id by using firbug').style.visibility = "hidden";
OR easy way is to use jquery css selector
Zafar A khan
7-Oct-13 1:08am
View
is the button inside grid ? <asp:Button ID="chng_profilepic" runat="server" Text="change profile" OnClick="chng_profilepic_Click" />
if it is not inside the grid will not give an error
Zafar A khan
7-Oct-13 0:59am
View
you can use GDI+ to convert it.
you can draw all the strings/columns data to bitmap
Zafar A khan
7-Oct-13 0:08am
View
have you installed MySql Connector http://dev.mysql.com/downloads/connector/net/
Zafar A khan
1-Oct-13 5:43am
View
decimal proval=0;
decimal.TryParse(txtAirfreight.Text,out proval);
parameters[1].Value = (proval==0)?"NULL":proval;
Zafar A khan
28-Sep-13 6:40am
View
then Use java if ActiveX is enabled (java applet)
Zafar A khan
28-Sep-13 2:56am
View
Post your code please
Zafar A khan
15-Sep-13 0:18am
View
this is easy just Use HtmlTable and add controls dynamically at specific index/cell
Zafar A khan
29-Jul-13 5:24am
View
Mark as solution/solved, glade to help you
Zafar A khan
29-Jul-13 4:02am
View
replace getdate() by sysdate for pl/sql
Zafar A khan
29-Jul-13 0:25am
View
for Ms Access you cant use format slightly different visit the following
http://databases.about.com/od/accessfunctionlibrary/a/functiondatepar.htm
Zafar A khan
23-Jul-13 2:30am
View
yes do it for 4.0 also
Zafar A khan
20-Jul-13 2:53am
View
End the session or rerun the application
because in old there is no column with name product.
or wash the history of your browsers clean the session
then restart your application this will fix the error
Zafar A khan
20-Jul-13 2:25am
View
Deleted
txt.Attributes.Add("onChange","javascript:alert('change triggered')");
Zafar A khan
20-Jul-13 2:11am
View
just change this
protected void submit_Click(object sender, EventArgs e)
{
DataTable dt2=new DataTable();
if(Session["dt"]!=null)
{
dt2= (DataTable)Session["dt"];
}
DataRow dr = dt2.NewRow();
dr["Product"] = DropDownList1.Text;
dr["Watt"] = Txtwatt.Text;
dr["Duration"] = TxtDuration.Text;
dt2.Rows.Add(dr);
Session["dt"]=dt2;
}
Zafar A khan
19-Jul-13 3:05am
View
if it helped you vote it. may this code help someone other. vote it and mark as solution . thanks... glade to help you.
Zafar A khan
19-Jul-13 3:02am
View
yes rewrite the code. i writed directly to CP not in vs. but the code and logic is clear
just rewrite the code will 100% solve your problem. do not copy past
Zafar A khan
19-Jul-13 2:59am
View
glade to help you
Zafar A khan
19-Jul-13 2:49am
View
yes you have already highlighted where should put that. is the correct but you have two fields FileType and FileExtension.. first you have to provide the filetype then extension
dim filetype as string="";
dim extension as string=System.IO.Path.GetExtension(filename)
if extension=".doc"
then
filetype="Ms Word"
else if extension=".xls"
then
filetype=".excel"
end if
("Insert Into saoCmpntFile (CmpntID, FileName, Description,FileType, FileExtension, cid, cdt) Values([/" & txtID.Value & "/],[/" & NewFile & "/],[/" & txtFileDesc.Text & "/],[/" & filetype & "/],[/" & extension & "/], [/" & User.Identity.Name & "/], GetDate())")
Zafar A khan
19-Jul-13 2:09am
View
have you added the references of class labs to your web application?
Zafar A khan
19-Jul-13 1:20am
View
better is to google for tutorials
Zafar A khan
18-Jul-13 6:43am
View
where you are stuck be specific. for the hint bind filepath in commandArguments and write the download code in command event of imagebutton
Zafar A khan
18-Jul-13 4:12am
View
you don't need to convert it the converted value will be stored in mydate object ... you can check the documentation of DateTime.TryParse
Zafar A khan
18-Jul-13 4:07am
View
yes. but it should be date. if not date will give you an alert message
Zafar A khan
18-Jul-13 4:01am
View
initialze mydate (i-e)
DateTime mydate = DateTime.Now.Date;
if (!DateTime.TryParse(txtDt.Text, out mydate))
{
ClientScript.RegisterStartupScript(GetType(), ClientID, "alert('Enter Valid Date');", true);
}
Zafar A khan
18-Jul-13 3:58am
View
yes you can like this
DateTime mydate = null;
if (!DateTime.TryParse(txtDt.Text, out mydate))
{
ClientScript.RegisterStartupScript(GetType(), ClientID, "alert('Enter Valid Date');", true);
}
Zafar A khan
18-Jul-13 3:48am
View
DateTime mydate = null;
if (DateTime.TryParse(txtDt.Text, out mydate))
{
}
else {
ClientScript.RegisterStartupScript(GetType(), ClientID, "alert('Enter Valid Date');", true);
}
Zafar A khan
18-Jul-13 3:32am
View
check this
http://stackoverflow.com/questions/4284280/date-regular-expression-validator
http://sandblogaspnet.blogspot.com/2009/04/calling-validator-controls-from.html
Zafar A khan
16-Jul-13 4:52am
View
#<%=strOriginalRA.ClientID%> this will give an error
Check the ID of textbox and checkbox using firebug
just past that ID of textbox and checkbox here
Like this $('#ctl00_ContentPlaceHolder1_TabContainer1_tabSchoolInfo_FrmSchoolInfoView_strOriginalRA')
Zafar A khan
16-Jul-13 4:14am
View
i have already implemented this working 100% . copied from my project. have you included the jquery file... this is jquery bro
Zafar A khan
7-Jul-13 2:02am
View
check your gridview > templatefield may be your given it in grid properties
it should be inside <columns></columns> tag
Zafar A khan
7-Jul-13 1:57am
View
this event get call automatically with gridVeiw DataBind() no need to call it
Zafar A khan
7-Jul-13 1:50am
View
this will show the value stored in session
if session is not initialized the "else" part will get execution
Show More