16,019,131 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 16Sonali (Top 16 by date)
16Sonali
30-Jan-14 8:42am
View
yes...i am using imagebutton.....but in module everywhere i am using imagebutton........could you please tell me any other workaround.........
16Sonali
27-Sep-13 2:27am
View
Thanks a lot
16Sonali
21-Aug-13 8:07am
View
ÿes ..I am trying to use jquery.....
How this error will resolve
16Sonali
12-Aug-13 4:31am
View
I did the same but it is not working....
16Sonali
12-Aug-13 2:36am
View
when clicks on cancel button..it is not cancelled....validation fires for special character...but grid should be in default position......
16Sonali
12-Aug-13 2:24am
View
Hi,
When I enter special character in textbox in gridview it wont allow but when clicks on cancel button giving below erro......
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
16Sonali
8-Aug-13 4:40am
View
Thanks a lot!!!!
16Sonali
8-Aug-13 4:18am
View
yes in bindgrid function
16Sonali
8-Aug-13 4:16am
View
Excel.Range rng = null;
16Sonali
4-Jul-13 7:37am
View
Thanks a lot
16Sonali
2-Jul-13 8:29am
View
Thanks ....
16Sonali
26-Jun-13 5:08am
View
Hi...I tried ^(\d{4}(.\d{2}))$ this way also...but still accepting 5 digit before decimal
16Sonali
26-Jun-13 5:00am
View
yeah!!!sure
16Sonali
26-Jun-13 4:50am
View
Thanks a lot......
16Sonali
25-Jun-13 1:24am
View
Deleted
Above code for Binding gridview....
16Sonali
25-Jun-13 1:23am
View
public void BindGridPhaseMap(string relID)
{
lblMsg.Text = string.Empty;
try
{
orConn = new OracleConnection(strConn);
if (orConn.State != ConnectionState.Open)
{
orConn.Open();
}
string strSql = string.Empty;
strSql = "SELECT D.PHASE_NAME,C.PHASE_SCOPE,C.PHASE_PROJ_NAME,C.PLN_START_DT,C.PLN_END_DT,C.PLN_EFFORTS ";
strSql += "FROM MTUI_PHASE_MAPPING C,MTUI_PHASE_MASTER D WHERE C.METRICES_RELEASE_ID = '" + relID + "' ";
strSql += "AND C.PHASE_ID=D.PHASE_ID(+) ORDER BY D.PHASE_ID ASC";
DataSet ds = new DataSet();
orCmd = new OracleCommand(strSql, orConn);
da = new OracleDataAdapter(orCmd);
da.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
grdPhaseMap.DataSource = ds;
grdPhaseMap.DataBind();
grdPhaseMap.CssClass = "visible";
}
else
{
for (int i = 1; i <= 15; i++)
{
DataRow dRow = ds.Tables[0].NewRow();
switch (i)
{
case 1:
dRow["PHASE_NAME"] = "Requirement";
break;
case 2 :
dRow["PHASE_NAME"] = "ABC";
break;
case 3:
dRow["PHASE_NAME"] = "aaa";
break;
case 4:
dRow["PHASE_NAME"] = "ads";
break;
case 5:
dRow["PHASE_NAME"] = "ddd";
break;
case 6:
dRow["PHASE_NAME"] = "ggg";
break;
case 7:
dRow["PHASE_NAME"] = "iii";
break;
case 8:
dRow["PHASE_NAME"] = "uuu";
break;
case 9:
dRow["PHASE_NAME"] = "oooo";
break;
case 10:
dRow["PHASE_NAME"] = "hjhj";
break;
case 11:
dRow["PHASE_NAME"] = "gggg";
break;
case 12:
dRow["PHASE_NAME"] = "ppp";
break;
case 13:
dRow["PHASE_NAME"] = "xcxc";
break;
case 14:
dRow["PHASE_NAME"] = "Implementation";
break;
case 15:
dRow["PHASE_NAME"] = "Documentation";
break;
}
ds.Tables[0].Rows.Add(dRow);
}
grdPhaseMap.DataSource = ds;
grdPhaseMap.DataBind();
grdPhaseMap.CssClass = "visible";
}
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
finally
{
orConn.Close();
orConn.Dispose();
orCmd.Dispose();
da.Dispose();
}
}
Show More