16,016,345 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 SHAJANCHERIAN (Top 33 by date)
SHAJANCHERIAN
16-Apr-14 7:27am
View
For Eg.
If you register with https://wheniwork.com/
Immedaitly It will give you a URL https://yourName.wheniwork.com/
SHAJANCHERIAN
27-Apr-13 9:46am
View
Thank you. Its working..
SHAJANCHERIAN
26-Mar-13 1:26am
View
Thank you Prasad,
This will help me a lot..
SHAJANCHERIAN
18-Sep-12 0:33am
View
Thank you so much. this is helpful to solve my problem. Actually I wanted to save the data from the text-box (ie. last-focused) in to a global variable for further use.
SHAJANCHERIAN
12-Aug-12 7:26am
View
Thank you Mehdi
SHAJANCHERIAN
3-Dec-11 7:11am
View
Hi,
I have added the the following line
newDeleteButton.addEventListener('click',alert("ok"),false);
But alert in is invoking when button is added. Need to alert when I click on the added button.
SHAJANCHERIAN
26-Nov-11 3:20am
View
Can I bind the bitmap to any imageControl on the same page without saving this bitmap to anywhere. Because other control on the same page is not visible now.
SHAJANCHERIAN
1-Aug-11 1:11am
View
Thank u Abhinav,
There was a datatype mismatch..
SHAJANCHERIAN
5-Jul-11 4:21am
View
In my application I can give message to user to creater a folder in their PC and to give necessary permissions. Thereafter whenever he download the file from my website it should save to that folder. In this case Can you share your ideas.
SHAJANCHERIAN
10-May-11 13:17pm
View
Thank You Ankur.
SHAJANCHERIAN
2-May-11 3:16am
View
Intitialy as there was no rows in the Gridview1, Javascript was unable to find the Gridview.
So I have corrected my code as follows. Now it is working.
//======================================================
function gvPostDatedChequeValidation(source, args)
{
var Grid = document.getElementById("<%=gvPostDatedCheque.ClientID%>");
if (Grid==null )
{
args.IsValid = false;
}
else
{
args.IsValid = true;
}
}
SHAJANCHERIAN
2-May-11 2:44am
View
Thank You Ashishmau1.
But still there is a problem . ie.
Always getting null in var Grid. My code is given below. Is there any mistake.
var Grid = document.getElementById("<%=GridView1.ClientID%>");
SHAJANCHERIAN
2-May-11 0:43am
View
Thank you
var elem = document.getElementById("<%=cbxPDCheque.ClientID%>"); thank you
SHAJANCHERIAN
2-May-11 0:39am
View
var elem = document.getElementById("<%=cbxPDCheque.ClientID%>");
I have made change as suggested by nit_singh1..Now it is working ..thank you
SHAJANCHERIAN
2-May-11 0:36am
View
Thank You nit_singh1..
Its working
SHAJANCHERIAN
23-Apr-11 3:51am
View
Hi Sandeep,
In the tutorial they are using two seperate query (ie One to bind the data to the Main-Gridview & Second to bind the data to child-gridview in the popup). I can resolve my problem in the same way . But it slightly effect performance. Because a post-back is occuring(ie. to execute the Child-detail-query)
In my case all the details are available in one query(ie.vendor_name and message).Vendor_names are displaying as linkButton in Gridview. when user click on the vendor name Message should display using Model-popup without postback. Can you modify you answer to meet my requirement.
SHAJANCHERIAN
20-Apr-11 3:11am
View
Thank You
SHAJANCHERIAN
15-Apr-11 9:40am
View
Thanks a lot
SHAJANCHERIAN
14-Apr-11 2:29am
View
If I move this to (say class name: Class1 nad methodNmae: GetItems..)
Can you provide the code for Autocomplete extender instead of previous code . ie.
<cc1:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" TargetControlID="TextBox2"
ServiceMethod="GetItems" MinimumPrefixLength="1" CompletionSetCount="10" EnableCaching="true"
ServicePath="WebService.asmx">
SHAJANCHERIAN
14-Apr-11 2:10am
View
done
SHAJANCHERIAN
14-Apr-11 1:25am
View
Thank U Pankaj..its working Fine.
SHAJANCHERIAN
14-Apr-11 0:40am
View
I have included the z-index... But there is no effect..
<div align ="center" id="popup1" style ="z-index:10000; background-color :Fuchsia; width :265px; height :183px; display :none;">
popup message
</div>
any other idea?
SHAJANCHERIAN
13-Apr-11 1:14am
View
Thanks..
SHAJANCHERIAN
13-Apr-11 1:13am
View
Thanks a lot..
SHAJANCHERIAN
12-Apr-11 23:59pm
View
My table fields are as follows.
//-----------------------------
item_id (This should be an int-AutoIncrement. How can I achive this)
Item_Name(primary-Key)
Item_Brand(primary-Key)
Item_ModelNo(primary-Key)
SHAJANCHERIAN
11-Apr-11 1:00am
View
Thanks
SHAJANCHERIAN
11-Apr-11 0:59am
View
Thanks
SHAJANCHERIAN
3-Apr-11 9:46am
View
Deleted
I am using Ajax-AutoComplete Extender and a WebService: Hope It will Manage In-memory collection.
Request for your suggestion/ advice..
------------------------------------------------------------------------------------------------
<cc1:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" TargetControlID="TextBox2"
ServiceMethod="GetItems" MinimumPrefixLength="1" CompletionSetCount="10" EnableCaching="true"
ServicePath="WebService.asmx">
-------------------------------------------------------------------------------
[WebMethod]
public string[] GetItems(string prefixText, int count)
{
List suggestions = new List();
using (XmlTextReader reader = new XmlTextReader(HttpContext.Current.Server.MapPath("~/XmlFiles/Items.xml")))
{
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element && reader.Name == "item")
{
string itemName = reader.ReadInnerXml();
if (itemName.StartsWith(prefixText, StringComparison.InvariantCultureIgnoreCase))
{
suggestions.Add(itemName);
if (suggestions.Count == count) break;
}
}
}
}
return suggestions.ToArray();
}
------------------------------------------------------------------------------------------
SHAJANCHERIAN
2-Apr-11 4:27am
View
I am using Ajax-AutoComplete Extender and a WebService: Hope It will Manage In-memory collection.
Request for your suggestion/ advice..
------------------------------------------------------------------------------------------------
<cc1:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" TargetControlID="TextBox2"
ServiceMethod="GetItems" MinimumPrefixLength="1" CompletionSetCount="10" EnableCaching="true"
ServicePath="WebService.asmx">
-------------------------------------------------------------------------------
[WebMethod]
public string[] GetItems(string prefixText, int count)
{
List<string> suggestions = new List<string>();
using (XmlTextReader reader = new XmlTextReader(HttpContext.Current.Server.MapPath("~/XmlFiles/Items.xml")))
{
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element && reader.Name == "item")
{
string itemName = reader.ReadInnerXml();
if (itemName.StartsWith(prefixText, StringComparison.InvariantCultureIgnoreCase))
{
suggestions.Add(itemName);
if (suggestions.Count == count) break;
}
}
}
}
return suggestions.ToArray();
}
------------------------------------------------------------------------------------------
SHAJANCHERIAN
21-Feb-11 11:20am
View
I did as you said. But in the variable "txt_entered_in_popup" I am getting the default value of text box, not able to get the value user enters.
SHAJANCHERIAN
20-Feb-11 8:55am
View
It is displaying in the Alertbox. Can you tell me how can I get the value in a variable of code-behind.
SHAJANCHERIAN
20-Feb-11 7:56am
View
Thanks
SHAJANCHERIAN
17-Feb-11 5:25am
View
Thanks .I have incorporated your code, Its working But.
Though I change the TextBox value and press OK button in popup, It still provide the initial TextBox Value. Iam furnishing entire code below ..
-------------------------------------------------------------------------------------------
<asp:DataList ID="DataList1" runat="server"
onitemdatabound="DataList1_ItemDataBound">
<itemtemplate>
<asp:LinkButton ID="LinkButton1" runat="server" Text ='<%# Bind("pro_Name")%>'></asp:LinkButton>
<asp:Panel ID="panel_Popup" runat="server" Width ="200" Height ="200" style ="background-color :Lime; display :none ">
<asp:Label ID="lblProduct" runat="server" Text='<%# Bind("pro_Name")%>'></asp:Label>
<asp:TextBox ID="ModelTxt" runat="server" TextMode ="SingleLine" Text ="Enter a Text"></asp:TextBox>
<asp:Button ID="OkButton" runat="server" Text="Ok" />
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID ="LinkButton1"
PopupControlID ="panel_Popup" BackgroundCssClass ="modelbackground" OkControlID ="OkButton"
CancelControlID ="CancelButton" >
</asp:DataList>
----------------------------------------------------------------------------------------
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
switch (e.Item.ItemType)
{
case ListItemType.AlternatingItem:
case ListItemType.Item:
Button btn = (Button)e.Item.FindControl("OkButton");
TextBox txt = (TextBox)e.Item.FindControl("ModelTxt");
btn.Attributes.Add("onclick", "alert('" + txt.Text + "'); return false;");
break;
}
}
-----------------------------------------------------------------------------------------
Show More