16,017,986 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 .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 sawant parag (Top 28 by date)
sawant parag
25-Apr-13 6:29am
View
both are same table Nijboer , first table is the Existing table, i have to make it as in the second table.
Simple to explain:
i have one table with some records , it that records i have some cell value same , i have updat that cell with the other value.
sawant parag
25-Apr-13 6:19am
View
ok ! i will create new table of the same column and insert into them, please let me know the solution whatever you feel fesible.
sawant parag
25-Apr-13 6:14am
View
first table the original table , i have . i want to read each row of the first table and update the table and make that table as the second table
sawant parag
18-Sep-12 7:52am
View
in my application , i am trying to trace the end of session.
Currently when my session end , my javascript menu get disappears .
so i was planing to have some custom attributes that will run on every click on View and check whether session present or not ?
if the session expire then i will redirect that to new custom error page.
sawant parag
18-Sep-12 7:49am
View
thanks Sergey , i got the solution as per your instruction , i debugged the code and i got the solution.
sawant parag
10-Sep-12 2:33am
View
i get this error in IE .
Object doesn't support property or method 'slice'
..
its an issue related to jquery not support by IE..
please help to solve it .
sawant parag
10-Sep-12 2:16am
View
hi sergey ,
i get this error runtime . when i click on drop down defined in the page.
i am not able to find this from where the f is called and all.
thanks .
sawant parag
6-Sep-12 2:53am
View
i get this line highlighted in yellow "n.replace.call(f.slice(e.index),a,function(){for(var c=1;c
sawant parag
8-Jun-12 10:18am
View
ok sir i will try this first :(
sawant parag
8-Jun-12 1:13am
View
Deleted
i don't need such help from genius like you .
i just need an expert advice to answer in simple view :)
sawant parag
17-Apr-12 5:42am
View
hi Nelek,
What do u mean by this "Edit: Changed code tag" ?
sawant parag
13-Apr-12 7:06am
View
Then i how to solve the above error.
i am also facing the same error. :(
sawant parag
29-Mar-12 2:38am
View
protected void ddModelActions_Load(object sender, EventArgs e)
{
var ddl = (DropDownList)sender;
if (ddl.SelectedIndex == -1)
{
if (ViewState["IndexChanged"] == "No")
{
if ((!IsPostBack || ViewState["sortDirection"] != null) || (Session["viewButton"].ToString() == "yes"))
{
ddl.Items.Clear();
ddl.Items.Add(new ListItem("Select an Action"));
ddl.Items.Add(new ListItem("Manage Model"));
ddl.Items.Add(new ListItem("Manage Data"));
ddl.Items.Add(new ListItem("Download Response"));
ddl.Items.Add(new ListItem("Download Request"));
ddl.Items.Add(new ListItem("View History"));
ddl.Items.Add(new ListItem("Download Assemblies"));
}
}
}
else
{
if(!ddl.SelectedValue.Equals("Select an Action"))
{
string strSelectedValue = ddl.SelectedValue;
ViewState["SelectedValue"] = strSelectedValue;
ViewState["IndexChanged"] = "No";
}
}
}
protected void ddModelActions_IndexChanged(object sender, EventArgs e)
{
var ddl = (DropDownList)sender;
GridViewRow iRow = ((GridViewRow)(ddl.Parent.BindingContainer));
var engineVersion = grdModels.DataKeys[iRow.RowIndex].Values["Engine_Version"].ToString(); //((HyperLink)iRow.FindControl("HyperLink1")).Text;
var modelVersion = grdModels.DataKeys[iRow.RowIndex].Values["Model_Version"].ToString();//iRow.Cells[1].Text;
var modelName = grdModels.DataKeys[iRow.RowIndex].Values["Model_Name"].ToString(); //iRow.Cells[2].Text;
var queryString = "EngineVersion=" + engineVersion + "&ModelName=" + modelName + "&ModelVersion=" + modelVersion;
//var selectedValue = ddl.SelectedValue;
string selectedValue = ViewState["SelectedValue"] as string;
ddl.SelectedIndex = 0;
if (selectedValue == "Manage Model")
{
ViewState["IndexChanged"] = "Yes";
Response.Redirect("Model_ValidateFiles.aspx?" + queryString + "&action=validate&modeltab=Model_Validate");
}
else if (selectedValue == "Manage Data")
{
// Response.Redirect("InputFields.aspx?" + queryString);
}
else if (selectedValue == "Download Response")
{
ViewState["IndexChanged"] = "Yes";
int i = ddl.SelectedIndex;
ddl.SelectedIndex = -1;
//grdModels.DataKeys[iRow.RowIndex].Values["Action"] = ddl.SelectedValue[1];
ddl.ClearSelection();
GetResponse(modelName, modelVersion, engineVersion);
}
else if (selectedValue == "Download Request")
{
ViewState["IndexChanged"] = "Yes";
GetRequest(modelName, modelVersion, engineVersion);
}
else if (selectedValue == "View History")
{
ViewState["IndexChanged"] = "Yes";
Page.ClientScript.RegisterStartupScript(this.GetType(), "ViewHistory", "ddlClick();",true);
//Response.Write("<script language='javascript'>ddlClick();</script>");
}
else if (selectedValue == "Download Assemblies")
{
ViewState["IndexChanged"] = "Yes";
DownloadAssemblies(modelName, modelVersion, engineVersion);
// Page.ClientScript.RegisterStartupScript(this.GetType(), "Downloa
sawant parag
29-Mar-12 2:32am
View
hi below is my gridview control code.
<asp:GridView ID="grdModels" runat="server" AutoGenerateColumns="false" AllowSorting="true"
AllowPaging="true" HeaderStyle-CssClass="row0" Width="100%" HeaderStyle-VerticalAlign="Top"
RowStyle-CssClass="row1" RowStyle-VerticalAlign="Middle" DataKeyNames="Engine_Version,Model_Version,Model_Name"
OnSorting="grdModels_Sorting">
<columns>
<asp:TemplateField SortExpression="Model_Name" HeaderStyle-VerticalAlign="Top" HeaderText="Model Name">
<itemtemplate>
<asp:HyperLink runat="server" ID="HyperLink1" NavigateUrl='<%# "Model_ValidateFiles.aspx?EngineVersion=" + Eval("Engine_Version") + "&ModelName=" + Eval("Model_Name") + "&ModelVersion=" + Eval("Model_Version")+"&action=validate&modeltab=Model_Validate" %>'
Text='<%# Eval("Model_Name")%>'>
<asp:BoundField HeaderText="Model Version" DataField="Model_Version" SortExpression="Model_Version" />
<asp:BoundField HeaderText="Author" DataField="Created_By" SortExpression="Created_By" />
<asp:TemplateField HeaderStyle-VerticalAlign="Top" HeaderText="Create <BR> Date & Time"
SortExpression="Created_On">
<itemtemplate>
<%# Eval("Created_On", "{0:g}")%>
<asp:TemplateField HeaderStyle-VerticalAlign="Top" HeaderText="Publish Due <BR> Date & Time"
SortExpression="Published_Date" ItemStyle-Width="100">
<itemtemplate>
<%#Eval("Published_Date", "{0:g}")%>
<asp:BoundField HeaderText="Reviewer" DataField="Last_Reviewed_By" SortExpression="Last_Reviewed_By" />
<asp:TemplateField HeaderStyle-VerticalAlign="Top" HeaderText="Last Reviewed Date & Time"
SortExpression="Last_Reviewed_On" ItemStyle-Width="100">
<itemtemplate>
<%#Eval("Last_Reviewed_On","{0:g}")%>
<asp:BoundField HeaderText="ModelStatus" DataField="Model_Status" Visible="false"
SortExpression="Model_Status" />
<asp:TemplateField HeaderText="Actions">
<itemtemplate>
<asp:DropDownList ID="ddModelActions" runat="server" CssClass="largeSelectBoxContainer_1 handCursor"
Style="z-index: 999; padding: 4px;" AutoPostBack="true" OnLoad="ddModelActions_Load"
OnSelectedIndexChanged="ddModelActions_IndexChanged">
and below is the event on which i am trying to access the selected item .
protec
sawant parag
28-Mar-12 10:58am
View
i am using Dynamic Drop down of gridview , when i select one of the drop then it try to save the select item by using the above save function and in this save function i am ending the response as it is shown above.
i am not using the submit button so it is not getting cleared automatically.
as drop down is an gridview , i am not able to directly save its selectedIndex to -1.
sawant parag
28-Mar-12 8:11am
View
i am using the Dynamic genrated DropDown, my dropdown get binded on Onload event of the DropDown in grid view. so i am not able to make selectedindex as -1, if you any other method other then specified above let me know.
i used Response.Redirect(Request.RawUrl);
instead of // Response.End();
but i am not able to save the file, i am not able to achive the task .
help
sawant parag
28-Mar-12 7:52am
View
i tried giving the grid view fixed length . and also the itemtemplate some fixed length, but it is not working.
sawant parag
15-Feb-12 2:34am
View
Actually I wanted the ID of the dynamically generated Text Boxes in the code behind, so I used the below code-
private void CreateLabel(string ID)
{
Label lbl = new Label();
lbl.ID = ID;
pnlTextBox.Controls.Add(lbl);
Literal lt = new Literal();
lt.Text = "Enter Node for InputXML:";
pnlTextBox.Controls.Add(lt);
}
private void CreateTextBox(string ID)
{
TextBox txt = new TextBox();
txt.ID = ID;
txt.AutoPostBack = true;
txt.TextChanged += new EventHandler(OnTextChanged);
pnlTextBox.Controls.Add(txt);
Literal lt = new Literal();
lt.Text = "<br />";
pnlTextBox.Controls.Add(lt);
}
The ID used is generated dynamically in below format -
lblDynamic-<count of="" number="" dynamic="" labels="" +="" 1=""> (e.g. lblDynamic-2 : if I've already generated one)
txtDynamic-<count of="" number="" dynamic="" text="" boxes="" +="" 1=""> (e.g. txtDynamic-2 : if I've already generated one)
sawant parag
15-Feb-12 1:09am
View
pls help how i have generate this dynamic html ?
sawant parag
15-Feb-12 1:02am
View
i want place the text box in the same table but into the different tr?
the table is inside the Tab Controller of Ajax tool kit.
sawant parag
15-Feb-12 0:50am
View
Dynamic creation of text box and label on button click ....
sawant parag
4-Jan-12 4:26am
View
Deleted
how to set ?
should i set the validation group of the text box or the validation summary ?
sawant parag
22-Dec-11 2:00am
View
hi , i am getting run time error ."Microsoft JScript runtime error: 'Sys' is undefined". i am using ASP.NET 2.0. because my application is restricted to ASP.NET 2.0
help
thanks
sawant parag
21-Dec-11 8:10am
View
more describtion: i am getting below error.
Actually i am not able to get the value of query string which was set by me
FATAL MESSAGE: Path '/MSSCOnline/ScriptResource.axd' was not found.
STACKTRACE: at System.Web.HttpNotFoundHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
sawant parag
15-Dec-11 3:10am
View
hi prasad,
i need implement the above TAB in ASP.NET 2.0 of VS2008.
Not in 3.5.
Thanks.
sawant parag
10-Nov-11 6:15am
View
hi Anil,
how is that possible in "OutProc"?
thanks
sawant parag
9-Nov-11 1:25am
View
thanks ..
Can we use the above database concept to solve the Query by identifying the user to the groups or categories they belong
?
sawant parag
9-Nov-11 0:30am
View
If i 1000 user who had done sucessful authenticated. out of that 500 user should allow to access Default2.aspx and rest 500 user to access the Default.aspx.?
how would i authorize such a large count of user to access the pages?
adding all the user name in the allow user tab is not feasible..
Show More