15,881,173 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 sanwar_mal_jat (Top 36 by date)
sanwar_mal_jat
12-Oct-12 7:37am
View
Thanks Rohit ,
Me to 5.
This is very good solution , I am miss Page.DataBind(); method.
sanwar_mal_jat
11-Oct-12 7:37am
View
sorry i am use this method but it will not work in ImageButton's ImageUrl property.
sanwar_mal_jat
11-Oct-12 7:28am
View
ya when i am use in normal without any control binding it will work properly,
Means when i am use '<%$ AppSettings:PagePath %>' only this in my page my app key display in my rendered page but when i am use in control with my image name it is not work.
ImageUrl='/_Images/btn-edit.jpg' -> This solution work proper but i m use url rewriting and use a Trailing Slash in url it is not work. mens does not show my image.
Can u please any another suggestion provide me , I am awaiting it.
Thanks
sanwar_mal_jat
11-Oct-12 7:13am
View
In web config my app setting section is above mentioned
sanwar_mal_jat
11-Oct-12 7:02am
View
Thanks for reply.
Ya i am check my html code but my app key didn't render and not show the given app key url.
my html rendered code is
<input type="image" src="<%$%20AppSettings:PagePath%20%>_Images/btn-edit.jpg" id="MainContent_imgUpdate" name="ctl00$MainContent$imgUpdate">
sanwar_mal_jat
17-Sep-12 1:33am
View
Normal use Standard controls and general controls for link and labels
sanwar_mal_jat
12-Sep-12 3:18am
View
Hello guys what's problem occur, Because i have already checked using with master page , wit proper work . As like .
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Default5.aspx.cs" Inherits="Default5" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
.modalBackground
{
background-color: #CCCCFF;
filter: alpha(opacity=40);
opacity: 0.5;
}
.ModalWindow
{
border: solid1px#c0c0c0;
background: #f0f0f0;
padding: 0px10px10px10px;
position: absolute;
top: -1000px;
}
</style>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<cc1:modalpopupextender id="ModalPopupExtender1" runat="server" targetcontrolid="lnkPopup"
popupcontrolid="panEdit" backgroundcssclass="modalBackground" cancelcontrolid="btnCancel"
popupdraghandlecontrolid="panEdit">
<a id="lnkPopup" runat="server">Show Popup
<asp:Panel ID="panEdit" runat="server" Height="180px" Width="400px" CssClass="ModalWindow">
Edit
<table width="100%">
<tr>
<td class="formtext" style="height: 23px; width: 150px;" align="left">
Fields1:
</td>
<td>
<asp:TextBox ID="txtFields1" runat="server">
<cc1:calendarextender runat="server" id="ss" targetcontrolid="txtFields1">
</td>
</tr>
</table>
<br />
<asp:Button ID="Button1" runat="server" Text="Update" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" />
sanwar_mal_jat
10-Sep-12 7:39am
View
This is descriptive solution, Very good , me to 5++
sanwar_mal_jat
10-Sep-12 7:37am
View
Thanks Mohamed Mitwalli
sanwar_mal_jat
10-Sep-12 2:27am
View
tell me what u bind in your databind control
sanwar_mal_jat
10-Sep-12 2:22am
View
send your country_id selected indexchange event of your country drop down list from default.aspx page to default2.aspx and fill your state drop down list according country_id.........
sanwar_mal_jat
5-Sep-12 3:17am
View
Thanks for reply , but given links already remove the code.
so please any another idea then help me
sanwar_mal_jat
27-Jul-12 1:03am
View
Welcome Dost..........
sanwar_mal_jat
26-Jul-12 8:11am
View
Where exist your ETC.aspx page as like in root or other folder .......
sanwar_mal_jat
26-Jul-12 8:09am
View
Hello Friend use this code as like......
string X = dr[0].ToString();
Response.Redirect("ETC.aspx?Data="+X);
sanwar_mal_jat
26-Jul-12 5:48am
View
use this link
http://www.javascriptkit.com/script/script2/timestamp.shtml
and down load datepick.zip (download by right clicking, and selecting "save as") Link in step 3 ,Create a folder and add download file and image in this folder and create a html file and past below mention code...........
<html>
<head><title>jQuery Open Calendar</title>
<link rel="stylesheet" href="ui.all.css" type="text/css" media="screen" />
<script language="JavaScript" src="ts_picker.js">
//Add download js file link
</script>
</head>
<body>
<form name="tstest">
<input type="Text" name="timestamp" value="">
<img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp">
</form>
</body>
</html>
sanwar_mal_jat
26-Jul-12 3:22am
View
Hello use this link may be help full......
http://www.javascriptkit.com/script/script2/tengcalendar.shtml
http://www.aspsnippets.com/Articles/DateTimePicker-in-ASP.Net-GridView-using-jQuery-DateTimePicker-Plugin.aspx
sanwar_mal_jat
18-Jul-12 9:29am
View
ya but which one is better (SP or Function)
sanwar_mal_jat
18-Jul-12 9:28am
View
plz tell me any logically region can why slower function
sanwar_mal_jat
18-Jul-12 3:26am
View
use
Text='<%#Eval("ExpiryDate","{0:dd/MM/yyyy}") %>'/>
sanwar_mal_jat
18-Jul-12 3:17am
View
Deleted
Can u remove your commented line and try next time .........
sanwar_mal_jat
18-Jul-12 3:13am
View
Apply your Break point here Label1.Visible = true; and then debug and tell me where throw in catch block...
sanwar_mal_jat
18-Jul-12 3:02am
View
can u tell me result of date in this code ----- string date = dt.Rows[index][2].ToString();
sanwar_mal_jat
18-Jul-12 2:58am
View
plz use on Text='<%#Eval("IssueDate","{0:MM/dd/yyyy}") %>' as like may be solve your problem.............
sanwar_mal_jat
18-Jul-12 2:54am
View
Ya welcome Dude
sanwar_mal_jat
18-Jul-12 2:24am
View
And use your stored procedure as like .................
alter procedure Usb_fileupload
(
@Sub_Code varchar(50),
-- @Activedate varchar(50) Your Code
@Activedate datetime
)
as
begin
if((select count(*) from tblActiveSubBroker where Sub_Code=@Sub_Code)<1 and @Sub_Code<>'')
insert
into
tblActiveSubBroker
(
Sub_Code,
Activedate
)
values
(
@Sub_Code,
--convert(datetime,@Activedate,103) your code
@Activedate
)
end
sanwar_mal_jat
18-Jul-12 2:21am
View
Hello thanks for rewrite.
You can try it as like...........
protected void btnsave_Click1(object sender, EventArgs e)
{
Label1.Visible = true;
string tbname = "tblActiveSubBroker"; //dataset .. used 2 stored. then move dataset to .. grid..
string filename = Path.GetFileName(FileUpload1.FileName);
try
{
string fileName = string.Empty;
if (FileUpload1.HasFile)
{
fileName = FileUpload1.PostedFile.FileName;
string file_ext = Path.GetExtension(fileName);
if (file_ext.Trim().ToLower() == ".csv")
{
FileUpload1.Controls.Clear();
string line = null; int i = 0;
string imgMap;
imgMap = ConfigurationSettings.AppSettings["imageFolderMap"].ToString();
// save file on server then upload serfile on database and delete server file
strPath = imgMap + Path.GetFileName(fileName);
if (!Directory.Exists(imgMap))
{
Directory.CreateDirectory(imgMap);
}
//else
//{
// Directory.Delete(imgMap);
// Directory.CreateDirectory(imgMap);
//}
FileUpload1.PostedFile.SaveAs(strPath);
using (StreamReader sr = File.OpenText(strPath))
{
while ((line = sr.ReadLine()) != null)
{
string[] data = line.Split(',');
if (data.Length > 0)
{
if (i == 0)
{
foreach (object item in data)
{
{
dt.Columns.Add(new DataColumn());
}
}
i++;
}
DataRow row = dt.NewRow();
row.ItemArray = data;
dt.Rows.Add(row);
}
}
}
int count = dt.Rows.Count;
int index = 0;
//int currentindex = 0;
for (index = 0; index < count; index++)
{
string code = dt.Rows[index][1].ToString();
string date = dt.Rows[index][2].ToString(); // Your Code
con = new SqlConnection("Data Source=192.168.0.187;Initial Catalog=mis;Persist Security Info=True;User ID=sa;Password=ms");
cmd.Connection = con;
con.Open();
SqlCommand cmd1 = new SqlCommand("Usb_fileupload", con);
cmd1.CommandType = System.Data.CommandType.StoredProcedure;
cmd1.CommandTimeout = 10000;
SqlDataAdapter da = new SqlDataAdapter(cmd1);
cmd1.Parameters.Clear();
cmd1.Parameters.AddWithValue("@Sub_Code", SqlDbType.VarChar).Value = code;
cmd1.Parameters.AddWithValue("@Activedate", SqlDbType.VarChar).Value =Convert.ToDateTime( date);
cmd1.ExecuteNonQuery();
con.Close();
Label1.Text = "Data Inserted successfully";
}
}
//Past here renaming code
sanwar_mal_jat
6-Jul-12 8:48am
View
plz describe code
sanwar_mal_jat
2-Jul-12 7:21am
View
ya file open by some one and not stop the process ,when delete all files except opened file.
sanwar_mal_jat
2-Jul-12 7:08am
View
Thanks for reply,
But it will be deleted all of the existing file if they are use in process like (if file open or in a other process).
Plz revise my code.
Thanks
sanwar_mal_jat
29-Jun-12 3:16am
View
Plz use this reviewed code
<form id="form1" runat="server">
<asp:ScriptManager ID="sc" runat="server">
<div>
<asp:UpdatePanel runat="server" ID="uPanel">
<contenttemplate>
<asp:Panel runat="server" ID="pnlEtryForm">
<table>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button runat="server" ID="btn" Text="test" OnClick="btn_click" />
</td>
</tr>
</table>
<div id="pnlFormDonate" runat="server" visible="false">
<form >
</form>
<form id="frmDonate" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" >
<input class="empty" type="hidden" id="bus" name="business" value="kanag._1336399919_per@gmail.com" />
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="item_name" value="Donation For IJP" />
<input type="hidden" id="itemNo" name="item_number" value="Donate for IJP Ministry" />
<input type="hidden" name="amount" id="amt" />
<input id="Image1" runat="server" type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"
border="0" önclick="Submitfrom()" name="submit" alt="PayPal - The safer, easier way to pay online!" />
<img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" />
</form>
</div>
<Triggers>
<asp:PostBackTrigger ControlID="btn" />
</Triggers>
</div>
</form>
sanwar_mal_jat
25-Jun-12 8:57am
View
can u describe your grid view code using in .aspx and .aspx.cs page.
sanwar_mal_jat
25-Jun-12 8:50am
View
Ya sir absolutely i am waiting it.....
Thanks
sanwar_mal_jat
25-Jun-12 7:37am
View
Deleted
No comment
sanwar_mal_jat
25-Jun-12 6:24am
View
Thanks for Solution ,
No1. process help full , but when it is run show command prompt for a few second, so i do not use this method .
No2. As like recursive function and a loop boot are time consuming process.
sanwar_mal_jat
20-Jun-12 9:58am
View
Because remove server burden.
Show More