15,741,581 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 Javascript questions
View C++ questions
View Python questions
View Java 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 prodipjsr (Top 82 by date)
prodipjsr
22-Sep-14 1:09am
View
I have read this document, but no update. Please send me a guide where i will do steps to steps,,
prodipjsr
17-Aug-13 6:51am
View
i know how to access gridview, but here i cant find out my fault..please help me ..
prodipjsr
31-Jul-13 6:47am
View
Now show the above error mess..
prodipjsr
31-Jul-13 3:47am
View
This error can be caused by a virtual directory not being configured as an application in IIS.
how can we configure.. any guide or link?
prodipjsr
6-May-13 7:13am
View
Sir, u have changed the bellow code, But when i run the code then "#<%= tbsecondnominee.ClientID %>,#<%= tbsecondper.ClientID %>,#<%= tbthitdnominee.ClientID%>,#<%= tbthirdper.ClientID %>"
text boxes are disable. But when i put 50 in tbfirstper then also the four text boxes are disable..
<script type="text/javascript">
/*if tbfirstper==100 then tbsecondnominee,tbsecondper,tbthitdnominee,tbthirdper is not enable.
If tbfirstper <100;then tbsecondnominee,tbsecondper is enable,
if tbfirstper+tbsecondper<100, then tbthitdnominee,tbthirdper is enable,*/
$(function () {
$("#<%= tbsecondnominee.ClientID %>,#<%= tbsecondper.ClientID %>,#<%= tbthitdnominee.ClientID%>,#<%= tbthirdper.ClientID %>").attr("disabled", true);
$("input[type='text']").blur(function () {
var a = $("#tbfirstper").val();
var b = $("#tbsecondper").val();
//alert(a+b);
if (parseInt(a) == 100) {
$("#<%= tbsecondnominee.ClientID %>,#<%= tbsecondper.ClientID %>,#<%= tbthitdnominee.ClientID%>,#<%= tbthirdper.ClientID %>").attr("disabled", true);
}
if ( a < 100 && a != "" && b == "") {
//alert(b);
$("#<%= tbsecondnominee.ClientID %>,#<%= tbsecondper.ClientID %>").attr("disabled", false);
$("#<%= tbthitdnominee.ClientID %>,#<%= tbthirdper.ClientID %>").attr("disabled", true);
}
if (b != "" && parseInt(a) + parseInt(b) < 100) {
//alert(a+b);
$("#<%= tbthitdnominee.ClientID %>,#<%= tbthirdper.ClientID %>").attr("disabled", false);
}
});
});
</script>
prodipjsr
6-May-13 6:17am
View
not understand sir..please write one code for one text box..
prodipjsr
6-May-13 3:49am
View
this code also not working sir...
prodipjsr
6-May-13 2:26am
View
but that was not working. means when i run this code all of text boxes are enable..that why i post it again..sir please give me ans or solution..
prodipjsr
26-Apr-13 3:37am
View
sir,
any update??
prodipjsr
25-Apr-13 8:34am
View
Thanx for ur reply, but i have some query;;;
1. my user data i have the following fields:
First_name,Last_name,Gender,User_name,Password,Role.
2.for data connection & select Query i hv written..
SqlConnection con = new SqlConnection("user id=sa;------------------)
SqlCommand cmd = new SqlCommand("Select Role from Userinfo where User_name = '" + Session["userName"].ToString() + "'", con);
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{//how do i check what is the role of the session user?????
//i cant understand understand how i check the user role from the login user name..
//in this point please help me with the code..
}
Con.Close;
prodipjsr
24-Apr-13 9:15am
View
wil u please give one example..please
prodipjsr
24-Apr-13 8:19am
View
<fieldset>
Nominee Information
First Nominee Name <asp:TextBox ID="tbfirstnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbfirstnominee" />
Percentage <asp:TextBox ID="tbfirstper" MaxLength="3" runat="server" Width="35px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" FilterType="Numbers" TargetControlID="tbfirstper" />
<br />
<br />
Second Mominee Name <asp:TextBox ID="tbsecondnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbsecondnominee" />
Percentage <asp:TextBox ID="tbsecondper" MaxLength="3" value="0" runat="server" Width="34px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" FilterType="Numbers" TargetControlID="tbsecondper" />
<br />
<br />
Third Mominee Name <asp:TextBox ID="tbthitdnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender13" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbthitdnominee" />
Percentage <asp:TextBox ID="tbthirdper" MaxLength="3" value="0" runat="server" Width="34px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server" FilterType="Numbers" TargetControlID="tbthirdper" />
<br />
<br />
</fieldset>
prodipjsr
24-Apr-13 8:17am
View
sir,
when i apply this code then all text box are enable,not disable any text box....
for ur information i write all code which i hv been applied last 1 week..
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Memberadd.aspx.cs" Inherits="New_NPS.Memberadd" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<script type="text/javascript">
function isNumberKey(evt) {
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode = 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
return false;
} else {
return true;
}
}
</script>
<script type="text/javascript">
$(document).ready(function () {
$('#<%=tbmemberdob.ClientID%>').datepicker({
dateFormat: 'mm-dd-yy',
changeMonth: true,
changeYear: true,
//yearRange: '-50:+0',
//yearRange: '-50y:c+nn',
//maxDate: '-1d',
//minDate: "-50Y",
//maxDate: "-18Y"
yearRange: '-58y:-19y'
});
});
</script>
<script type="text/javascript">
/*if tbfirstper==100 then tbsecondnominee,tbsecondper,tbthitdnominee,tbthirdper is not enable.
If tbfirstper <100;then tbsecondnominee,tbsecondper is enable,
if tbfirstper+tbsecondper<100, then tbthitdnominee,tbthirdper is enable,*/
$(function () {
$("#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper").attr("disabled", true);
$("input[type='text']").blur(function () {
var a = $("#tbfirstper").val();
var b = $("#tbsecondper").val();
//alert(a+b);
if (parseInt(a) == 100) {
$("#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper").attr("disabled", true);
}
if (a < 100 && a != "" && b == "") {
//alert(b);
$("#tbsecondnominee,#tbsecondper").attr("disabled", false);
$("#tbthitdnominee,#tbthirdper").attr("disabled", true);
}
if (b != "" && parseInt(a) + parseInt(b) < 100) {
//alert(a+b);
$("#tbthitdnominee,#tbthirdper").attr("disabled", false);
}
});
});
</script>
<br />
<fieldset>
Member Information
Member ID <asp:TextBox ID="tbmemberid" readonly="true" runat="server">
Entry Date
<asp:TextBox ID="tbentrydate" onfocus="blur()" STYLE="background-color:#5BF366"
runat="server" Height="25px" Width="181px">
<br />
<br />
Member First Name <asp:TextBox style="text-transform:uppercase" ID="tbmemfirstname" runat="server">
*
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbmemfirstname"
Display="Dynamic" ErrorMessage="should not be blank !!">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="LowercaseLetters, UppercaseLetters" TargetControlID="tbmemfirstname" />
Member Middle Name <asp:TextBox ID="tbmemmeddlename" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="LowercaseLetters, UppercaseLetters" TargetControlID="tbmemmeddlenam
prodipjsr
24-Apr-13 7:49am
View
sir, when i use this code then others texboxes in my page are disable. i want to disable these 4 textboxes while page load..
tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper..
not all the textboses,,,
prodipjsr
24-Apr-13 7:47am
View
while page is loaded...only these 4 text boxes is disable::
tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper...
other text boxes is enable..
prodipjsr
24-Apr-13 6:55am
View
sir, my code is::
<script type="text/javascript">
$(document).ready(function () {
$("#tbfirstper,#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper").blur(function () {
var txt_v1 = $("#tbfirstper").val();
var txt_v2 = $("#tbsecondper").val();
var v1 = parseInt(txt_v1);
var v2 = parseInt(txt_v2);
if (false == isNaN(v2)) {
if (v1 == 100) {
$("#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper").attr("disabled", "disabled");
}
else if (v1 < 100) {
$("#tbthitdnominee,#tbthirdper").removeAttr("disabled");
$("#tbsecondnominee,#tbsecondper").removeattr("disabled");
}
}
if ((v1 + v2) == 100) {
$("#tbthitdnominee,#tbthirdper").removeAttr("disabled");
}
else if ((v1 + v2) < 100) {
$("#tbthitdnominee,#tbthirdper").removeAttr("disabled");
}
}
});
});
</script>
prodipjsr
24-Apr-13 6:41am
View
where i will write?? will u please write the code??
prodipjsr
24-Apr-13 5:38am
View
thanx sir,,
prodipjsr
24-Apr-13 4:50am
View
yes sir,
when i select the date from the calender & press backspace then it will open another page..
prodipjsr
24-Apr-13 4:13am
View
Sir, please help me another part of my project??
i have a textbox which property is readonly. in this textbox i am showing current date & time..when i run this & it is also open through IE. But when i click on the textbox & press Backspace button in keyboard,the age is loading & go to another page(open another page). i cant understand why it is going to another page...
prodipjsr
24-Apr-13 4:05am
View
I hve added this control:;
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
prodipjsr
24-Apr-13 2:16am
View
Sir, Show the error mess:
calendar does not exist in the namespace.
prodipjsr
23-Apr-13 9:28am
View
For set calendar i have used the code:
<script type="text/javascript">
$(document).ready(function () {
$('#<%=tbmemberdob.ClientID%>').datepicker({
dateFormat: 'mm-dd-yy',
changeMonth: true,
changeYear: true,
//yearRange: '-50:+0',
yearRange: '-50y:c+nn',
maxDate: '-1d'
});
});
</script>
For calculate the age i hv use the coode::
<script type="text/javascript">
function CalAge() {
var now = new Date();
var mm = document.getElementById('ddlmnths').value;
var ddr = document.getElementById('ddldays').value;
var dd = ddr.options[ddr.selectedIndex].value;
var yy = document.getElementById('ddlyrs').value;
bDay = dd + "/" + mm + "/" + yy;
bD = bDay.split('/');
if (bD.length == 3) {
born = new Date(bD[2], bD[1] * 1 - 1, bD[0]);
years = Math.floor((now.getTime() - born.getTime()) / (365.25 * 24 * 60 * 60 * 1000));
if (years < 18) {
alert(“You are not eligible”);
}
else if (years = 18 || years > 50) {
alert(“Welcome”);
}
}
}
</script>
prodipjsr
23-Apr-13 6:35am
View
what actually the problem??
prodipjsr
23-Apr-13 5:05am
View
sir, when i run the page through IE, then all textboxes are enable...
prodipjsr
23-Apr-13 4:21am
View
The textboxes not being disabled.
prodipjsr
22-Apr-13 6:00am
View
any one please help me!!!!
prodipjsr
22-Apr-13 5:59am
View
any one please help me..
prodipjsr
22-Apr-13 1:00am
View
sir, There is no update..
prodipjsr
22-Apr-13 0:59am
View
Hello sir, No update:; i cant understand where is the problem, i hv used the following control for the textboxes.. is there any problem??/
<fieldset>
Nominee Information
<br />
First Nominee Name <asp:TextBox ID="tbfirstnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbfirstnominee" />
Percentage <asp:TextBox ID="tbfirstper" MaxLength="3" runat="server" Width="35px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" FilterType="Numbers" TargetControlID="tbfirstper" />
<br />
<br />
Second Mominee Name <asp:TextBox ID="tbsecondnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbsecondnominee" />
Percentage <asp:TextBox ID="tbsecondper" MaxLength="3" runat="server" Width="34px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" FilterType="Numbers" TargetControlID="tbsecondper" />
<br />
<br />
Third Mominee Name <asp:TextBox ID="tbthitdnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender13" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbthitdnominee" />
Percentage <asp:TextBox ID="tbthirdper" MaxLength="3" runat="server" Width="34px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server" FilterType="Numbers" TargetControlID="tbthirdper" />
<br />
<br />
</fieldset>
prodipjsr
21-Apr-13 5:42am
View
Sir, i also try $("#tbfirstper,#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper").blur(function ()
but is also not workingggg
prodipjsr
21-Apr-13 5:40am
View
wil u please give ur mail id?? i will send u the project for doing this ..please help me..i cnt understand why these r not working..
prodipjsr
21-Apr-13 5:37am
View
Sir i also try in javascript & the code is::But it also not work::
<script type="text/javascript">
$(document).ready(function () {
$("#tbfirstper,#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper :input").each(function () {
var v1 = $("#tbfirstper").val(),
v2 = $("#tbsecondper").val();
if (!isNaN(v1)) {
if (parseInt(v1, 10) == 100) {
$("#tbsecondnominee,#tbsecondper,#tbthitdnominee,#tbthirdper").attr("disabled", "disabled");
}
else if (parseInt(v1, 10) < 100) {
$("#tbthitdnominee,#tbthirdper").attr("disabled", true);
$("#tbsecondnominee,#tbsecondper").attr("disabled", true);
}
if (!isNaN(v2)) {
if ((parseInt(v2, 10) + parseInt(v1, 10)) == 100) {
$("#tbthitdnominee,#tbthirdper").attr("disabled", true);
}
else if ((parseInt(v2, 10) + parseInt(v1, 10)) < 100) {
$("#tbthitdnominee,#tbthirdper").attr("disabled", false);
}
}
}
});
});
</script>
prodipjsr
21-Apr-13 5:19am
View
Sir, i hv written the code bellow, but when i put 100 in tbfirstper.Text then tbtbsecondper.text or others 3 text boxes cant disable..
please help me where is my mistake..more than 3 working days i hv try for this..please help...
private void Textbox_TextChanged(object sender, EventArgs e)
{
int firstPer, secondPer;
if (!int.TryParse(tbfirstper.Text, out firstPer))
{
// Report problem to user
return;
}
if (!int.TryParse(tbsecondper.Text, out secondPer))
{
// Report problem to user
return;
}
tbsecondnominee.Enabled = false; tbsecondper.Enabled = false;
tbthitdnominee.Enabled = false; tbthirdper.Enabled = false;
if (firstPer < 100)
{
tbsecondnominee.Enabled = true;
tbsecondper.Enabled = true;
}
if (firstPer + secondPer < 100)
{
tbthitdnominee.Enabled = true;
tbthirdper.Enabled = true;
}
}
prodipjsr
21-Apr-13 4:11am
View
Sir, please tell me why i m using this code & where i will write this code???(in page load )
if (!int.TryParse(tbfirstper.Text, out firstper))
{
// Report problem to user
return;
}
prodipjsr
21-Apr-13 3:23am
View
sir, i hv change the code (true to false) but still no effect ..
prodipjsr
20-Apr-13 8:01am
View
means what?? sir i am not clear of ur views..
prodipjsr
20-Apr-13 6:04am
View
sir,
when i write localhost:8080 and press enter, then it shown the following error:
localhost - /
--------------------------------------------------------------------------------
4/18/2013 12:30 PM
New_NPS
3/23/2013 7:12 AM 911 New_NPS.sln
4/18/2013 12:38 PM
packages
--------------------------------------------------------------------------------
And when i click on
New_NPS link---------
it shown the following error::
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 11: <system.web>
Line 12: <compilation debug="true" targetframework="4.0">
Line 13: <authentication mode="Forms">
Line 14: <forms loginUrl="~/Login.aspx" timeout="2880" />
Line 15:
Source File: C:\New_NPS\new_nps\web.config Line: 13
Show Additional Configuration Errors:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\New_NPS\new_nps\web.config line 16)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\New_NPS\new_nps\web.config line 22)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\New_NPS\new_nps\web.config line 28)
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456
prodipjsr
20-Apr-13 3:28am
View
sir, please tell me why i am using s1,s2,s3..& where i am use this in my project..
my html code for the text box is bellow::
First Nominee Name <asp:TextBox ID="tbfirstnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbfirstnominee" />
Percentage <asp:TextBox ID="tbfirstper" MaxLength="3" runat="server" Width="35px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" FilterType="Numbers" TargetControlID="tbfirstper" />
<br />
<br />
Second Mominee Name <asp:TextBox ID="tbsecondnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbsecondnominee" />
Percentage <asp:TextBox ID="tbsecondper" MaxLength="3" runat="server" Width="34px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" FilterType="Numbers" TargetControlID="tbsecondper" />
<br />
<br />
Third Mominee Name <asp:TextBox ID="tbthitdnominee" style="text-transform:uppercase" runat="server">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender13" runat="server" FilterType="LowercaseLetters,UppercaseLetters" TargetControlID="tbthitdnominee" />
Percentage <asp:TextBox ID="tbthirdper" MaxLength="3" runat="server" Width="34px">
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server" FilterType="Numbers" TargetControlID="tbthirdper" />
<br />
prodipjsr
19-Apr-13 6:18am
View
hello sir. please help me..
prodipjsr
19-Apr-13 4:21am
View
yes sir & i hv written the code in my project but it is not working:::the code is==
<script type="text/javascript">
function TextBoxval(evt) {
var text1 = document.getElementById('<%= tbfirstper.ClientID %>');
var text2 = document.getElementById('<%= tbsecondper.ClientID %>');
var text3 = document.getElementById('<%= tbthirdper.ClientID %>');
var a = parseFloat(text1.value);
var b = parseFloat(text2.value);
var c = parseFloat(text3.value);
if (document.getElementById('<%= tbfirstper.ClientID %>').value == 100) {
$("#tbsecondnominee").attr("disabled", "disabled");
$("#tbsecondper").attr("disabled", "disabled");
}
if (document.getElementById('<%= tbfirstper.ClientID %>').value < 100)
{
tbsecondnominee.Enabled = true; tbsecondper.Enabled = true;
}
if ((document.getElementById('<%= tbfirstper.ClientID %>').value) + (document.getElementById('<%= tbsecondper.ClientID %>').value) < 100)
{
tbthitdnominee.Visible = true; tbthitdnominee.Visible = true;
}
}
</script>
prodipjsr
19-Apr-13 3:46am
View
hello sir i am waiting for ur code..please help me..
prodipjsr
19-Apr-13 2:01am
View
not working means when i put 50 in textbox1 then the textbox2 is not visible..
i have not any idea about javascript.. can u help me please!!!
prodipjsr
19-Apr-13 1:54am
View
actually i have not any idea of Javascript or jquery. can u provide the code for this function??
please help me sir...
prodipjsr
18-Apr-13 1:54am
View
And how to access my project through url
prodipjsr
17-Apr-13 8:32am
View
I try but show the mess:
File can not be opened with the selected editor. Please choose another editor.
prodipjsr
17-Apr-13 8:19am
View
It is happening in Visual studio 2010, Yes i have .cs page.. no no it is including my web project..
prodipjsr
16-Apr-13 3:57am
View
can i use this code?
session["userid"]= "select User_id from userinfo where user_name=session["Username"]";
i am not sure..can i use it or some thing others??
prodipjsr
16-Apr-13 3:26am
View
Thanx for ur idea..it is work,,but i want to some different...
I have add the code in login.aspx page:
if (result >= 1)
{
Session["userName"] = txtUserName.Text.ToString().Trim();
Response.Redirect("Default.aspx");
}
else
lblMsg.Text = "Incorrect Username or Password";
===============
And i also add this code to my members pare.
string userid = Session["userName"].ToString();
myCommand.Parameters.Add("@userid", System.Data.SqlDbType.VarChar, 10).Value = userid;
In these code i can insert user name in my memberinfo table..but i want to insert only user_code, not user_name..how i do this??
prodipjsr
16-Apr-13 2:11am
View
please give little example with code..i have create session in my log in page..
prodipjsr
16-Apr-13 0:55am
View
No, actually, i have no idea about this..can u give me any idea??
prodipjsr
15-Apr-13 2:27am
View
i cant understand where i should write what??? please give me a code with example..
prodipjsr
15-Apr-13 2:26am
View
please let me clear what the meaning of redirect.aspx page??? i cant understand where i should write what??? please give me a code with example..
prodipjsr
15-Apr-13 2:26am
View
please let me clear what the meaning of redirect.aspx page??? i cant understand where i should write what??? please give me a code with example..
prodipjsr
15-Apr-13 1:56am
View
Whine i use ur code it shown the error mess::
The page isn't redirecting properly
prodipjsr
13-Apr-13 4:17am
View
in this line show error mess
if(!String.IsNullOrEmpty(Session["UID"]))
can u help me why??
prodipjsr
13-Apr-13 2:41am
View
Dear Sir's,
Still i am waiting for ur ans..if u hv any example with code please send me @ prodipjsr@gmail.com...
prodipjsr
12-Apr-13 8:40am
View
Solution 2 is nothing but GAAN,,there is no code..there is no discussion how to check user with his role while login or go to others pagess
prodipjsr
12-Apr-13 8:38am
View
i understand.. but where is the code..???
prodipjsr
12-Apr-13 7:24am
View
i have create the page & i can insert user information with role into my table. now my question is how i can set access power for a user. Say i have 3 page in my web project. (i)create user, (ii)log in (iii)Transaction page. Now i have 3 user (a)admin (b)user (c) super user.
now how i set if the log in user is "user" then he cant access the page "(i)create user" or Transaction page. i hope u got my point..my mail id is..
prodipjsr@gmail.com
prodipjsr
12-Apr-13 6:57am
View
ok i will create the table in my database, but how can set the role for a user!! say user the cant access all the page in my project. but admin can access all page in my project...please help me..if u have any code..
prodipjsr
11-Apr-13 2:11am
View
my dateFormat: 'mm-dd-yy', i put the date format from calendar..
prodipjsr
11-Apr-13 2:09am
View
not working
prodipjsr
11-Apr-13 2:07am
View
dateFormat: 'mm-dd-yy',
prodipjsr
10-Apr-13 7:54am
View
can u give me the solution please..
prodipjsr
10-Apr-13 7:53am
View
not working
prodipjsr
10-Apr-13 7:38am
View
yes first one is working fine..And both data type is same DateTime...
prodipjsr
10-Apr-13 7:36am
View
I hv try but the system show the error::String was not recognized as a valid DateTime.
prodipjsr
10-Apr-13 7:31am
View
where is the problem?? i cant understand..please can u write the full code??please please..
prodipjsr
9-Apr-13 7:58am
View
no
prodipjsr
6-Apr-13 6:00am
View
Thank you Santosh,
where i write this code. can u give a example.please help me!!
prodipjsr
5-Apr-13 1:34am
View
how to restricted others pages? i means some users access some pages some user can not access. Please help me i am new in web project..
prodipjsr
4-Apr-13 7:14am
View
i have develop a small web project. where i have a login page. now i want to fix
1. before access any page u have to log in in ur web site. means without log in u can access others pages..
prodipjsr
3-Apr-13 5:29am
View
Not working. showing error mess "The name Try does not cxist in current contex"..how to solve please.....
my code is:::TextBox1 = Try Convert.ToInt32(((TextBox)GVRow.FindControl("TextBox1")).Text);
prodipjsr
3-Apr-13 5:20am
View
Ad again how to add footer in the bellow collection amt. where total collection is the sum of collection amt
prodipjsr
3-Apr-13 5:16am
View
Thank you amy,
how can i convert the TextBox string values to integer?? because the data type in my data base id int32. i am using "((TextBox)GVRow.FindControl("TextBox1")).Text;" code but it shown error. help me please. please ans me..
prodipjsr
3-Apr-13 5:15am
View
Thank ypu Naz_Firdouse,
how can i convert the TextBox string values to integer?? because the data type in my data base id int32. i am using "((TextBox)GVRow.FindControl("TextBox1")).Text;" code but it shown error. help me please.how i do this.
prodipjsr
3-Apr-13 2:08am
View
Thank you so much Amit. Its working fine. But one small problem still happened. The problem is ..last member_ID is inserted two time in every click. how i solve it??
prodipjsr
2-Apr-13 2:46am
View
what do u mean??
i want to a grid view where i will see all members ID,Name and Address,i also need one extra field in grid view for each row say name is collection. where i can put the amount and save it.when i save it the all datas are store in a table.
prodipjsr
2-Apr-13 0:57am
View
so how i insert data into database from a text box???
prodipjsr
1-Apr-13 9:33am
View
my code is::
=================
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Datacollection.aspx.cs" Inherits="New_NPS.Datacollection" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
<script type="text/javascript">
function isNumberKey(evt) {
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
put collection amount
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="Member_ID"
DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333"
GridLines="None" style="margin-right: 54px" Width="303px">
<alternatingrowstyle backcolor="White">
<columns>
<asp:BoundField DataField="Member_ID" HeaderText="Member_ID" ReadOnly="True"
SortExpression="Member_ID" />
<asp:BoundField DataField="First_Name" HeaderText="First_Name"
SortExpression="First_Name" ReadOnly="True" />
<asp:BoundField DataField="Last_Name" HeaderText="Last_Name"
SortExpression="Last_Name" ReadOnly="True" />
<asp:templatefield headertext="Collection Amount">
<itemtemplate>
<asp:textbox id="TextBox1" onkeypress="return isNumberKey(event)" type="Text" runat="server">
<editrowstyle backcolor="#2461BF">
<footerstyle backcolor="#507CD1" font-bold="True" forecolor="White">
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<rowstyle backcolor="#EFF3FB">
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<sortedascendingcellstyle backcolor="#F5F7FB">
<sortedascendingheaderstyle backcolor="#6D95E1">
<sorteddescendingcellstyle backcolor="#E9EBEF">
<sorteddescendingheaderstyle backcolor="#4870BE">
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:MemberConnectionString %>"
SelectCommand="SELECT [Member_Info].[Member_ID], [Member_Info].[First_Name], [Member_Info].[Last_Name] FROM [Member_Info] inner join [Membermaster] on [Member_Info].[Member_ID]=[Membermaster].[Member_ID]">
<asp:Button ID="btsave" runat="server" onclick="btsave_Click" Text="Save" />
</div>
====================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
namespace New_NPS
{
public partial class Datacollection : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btsave_Click(object sender, EventArgs e)
{
string Member_ID = string.Empty;
//string Frist_Name = string.Empty;
//string Last_Name = string.Empty;
string TextB
prodipjsr
1-Apr-13 2:01am
View
Yes but not get any solution..ca u help me Vinod??
Show More