15,898,134 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 Python 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 Member 9579525 (Top 111 by date)
Member 9579525
5-Apr-18 5:00am
View
ok. Thanks. I googled around that.Got solution as use pop3client. I dont knw about it. Can u share something about this. Which dll is to usee for this.
Member 9579525
5-Apr-18 2:55am
View
Which dll's reference need to add for pop3Client?
Member 9579525
5-Apr-18 1:30am
View
Can we pull sender's inbox to identify which mail delivery has failed?
Member 9579525
3-Apr-18 7:23am
View
Thanks.
Member 9579525
8-Mar-16 6:29am
View
Thank you.
Member 9579525
21-Jan-16 0:00am
View
I want to disable hyperlink in pdf if any e.g https://wwww.abc.com.
I don't want this link clickable.
Member 9579525
26-Aug-15 8:34am
View
Thank you. I tried this as well. But not working.
How to pass that null value from controller to SP. Actually it is working in Sql server
Member 9579525
26-Aug-15 7:58am
View
I tried that but it is giving error as "Method has invalid arguments". The datatype is bool for that variable.
Member 9579525
26-Aug-15 7:54am
View
Yes. I have tested in Sql server. It return correct records
Member 9579525
17-Aug-15 2:44am
View
I got the solution for above question but now I want to select all checkboxes when I check that header chechbox. how to do it?
Member 9579525
5-Aug-15 6:26am
View
It works..thank you.
Member 9579525
4-Aug-15 9:29am
View
//code in view
<div style="float:left; margin-left:100px">
<lable>Upload Image
<input type="file" name="image_icon" id="img" />
</div>
//code in controller
public ActionResult Create(FormCollection collection, sampleViewModel sampleVM, HttpPostedFileBase image)
{
try
{
//if (image != null)
if(sampleVM.image_icon!=null)
{
// var imageName = image.FileName;
var imageName = newsVM.image_icon;
var filePathOriginal = Server.MapPath("/Content/Image");
//var filePathThumbnail = Server.MapPath("/Content/Uploads/Thumbnails");
string savedFileName = Path.Combine(filePathOriginal, imageName);
image.SaveAs(savedFileName);
}
}
}
But i am getting image as null. And also want display image when i browse image from filedialogue.
Member 9579525
16-Jun-15 2:50am
View
Thank you.
Member 9579525
15-Jun-15 9:54am
View
Thanks. You are right. No one will ask question without trying. If you know the answer then you should put here rather giving reply like this.
Member 9579525
1-Jun-15 6:08am
View
Thank you.
After creating Web Api, i want to call it from my application so how to call it? and can i call one web API for different platforms?
Member 9579525
29-May-15 0:46am
View
Thank u..I want to implement Restfull API which will work on all platforms e.g web,mobile,tab etc. above links expailned it in mvc only. so how to do Restful websetrvices so that it will work on all platforms.
Member 9579525
25-Dec-14 3:08am
View
code..same as above but not working..have u tried in VS 8/10/12 or 13?
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:GridView ID="GrdViewCS" runat="server" AutoGenerateColumns="false">
<columns>
<asp:TemplateField HeaderText="Length">
<itemtemplate>
<asp:TextBox ID="TxtLength" runat="server" Text='<%#Bind("Length")%>' AutoPostBack="true"
BackColor="Transparent" OnTextChanged="TxtLength_TextChanged">
<asp:TemplateField HeaderText="Width">
<itemtemplate>
<asp:TextBox ID="TxtWidth" runat="server" Text='<%#Bind("Width")%>' AutoPostBack="true"
BackColor="Transparent" OnTextChanged="TxtWidth_TextChanged">
<asp:TemplateField HeaderText="Area">
<itemtemplate>
<asp:TextBox ID="TxtArea" runat="server" Text='<%#Bind("Area")%>' BackColor="Transparent"
ReadOnly="true">
<div>
</div>
</form>
Member 9579525
24-Dec-14 2:54am
View
Deleted
not showing complete code above..but completed as
Member 9579525
24-Dec-14 2:53am
View
Deleted
still not working..tried same as above/
//code
<asp:Panel ID="Mainpan" runat="server" Width="72%" BorderColor="AliceBlue">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<contenttemplate>
<asp:GridView ID="GrdViewCS" runat="server" AutoGenerateColumns="False">
<columns> <asp:TemplateField HeaderText="Length">
<itemtemplate>
<asp:TextBox ID="TxtLength" runat="server" BackColor="Transparent" Text='<%#Bind("Length")%>' OnTextChanged="TxtLength_TextChanged" onkeyup="checkNum(this);" AutoPostBack="true">
<asp:TemplateField HeaderText="Width">
<itemtemplate>
<asp:TextBox ID="TxtWidth" runat="server" BackColor="Transparent" Text='<%#Bind("Width")%>' OnTextChanged="TxtWidth_TextChanged" onkeyup="checkNum(this);" AutoPostBack="true">
<asp:TemplateField HeaderText="Area">
<itemtemplate>
<asp:TextBox ID="TxtArea" runat="server" ReadOnly="true" BackColor="Transparent">
Member 9579525
24-Dec-14 2:47am
View
Deleted
<asp:Panel ID="Mainpan" runat="server" ScrollBars="Auto" BorderStyle="Ridge" Height="200px"
Width="72%" BorderColor="AliceBlue">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<contenttemplate>
<asp:GridView ID="GrdViewCS" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC"
BorderColor="#DEBA84" BorderWidth="1px" ForeColor="#333333" GridLines="None"
Width="87%" CellPadding="0">
<rowstyle backcolor="#F7F6F3" forecolor="#333333">
<columns>
<asp:TemplateField HeaderText="Length">
<itemtemplate>
<asp:TextBox ID="TxtLength" runat="server" BackColor="Transparent" Text='<%#Bind("Length")%>' OnTextChanged="TxtLength_TextChanged" onkeyup="checkNum(this);" AutoPostBack="true">
<asp:TemplateField HeaderText="Width">
<itemtemplate>
<asp:TextBox ID="TxtWidth" runat="server" BackColor="Transparent" Text='<%#Bind("Width")%>' OnTextChanged="TxtWidth_TextChanged" onkeyup="checkNum(this);" AutoPostBack="true">
<asp:TemplateField HeaderText="Area">
<itemtemplate>
<asp:TextBox ID="TxtArea" runat="server" ReadOnly="true" BackColor="Transparent">
Member 9579525
24-Dec-14 2:37am
View
Deleted
<asp:Panel ID="Mainpan" runat="server" ScrollBars="Auto" BorderColor="AliceBlue">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<contenttemplate>
<asp:GridView ID="GrdViewCS" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC"
BorderColor="#DEBA84" BorderWidth="1px" ForeColor="#333333" GridLines="None"
Width="87%" CellPadding="0">
<rowstyle backcolor="#F7F6F3" forecolor="#333333">
<columns> <asp:TemplateField HeaderText="Sr. No.">
<itemtemplate>
<asp:TextBox ID="srnotxt" runat="server" AutoPostBack="true" BackColor="Transparent" Text=" <%#Container.DataItemIndex+1 %>">
<asp:TemplateField HeaderText="Length">
<itemtemplate>
<asp:TextBox ID="TxtLength" runat="server" BackColor="Transparent" Text='<%#Bind("Length")%>' OnTextChanged="TxtLength_TextChanged" onkeyup="checkNum(this);" AutoPostBack="true">
<asp:TemplateField HeaderText="Width">
<itemtemplate>
<asp:TextBox ID="TxtWidth" runat="server" BackColor="Transparent" Text='<%#Bind("Width")%>' OnTextChanged="TxtWidth_TextChanged" onkeyup="checkNum(this);" AutoPostBack="true">
<asp:TemplateField HeaderText="Area">
<itemtemplate>
<asp:TextBox ID="TxtArea" runat="server" ReadOnly="true" BackColor="Transparent">
Member 9579525
24-Dec-14 1:22am
View
Yes. tried but not working
Member 9579525
25-Nov-14 8:01am
View
yes....thanks.
Member 9579525
23-Aug-14 4:54am
View
thanx..but i want dragged element area wont be get empty means it remains as it is but on drop it will create another element
Member 9579525
3-Jul-14 4:56am
View
you have to set dynamic value to title of column.which type of data it is? and what have you tried?
Member 9579525
6-Jun-14 4:22am
View
where i have to write this. i am using anchor tag
Member 9579525
3-Jun-14 2:07am
View
i have solved.
table.HeaderRows=1;
Member 9579525
27-May-14 3:15am
View
error is gone nw called success function but showig guarbage data not opening pdf yet..
Member 9579525
27-May-14 2:56am
View
error functio is getting called..so showing that alert..
Member 9579525
26-May-14 8:04am
View
i have tried using ajax also, by it getting all data but not opening dialogue box to open/save pdf
//code
$.ajax({
url: '@Url.Action("Print_PDF", "Controller_Name")',
dataType: 'json',
data: {
gridData: dataJSON
},
ContentType:'application/json; charset=utf-8',
traditional: true,
type: 'POST',
success: OnComplete,
error: OnFail
});
function OnComplete(result) {
alert(result);
}
function OnFail(result) {
alert("OnFail");
}
in controller return type is return File(stream,"application/pdf",filename,);
Member 9579525
26-May-14 6:39am
View
but i am getting values..problem is that when there is large data in grid then not getting all data so while parsing getting error...i am creating form on click and passing data form it..if i am wrong then how to send all grid data to controller?
Member 9579525
29-Apr-14 0:15am
View
how to avoid application pool recycle..
Member 9579525
1-Apr-14 3:38am
View
thank u.
Member 9579525
29-Mar-14 2:57am
View
this also not working..is i have to set session timeout in IIS
Member 9579525
27-Mar-14 10:10am
View
any way..client or server side.. i just want to validate datepicker for restrict inserting manually or if inserts then disply error msg
Member 9579525
27-Mar-14 7:36am
View
i have written fun in layout.cshtml and calling that where i want display date but it is giving invalid date
//function
<script type="text/javascript">
$(function () {
var d = new Date()
var offsetms = d.getTimezoneOffset();// * 60 * 1000;
$('.UTCTime').each(function () {
try {
var text = $(this).html();
var n = new Date(text);
alert(n);//invalid date
n = new Date(n.valueOf() - offsetms);
n = new Date(n - offsetms);
$(this).html(n.toDateString("MM/dd/yyyy") + " " + n.toLocaleTimeString("hh:mm tt"));
$(this).attr("Converted from UTC " + text);
}
catch (ex) {
console.warn("Error converting time", ex);
}
});
});
</script>
//in cshtml
<td class="UTCTime"> @Model.date.ToString("MM/dd/yyyy, hh:mm tt")
</td>
Member 9579525
27-Mar-14 3:25am
View
i have to change in all page instead i want global solution which convert UTC to localtime
Member 9579525
20-Mar-14 7:54am
View
i am using mvc4 and i am new to it..i have written all code in index method..so according to you where should i load grid so next time it will not refresh?
Member 9579525
20-Mar-14 6:23am
View
yes...can i load some part of page rather grid
Member 9579525
20-Mar-14 4:03am
View
it taking as null but other fields like this also taking null and inserting 0.00..problem is only for one filed
Member 9579525
19-Mar-14 6:54am
View
now this is working...thank you
Member 9579525
19-Mar-14 5:14am
View
still it is displaying 4 digit after decimal point
Member 9579525
19-Mar-14 0:17am
View
session expire is done..i mentioned that i am handling exception using HandleError attribute and saving it in text file whenever exception occur..while doing that redirecting to custom view but when exception occurs in partial view then that custom view is displying in partial view
Member 9579525
18-Mar-14 7:29am
View
same thing is happening when exception occurs.. i want to create error log while exception occur..i have done that in BaseController in OnException method but when error comes in partail view then custom view is appearing onlt in partail view..how to avoid it?
Member 9579525
18-Mar-14 5:04am
View
if i don,t set timeout value in web.config still it work for long time e.g 30min ?
Member 9579525
18-Mar-14 4:07am
View
its working only paranthesis was missed
document.body.onclick = onuser_activite;//before
document.body.onclick = onuser_activite()//after;
Member 9579525
18-Mar-14 1:56am
View
it is working on separate page if i put that script..but i want to put in Layout.cshtml page ..but not working...so if i want apply to whole project where i put that scrpt?
Member 9579525
18-Mar-14 0:21am
View
var logouTimeInterval = 1 * 60 * 1000; //for 1 min and also hav tried var logouTimeInterval = 5000;//5 sec and i am using mvc4 so i hav writen that script in _Layout.cshtml so that on every page it will be applied...
Member 9579525
17-Mar-14 13:25pm
View
yes i leave it ideal..i didnt click anywhere...but it showing after long time..
Member 9579525
14-Mar-14 8:24am
View
even if i am giving less time e.g 5 sec then also it taking to long time show alert..is anywhere i have to set tme?
Member 9579525
14-Mar-14 7:16am
View
can we write this script in _Layout.cshtml and if i use this script then don't we have to write the code <sessionstate timeout="15"> in web.config
Member 9579525
14-Mar-14 4:18am
View
when this script will call?
Member 9579525
13-Mar-14 2:27am
View
it works...but when session expires in partial view then that 'SessionExpire' view is displying only in partial view..
Member 9579525
12-Mar-14 3:06am
View
i have set mode to "InProc"
Member 9579525
12-Mar-14 3:04am
View
//web.config
<sessionstate moed="InProc" timeout="1">
Member 9579525
12-Mar-14 3:03am
View
//web.config
<sessionstate mode="InProc" timeout="1">
Member 9579525
12-Mar-14 2:59am
View
Deleted
//web.config
<sessionstate mode="InProc" timeout="1">
Member 9579525
12-Mar-14 1:16am
View
i want retutn type of method whether it is ActionResult or JsonResult..i have tried
var method = controller.GetMethods();
var returnType = method.GetType();
but its not working..
Member 9579525
10-Mar-14 5:17am
View
no..i m returning view only but in case of ActionResult which is returning partial view thrn this happens..
Member 9579525
4-Mar-14 12:29pm
View
there is no errror..i am crating error log file and redirecting page to custom view but it is displaying in partial vieew rather than in whole page thats my que..
Member 9579525
4-Mar-14 7:38am
View
i am calling Error.cshtml in On\exception method in Base controller whwnever exception occuers but in case of partial view on page where exception occuresthe error page is diplaying only within partial view...why this happens
Member 9579525
3-Mar-14 7:30am
View
after saving log file i want ridirect to custom view calld "Error.cshtml" i tried this
filterContext.HttpContext.Response.Redirect("~/Shared/Error", true);
or
filterContext.Result =this.RedirectToAction("Logout", "Home");
but both doesnt work..
Member 9579525
3-Mar-14 7:00am
View
ok thanx..i also want to diaply error message on popup ehich is save in log file how can we do that?
Member 9579525
3-Mar-14 6:39am
View
thanks..it works..but can we save data in log file in asceding date wise..means last error dislply first and so on..
Member 9579525
6-Feb-14 8:21am
View
y have done that but what to do when user have to shown their own information on next page
Member 9579525
6-Jul-13 5:22am
View
i have tried this one also but getting same error..
Label lblcountryHOout = (Label)DsListHOoutlet.FindControl("LblCountryHOoutlet");
string countryHOout=lblcountryHOout.Text;
Member 9579525
3-Jul-13 0:31am
View
you can save image in binary format and display it..the datatype is varbinary for image
Member 9579525
6-Jun-13 0:00am
View
i want using sms gateway i have it...
Member 9579525
29-May-13 2:32am
View
i havnt got code to set watermark for dynamic textbox..
Member 9579525
29-May-13 2:31am
View
can we use TextBoxWatermarkExtender for dynamically created texboxes??
Member 9579525
20-May-13 9:03am
View
yes..
Member 9579525
8-May-13 8:39am
View
i am using __doPostBack('<%= TxtATQuantity.ClientID %>', '') javascript function to fire textchanged event to display total price dynamically
Member 9579525
5-Apr-13 3:33am
View
I am binding reports on button click of web page.
protected void btnATreport_Click(object sender, EventArgs e)
{
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("CrpATReport.rpt").Replace("Content Pages\\CrpATReport.rpt", "Reports\\CrpATReport.rpt"));
reportdocument.DataSourceConnections[0].SetLogon("sa", "******");
getreport();//in this method fetching data conditionwise
}
getting error missing parameter vlaues..
Member 9579525
3-Apr-13 8:42am
View
I am binding reports on button click of web page.
protected void btnATreport_Click(object sender, EventArgs e)
{
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("CrpATReport.rpt").Replace("Content Pages\\CrpATReport.rpt", "Reports\\CrpATReport.rpt"));
reportdocument.DataSourceConnections[0].SetLogon("sa", "******");
getreport();//in this method fetching data conditionwise
}
Member 9579525
3-Apr-13 7:28am
View
jst i want to know how to print and export the crystal report?
Member 9579525
15-Mar-13 8:59am
View
i am using 3 popups so maintaining state on diff. button click events and checking condition whether it is null or not
Member 9579525
18-Feb-13 8:00am
View
getting error "Object Expexcted"...because not getting textbox value
Member 9579525
18-Feb-13 4:31am
View
no difference and i am fetching unit price from database on radio button click.. still it is not working..
//my aspx code
<asp:Button CssClass="inputcommon" ID="BtnATAddToCart" runat="server" Text="Add To Cart" onclick="BtnATAddToCart_Click" />
<asp:Button ID="BtnATHidden" style="display:none" runat="server" Text="Button" />
<cc1:ModalPopupExtender ID="MpeAddToCart" runat="server" TargetControlID="BtnATHidden" PopupControlID="PanelAddToCart" >
<asp:Panel ID="PanelAddToCart" runat="server">
<div style="text-align:right; margin-bottom:-15px; margin-right:-10px;">
</div>
<div style="color:Black; color:#fff; background-color:#400a0a;
border-width:2px; border:5px solid silver; padding: 10px; font-size:14px; text-align:left;">
<table cellspacing="15">
<tr>
<td>
Currency Type:
</td>
<td>
<asp:RadioButton ID="RdoATbtnINRATC" Text="INR" runat="server" AutoPostBack="true" OnCheckedChanged="RdoATbtnINRATC_CheckedChanged" GroupName="PRICE" />
</td>
<td>
<asp:RadioButton ID="RdoATbtnDOLLARATC" Text="$" runat="server" AutoPostBack="true" OnCheckedChanged="RdoATbtnDOLLARATC_CheckedChanged" GroupName="PRICE" />
</td>
<td>
<asp:RadioButton ID="RdoATbtnEUROATC" Text="EURO" runat="server" AutoPostBack="true" OnCheckedChanged="RdoATbtnEUROATC_CheckedChanged" GroupName="PRICE" />
</td>
</tr>
<tr>
<td>
Unit Price:
</td>
<td colspan="3">
<asp:Label ID="LblATUPriceATC" CssClass="LblATUPriceATC" runat="server" >
</td>
</tr>
<tr>
<td>
Items Required:
</td>
<td colspan="3">
<asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Always" runat="server">
<contenttemplate>
<asp:TextBox ID="TxtATQuantityATC" CssClass="TxtATQuantityATC" AutoPostBack="true" runat="server" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TxtATQuantityATC" EventName="TextChanged" />
</Triggers>
</td>
Member 9579525
18-Feb-13 1:59am
View
thanku..how to debug js code?
Member 9579525
16-Feb-13 6:47am
View
not working..is it because of my code is on popup?
Member 9579525
16-Feb-13 6:39am
View
still its not working...need to define css class?
Member 9579525
16-Feb-13 6:12am
View
yes using master pages.. my price and quantity both are on popup as in above code..i am not getting why my code is not working..
Member 9579525
16-Feb-13 5:57am
View
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#txtQuantity").blur(function(){
var price = $("#LblATUPriceATC").text();
var totalAmount = $("#TxtATQuantityATC");
var toal = parseFloat(this.value) * parseFloat(price);
totalAmount.text(total);
});
});
</script>
<asp:Button CssClass="inputcommon" ID="BtnATAddToCart" runat="server" Text="Add To Cart" onclick="BtnATAddToCart_Click" />
<asp:Button ID="BtnATHidden" style="display:none" runat="server" Text="Button" />
<cc1:ModalPopupExtender ID="MpeAddToCart" runat="server" TargetControlID="BtnATHidden" PopupControlID="PanelAddToCart" >
<asp:Panel ID="PanelAddToCart" runat="server">
<div style="text-align:right; margin-bottom:-15px; margin-right:-10px;">
<asp:ImageButton ID="ImgbtnATCancelATC" OnClick="ImgbtnATCancelATC_Click"
ImageUrl="~/System Modules/Standard/images/close.png" style="width:30px; height:30px;" runat="server" />
</div>
<div style="color:Black; color:#fff; background-color:#400a0a;
border-width:2px; border:5px solid silver; padding: 10px; font-size:14px; text-align:left;">
<table cellspacing="15">
<tr>
<td>
Currency Type:
</td>
<td>
<asp:RadioButton ID="RdoATbtnINRATC" Text="INR" runat="server" AutoPostBack="true" OnCheckedChanged="RdoATbtnINRATC_CheckedChanged" GroupName="PRICE" />
</td>
<td>
<asp:RadioButton ID="RdoATbtnDOLLARATC" Text="$" runat="server" AutoPostBack="true" OnCheckedChanged="RdoATbtnDOLLARATC_CheckedChanged" GroupName="PRICE" />
</td>
<td>
<asp:RadioButton ID="RdoATbtnEUROATC" Text="EURO" runat="server" AutoPostBack="true" OnCheckedChanged="RdoATbtnEUROATC_CheckedChanged" GroupName="PRICE" />
</td>
</tr>
<tr>
<td>
Unit Price:
</td>
<td colspan="3">
<asp:Label ID="LblATUPriceATC" runat="server" >
</td>
</tr>
<tr>
<td>
Items Required:
</td>
<td colspan="3">
<asp:TextBox ID="TxtATQuantityATC" runat="server" >
</td>
Member 9579525
16-Feb-13 5:32am
View
Thanks...I have done same but its not working..any other way?
Member 9579525
16-Feb-13 4:39am
View
thank u... my unit price is on label and want to diaplay total price on another label so will it work using above code.
Member 9579525
16-Feb-13 4:34am
View
thank u..can u suggest me which functon and how to use it??
Member 9579525
15-Feb-13 0:56am
View
I am doing same to calculate total amount but its not working..
Member 9579525
12-Feb-13 1:44am
View
how to use hidden field value as target control for three panels...I havent use hidden field
Member 9579525
12-Feb-13 1:40am
View
Deleted
how to use hidden field for target control.?
Member 9579525
12-Feb-13 1:05am
View
i expect this but not getting
Member 9579525
12-Feb-13 0:40am
View
thank u..amount is not getting dynamically..what shoud i do for it??
Member 9579525
5-Feb-13 2:19am
View
now its working...Thanx
Member 9579525
5-Feb-13 0:44am
View
thank u....i have tried that but getting exception "Object reference not set to an instance of an object."
//my code
string retrnurl = Request.QueryString["ReturnUrl"].ToString();//exception
if (!string.IsNullOrEmpty(retrnurl))
{
}
else
{
}
Member 9579525
4-Feb-13 6:23am
View
thnx....how to ReturnUrl with all querysreing parameters of requesting page
Member 9579525
2-Feb-13 1:58am
View
error is "input string is not in correct format"
Member 9579525
23-Jan-13 7:28am
View
thanks...but still doesnt fire event..I want to fetch data on poopup..plz give me solution...
Member 9579525
19-Dec-12 6:11am
View
thanks...i hav tried that but doesnt work....
Member 9579525
29-Nov-12 4:33am
View
//source code
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:LinkButton ID="Lnkbtn_chngpass" runat="server"
onclick="Lnkbtn_chngpass_Click">Change Password
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Lnkbtn_chngpass"
CancelControlID="Btncancel" OkControlID="Btnok" PopupControlID="Panel_chngpass" BackgroundCssClass="ModalPopupBG">
<asp:Panel ID="Panel_chngpass" runat="server">
<asp:Label ID="Lbl_currntpass" runat="server" Text="Current Password">
<asp:TextBox ID="Txt_currentpass" runat="server" TextMode="Password">
<br/>
<asp:Label ID="Lbl_newpass" runat="server" Text="New Password">
<asp:TextBox ID="Txt_newpass" runat="server" TextMode="Password">
<br />
<asp:Button ID="Btnok" runat="server" Text="Change Password"
onclick="Btnok_Click" />
<asp:Button ID="Btncancel" runat="server" Text="Cancel"
onclick="Btncancel_Click" />
Member 9579525
29-Nov-12 4:30am
View
Deleted
// source code
<asp:LinkButton ID="Lnkbtn_chngpass" runat="server"
onclick="Lnkbtn_chngpass_Click">Change Password
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Lnkbtn_chngpass"
CancelControlID="Btncancel" OkControlID="Btnok" PopupControlID="Panel_chngpass" BackgroundCssClass="ModalPopupBG">
<asp:Panel ID="Panel_chngpass" runat="server">
<asp:Label ID="Lbl_currntpass" runat="server" Text="Current Password">
<asp:TextBox ID="Txt_currentpass" runat="server" TextMode="Password">
<br/>
<asp:Label ID="Lbl_newpass" runat="server" Text="New Password">
<asp:TextBox ID="Txt_newpass" runat="server" TextMode="Password">
<br />
<asp:Button ID="Btnok" runat="server" Text="Change Password"
onclick="Btnok_Click" />
<asp:Button ID="Btncancel" runat="server" Text="Cancel"
onclick="Btncancel_Click" />
Member 9579525
20-Nov-12 6:27am
View
thank u....can u suggest me code
Member 9579525
17-Nov-12 4:44am
View
i m trying following way..
on registration form user have to choose the way how to login ie. either email id or user name
Member 9579525
8-Nov-12 7:59am
View
thank u...tell me example
Member 9579525
8-Nov-12 0:14am
View
will it give error if i wont write schema name before procedure name? and in insert query?
e.g
create procedure [schema name].[procedure name]
as
insert into [schema name][table name] values()
Member 9579525
7-Nov-12 7:57am
View
Deleted
yes i have done it in .cs file and connection string in webconfig file
//connection in web cofig
<connectionstrings>
<add name="con" connectionstring="Data Source=192.168.1.9;Initial Catalog=QuickArrange1.0;User ID=sa;Password=Aditya" providername="System.Data.SqlClient">
//.cs file
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public class Connectivity
{
public static SqlConnection GetConnection()
{
SqlConnection con = new SqlConnection();
String str = ConfigurationManager.ConnectionStrings["con"].ConnectionString;
con.ConnectionString = str;
con.Open();
return con;
}
}
Member 9579525
7-Nov-12 7:25am
View
thanks...
Member 9579525
7-Nov-12 7:18am
View
than u...i have tried that but it wont work....i have to click for enter value in it..
Member 9579525
7-Nov-12 7:11am
View
Deleted
//Stored procedure
ALTER PROCEDURE dbo.HDR_PROFILE_proc(@first_name varchar(15), @middle_name varchar(15), @last_name varchar(15),
@address varchar(150), @Mob_No varchar(15),@birthdate datetime , @gender bit, @email_id varchar(50), @user_id varchar(15), @password varchar(15), @confirm_pass varchar(15), @country varchar(15), @city varchar(15) )
AS
insert into DSProfile.HDR_PROFILE(first_name , middle_name ,last_name ,address , contact_number ,birth_date , gender, email_id, user_name , password , confirm_password ,country , city )values(@first_name , @middle_name , @last_name ,
@address , @Mob_No ,@birthdate , @gender , @email_id , @user_id, @password , @confirm_pass , @country , @city )
RETURN
//code
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = Connectivity.GetConnection();
txt_userid.Enabled = false;
txt_first_name.Focus();
}
protected void txtsubmit_Click(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand("[dbo].[HDR_PROFILE_proc]", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter(cmd);
//cmd.CommandText = "HDR_PROFILE_proc";
cmd.Parameters.AddWithValue("@first_name", txt_first_name.Text);
cmd.Parameters.AddWithValue("@middle_name", txt_middle_name.Text);
cmd.Parameters.AddWithValue("@last_name", txt_last_name.Text);
cmd.Parameters.AddWithValue("@address", txt_address.Text);
cmd.Parameters.AddWithValue("@Mob_No", txt_mob_no.Text);
cmd.Parameters.AddWithValue("@birthdate", Convert.ToString(txt_birthdate.Text));
cmd.Parameters.AddWithValue("@gender", Rdo_gender.SelectedIndex);
cmd.Parameters.AddWithValue("@email_id", txt_email.Text);
if (Rdobtn_userid.Checked == true)
{
cmd.Parameters.AddWithValue("@user_name", txt_userid.Text);
//cmd.Parameters.AddWithValue("@Login_with_email",'0');
}
//else
//{
// cmd.Parameters.AddWithValue("@Login_with_email",'1')
//}
cmd.Parameters.AddWithValue("@password", txt_pass.Text);
cmd.Parameters.AddWithValue("@confirm_pass", txt_confirm_pass.Text);
cmd.Parameters.AddWithValue("@country", txt_country.Text);
cmd.Parameters.AddWithValue("@city", txt_city.Text);
DataSet ds = new DataSet();
da.Fill(ds); //exception ocuured here
cmd.ExecuteNonQuery();
con.Close();
}
}
Member 9579525
7-Nov-12 6:58am
View
ok...giving exception on line "da.Fill(ds)" after submiting form...
Member 9579525
7-Nov-12 6:53am
View
Thank u...but I am asking question means there should be stored procedure..
Member 9579525
7-Nov-12 6:51am
View
Deleted
Y hank u but I am asking question means there should be stored procedure..
Member 9579525
7-Nov-12 6:50am
View
Thank u...
Show More