16,004,647 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 aks.shan (Top 51 by date)
aks.shan
30-May-14 8:06am
View
I am not using any css.
aks.shan
12-May-14 8:26am
View
Thanks CHill... :)
aks.shan
2-Apr-14 4:45am
View
That doesnot work...Edit button is enabled but I dont get selected row index.
aks.shan
19-Feb-14 4:01am
View
Hi Arindam,
That too doesn't work.
aks.shan
18-Feb-14 6:30am
View
I have already tried this option...I am getting the <%= Session["UserName"] %> in alert window and not the value of session.
aks.shan
18-Feb-14 6:21am
View
Yes I have checked both the ways.
I wont be able to use hidden field because the hidden field on xsl page doesnot have access to .cs page.
aks.shan
18-Feb-14 6:14am
View
I am working on .xsl page and there is no code behind for this page.
So I don't think hidden field will serve the purpose.
aks.shan
6-Feb-14 1:48am
View
viewpage.aspx?APPLICATION_TOKEN=loadManageUserList&VALUE=5
want to split this and get 5 .how to do it
aks.shan
6-Feb-14 1:24am
View
by Querystring
aks.shan
17-Jan-14 8:06am
View
Thank You :)
aks.shan
17-Jan-14 8:05am
View
Thanks You All.... for such a quick solution.
Thank you very much.:)
aks.shan
17-Jan-14 5:00am
View
<ig:WebDataGrid ID="gvEmail" runat="server" Height="250px" Width="100%" AutoGenerateColumns="false"
EnableAjax="false" EnableDataViewState="true" OnInitializeRow="gvEmail_InitializeRow"
önColumnSorted="gvEmail_Sorting" StyleSetName="myMail">
<columns>
<ig:templatedatafield header-text="" key="Select" width="20px">
<itemtemplate>
<als:CheckBox runat="server" ID="chkEmailSelect" AutoPostBack="False" />
<ig:templatedatafield header-text="" key="PRIORITY" width="20px">
<itemtemplate>
<asp:Image runat="server" ID="imgPriority" ImageAlign="Middle" ImageUrl="~/Images/High.png" />
<asp:HiddenField runat="server" ID="hdnPriority" Value='<%# Eval("PRIORITY") %>' />
<ig:templatedatafield header-text="" key="READ_UNREAD" width="20px">
<itemtemplate>
<asp:Image runat="server" ID="imgRead" ImageAlign="Middle" ImageUrl="~/Images/IsOpen.png" />
<asp:HiddenField runat="server" ID="hdnRead" Value='<%# Eval("READ_UNREAD") %>' />
<ig:bounddatafield header-text="<%$ Resources:SOD_ScreenLabel, From %>" width="150px"
="" datafieldname="ER_FROM" key="RES.ER_FROM">
<ig:templatedatafield header-text="<%$ Resources:SOD_ScreenLabel, Message_Title %>"
="" key="MESSAGE_TITLE" width="150px">
<itemtemplate>
<als:LinkButton runat="server" ID="lbtnSubject" Text='<%# Eval("MESSAGE_TITLE") %>'
önClick="lbtnSubject_Click" ForeColor='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "Priority").ToString()== "EPHIG"?System.Drawing.Color.Red:System.Drawing.Color.Blue %>' />
aks.shan
17-Jan-14 5:00am
View
Deleted
I am sorry....here is the WebDatagrid.
<ig:WebDataGrid ID="gvEmail" runat="server" Height="250px" Width="100%" AutoGenerateColumns="false"
EnableAjax="false" EnableDataViewState="true" OnInitializeRow="gvEmail_InitializeRow"
önColumnSorted="gvEmail_Sorting" StyleSetName="myMail">
<columns>
<ig:templatedatafield header-text="" key="Select" width="20px">
<itemtemplate>
<als:CheckBox runat="server" ID="chkEmailSelect" AutoPostBack="False" />
<ig:templatedatafield header-text="" key="PRIORITY" width="20px">
<itemtemplate>
<asp:Image runat="server" ID="imgPriority" ImageAlign="Middle" ImageUrl="~/Images/High.png" />
<asp:HiddenField runat="server" ID="hdnPriority" Value='<%# Eval("PRIORITY") %>' />
<ig:templatedatafield header-text="" key="READ_UNREAD" width="20px">
<itemtemplate>
<asp:Image runat="server" ID="imgRead" ImageAlign="Middle" ImageUrl="~/Images/IsOpen.png" />
<asp:HiddenField runat="server" ID="hdnRead" Value='<%# Eval("READ_UNREAD") %>' />
<ig:bounddatafield header-text="<%$ Resources:SOD_ScreenLabel, From %>" width="150px"
="" datafieldname="ER_FROM" key="RES.ER_FROM">
<ig:templatedatafield header-text="<%$ Resources:SOD_ScreenLabel, Message_Title %>"
="" key="MESSAGE_TITLE" width="150px">
<itemtemplate>
<als:LinkButton runat="server" ID="lbtnSubject" Text='<%# Eval("MESSAGE_TITLE") %>'
önClick="lbtnSubject_Click" ForeColor='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "Priority").ToString()== "EPHIG"?System.Drawing.Color.Red:System.Drawing.Color.Blue %>' />
aks.shan
17-Jan-14 4:44am
View
<ig:WebDataGrid ID="gvEmail" runat="server" Height="250px" Width="100%" AutoGenerateColumns="false"
EnableAjax="false" EnableDataViewState="true" OnInitializeRow="gvEmail_InitializeRow"
önColumnSorted="gvEmail_Sorting" StyleSetName="myMail">
<columns> <ig:templatedatafield width="20px" xmlns:ig="#unknown" key="Select" header-text="">
<itemtemplate>
<als:CheckBox runat="server" ID="chkEmailSelect" AutoPostBack="False" />
<ig:templatedatafield width="20px" xmlns:ig="#unknown" key="PRIORITY" header-text="">
<itemtemplate>
<asp:Image runat="server" ID="imgPriority" ImageAlign="Middle" ImageUrl="~/Images/High.png" />
<asp:HiddenField runat="server" ID="hdnPriority" Value='<%# Eval("PRIORITY") %>' />
aks.shan
17-Jan-14 4:25am
View
u mean aspx code??
aks.shan
17-Jan-14 4:22am
View
this happens in linkbutton click event.
GridRecord selectedRow = gvEmail.Behaviors.Selection.SelectedRows[0];
imgRead = (Image)selectedRow.Items[2].FindControl("imgRead") as Image;
string MsgId = string.Empty;
string SequenceNo = string.Empty;
txtEmailChain.Text = string.Empty;
//Unbold the selected mail.
if (selectedRow.CssClass == Constants.Bold_Font)
{
selectedRow.CssClass = Constants.UnBold_Font;
}
else if (selectedRow.CssClass == Constants.Bold_High_Font)
{
selectedRow.CssClass = Constants.UnBold_High_Font;
}
imgRead.Visible = true;
imgRead.ImageUrl = "~/Images/IsOpen.png";
aks.shan
17-Jan-14 3:53am
View
I am using WebDatagrid on my page .
I have a template column and in that template field I have an item template which is an image control and has a default url "~/Images/Blue.jpg".
I am changing this image url in OnInitializeRow event of the grid.
I also have another template column with a link button as item template.
The issue is that whenever I click on the link button..the grid causes a postback and the image control gets the default url. :(
How can I resolve this issue.
Thanks
-Akshay
aks.shan
16-Jan-14 23:03pm
View
But its something like this:
theres a hidden field hdnPriority and image control imgPriority.
All m doing is if(hdnPriority ==String.Empty)
{
imgPriority.visible = false;
}
else
imgPriority.ImageUrl = "~/Images/Blue_Background.png";
How can i go ahead.
Thanks.
aks.shan
16-Jan-14 23:02pm
View
Can i get a solution for this?
aks.shan
16-Jan-14 12:10pm
View
This gives an error saying ImageUrl is required.
Note:
Image control and hidden field is in item template.
aks.shan
16-Jan-14 12:08pm
View
But its something like this:
theres a hidden field hdnPriority and image control imgPriority.
All m doing is if(hdnPriority ==String.Empty)
{
imgPriority.visible = false;
}
else
imgPriority.ImageUrl = "~/Images/Blue_Background.png";
How can i go ahead.
Thanks.
aks.shan
15-Dec-13 4:54am
View
function low()
{
var lowDiv = document.getElementById("divLowPriority");
lowDiv.style.backgroundColor = 'Navy'; // assign any color.
var highDiv = document.getElementById("divHighPriority");
highDiv.style.backgroundColor = 'White'; // assign any color.
}
function high()
{
var highDiv = document.getElementById("divHighPriority");
highDiv.style.backgroundColor = 'Navy';
var lowDiv = document.getElementById("divLowPriority");
lowDiv.style.backgroundColor = 'White';
I am calling these functions on the div's onclick property.
but if the user clicks on the image button in the div...it causes a postback and the background color change is gone.
i need a postback eventually.
so how to maintain the color change.
thanks
}
aks.shan
15-Dec-13 4:17am
View
but i have an image button also.. and if user clicks on image button ..the server side event is called and thus the background color vanishes.
how to control that
aks.shan
6-Dec-13 7:46am
View
i dont get this
aks.shan
6-Dec-13 2:13am
View
i have a hyperlink and image control in repeater on aspx page.
i want to add as many hyperlinks and images at runtime by binding my datatable to repeater.
Rows in data table will decide the rows in repeater.
aks.shan
6-Dec-13 1:24am
View
ok
aks.shan
6-Dec-13 1:01am
View
I want to add properties to controls present in a repeater at runtime .
can i do so??
if yes plz help me with an example. thanks :)
aks.shan
6-Dec-13 1:01am
View
I want to add properties to controls present in a repeater at runtime .
can i do so??
if yes plz help me with an example. thanks :)
aks.shan
6-Dec-13 0:54am
View
Hey thanks.. i got it solved.
i was using item template .
now i added alternating template and its working fine.
:)
aks.shan
20-Oct-13 10:17am
View
Thanks :)
aks.shan
20-Oct-13 8:55am
View
Hi Original Griff,
This works wonders.
Would appreciate if u could help me in understanding regex.
Thanks.
Akshay
aks.shan
16-Oct-13 4:24am
View
Hi Tadit,
i have a data table.
In that I have two columns like "MSG" and "TO".
For a single message ..I have multiple "TO" records.
For eg:
MSG TO
test akshay
test sameer
test sidd
Hi som
Now using for each loop i want all "TO" as comma separated.
for eg:
MSG TO
test akshay,sameer,sidd
Hi som.
How can i get this??
Thanks-Akshay
aks.shan
17-Sep-13 3:06am
View
ok.
Thanks :)
aks.shan
17-Sep-13 1:28am
View
Thanks Prasad for sharing the link. :)
aks.shan
17-Sep-13 0:55am
View
I dint get you...can u elaborate?
aks.shan
14-Aug-13 6:17am
View
Thanks Manoj.
aks.shan
14-Aug-13 2:16am
View
Thanks syed.
aks.shan
13-Aug-13 7:04am
View
Appreciate if anyone can send the image of the master page
aks.shan
13-Aug-13 6:49am
View
I managed to solve this on my own.
There is a treeview control and an accordian control on a aspx page.
I wanted an accordian panel to open on a specific tree node expand.
I got the node expand event and managed to write Accordian open event inside it.
And it worked.
Thanks.
And apology that I dint explain the problem in detail.
-Akshay.
aks.shan
6-Aug-13 4:27am
View
Thanks
aks.shan
6-Aug-13 3:17am
View
Hi Tadit,
I want to open a accordian panel on the tree node click expand.
how can i do so?
-akshay
aks.shan
5-Aug-13 7:20am
View
Tadit, I got it worked.
Instead of row attribute i applied the attributes on individual cell and with a for loop i tried it to make it work.
Thanks
-Akshay.
aks.shan
5-Aug-13 6:59am
View
or else can we apply the attribute on individual cell?
aks.shan
5-Aug-13 6:54am
View
If I assign the navigate url on selectedindexchanged event...the hyperlink is getting attached on when i click on the row and after that it is working fine.
But i want the hyperlink when grid is created.
Note:I am using template field in the grid as hyperlink column.
aks.shan
5-Aug-13 5:49am
View
Hi Tadit,
one more improvisation.
I have a hyperlink column in the same grid as discussed earlier.
On the click of hyperlink,the row click event is fired which we did earlier.
I want the page to be redirected on hyperlink click without the rowclick attribute getting fired.
I tried to remove the attribute on the cell in which hyperlink is there. but its not working.
-Akshay.
aks.shan
19-Jul-13 4:50am
View
Hi Tadit,
Thanks for the info on webdatagrid.
I ,also had a look at your article.
Looks good.Glad it worked for me.
Thanks
-Akshay
aks.shan
19-Jul-13 2:23am
View
Hi Tadit,
I would like to implement same functonality in Infragistics Webdatagrid.
However i am unable to get the SelectedIndexChanged event as well as rowdatabound event.
How can I Proceed?
Thanks.
-Akshay
aks.shan
17-Jul-13 8:27am
View
This works wonders.
Great Work.
Thanks a lot Tadit.
aks.shan
17-Jul-13 6:11am
View
Can u send me a sample code of this.
Thanks.
aks.shan
17-Jul-13 6:06am
View
yes, Its not working without the button.
Please do let me know if u find a solution for this.
Thanks.
aks.shan
17-Jul-13 5:30am
View
I saw your answer.
i have updated onrowdatabound="GridView1_RowDataBound" event accordingly but this works properly only when i set autogenerateselectbutton as true and not otherwise.
I dont want the select button to be displayed in the grid.
Show More