15,897,187 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 nira.parmar (Top 42 by date)
nira.parmar
14-Jan-16 4:58am
View
We are using proxy class to call the service instead of adding service reference
nira.parmar
10-Sep-15 10:57am
View
We don't want to remove header. As it shows into IE 8 same we want it from chorme as well. And user don't want to change any setting every thing will be done from java script or code.
nira.parmar
8-May-15 6:10am
View
Is there any way to check running sql server job if exist any sql serve job then stop our processing service, and let job get executed first and then start our service.
nira.parmar
25-Mar-15 5:08am
View
Hi Peter,
Thanks, but I want to do this at code behind(C#).
nira.parmar
25-Mar-15 5:08am
View
Deleted
Hi Perter,
Thanks, but I want to do this at code behind(C#).
nira.parmar
22-Aug-14 3:38am
View
Please tell me how to avoid time out. it occurs after 10 to 15 hrs.
nira.parmar
11-Aug-14 7:19am
View
System.Net.FtpWebRequest.GetResponse();
At this line time out occuring.
SO please tell me what should have to do to check files are available on server or not?
nira.parmar
23-May-14 5:19am
View
Hi ,
I show you my code
Private Sub WBrowser_DocumentCompleted(sender As System.Object, e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WBrowser.DocumentCompleted
WBrowser.ScriptErrorsSuppressed = True
If dtgrd.Rows.Count > 1 Then
WBrowser.Document.Window.Frames(1).Document.GetElementById("lbNavigation$ctl00$QuickSearch1$txtBillNumber").InnerText = dtgrd.Rows(rowid).Cells(0).Value
WBrowser.Document.Window.Frames(1).Document.GetElementById("lbNavigation$ctl00$QuickSearch1$drsQSDates$txtDateRangeStart").InnerText = "02/10/2013"
billcode = WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("ctl00_ContentPlaceHolder1_pnlHeaderDetail_txtHBKey").DomElement.value.ToString
' UserName = WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("LblUserName").DomElement.value.ToString
WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("ctl00_ContentPlaceHolder1_pnlStatus_btnAddStatus").DomElement.Click()
'WaitForPageLoad()
'WebBrowser1.Navigate("http://navigator.cevalogistics.com/ModalDialogs/AddStatuses.aspx?BillType=1&BillKeys=" & billcode)
' WebBrowser1.Navigate("http://navigator.uat.logistics.corp/ModalDialogs/AddStatuses.aspx?BillType=1&BillKeys=" & billcode)
WaitForPageLoad2()
Else
If UserName = Nothing Then
UserName = WBrowser.Document.Window.Frames(2).Document.GetElementById("DivHome").Document.Window.Frames("IfrHome").Document.GetElementById("LblUserName").InnerHtml
End If
End If
End Sub
But Problem is that when WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("ctl00_ContentPlaceHolder1_pnlStatus_btnAddStatus").DomElement.Click() this button click event fired it opens New window and I want to access control of these new window but not able to access control.Help me how to acces these new window .
nira.parmar
23-May-14 4:46am
View
Hi Karthy,
below is my code
Private Sub WBrowser_DocumentCompleted(sender As System.Object, e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WBrowser.DocumentCompleted
WBrowser.ScriptErrorsSuppressed = True
If dtgrd.Rows.Count > 1 Then
WBrowser.Document.Window.Frames(1).Document.GetElementById("lbNavigation$ctl00$QuickSearch1$txtBillNumber").InnerText = dtgrd.Rows(rowid).Cells(0).Value
WBrowser.Document.Window.Frames(1).Document.GetElementById("lbNavigation$ctl00$QuickSearch1$drsQSDates$txtDateRangeStart").InnerText = "02/10/2013"
billcode = WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("ctl00_ContentPlaceHolder1_pnlHeaderDetail_txtHBKey").DomElement.value.ToString
' UserName = WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("LblUserName").DomElement.value.ToString
WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("ctl00_ContentPlaceHolder1_pnlStatus_btnAddStatus").DomElement.Click()
'WaitForPageLoad()
'WebBrowser1.Navigate("http://navigator.cevalogistics.com/ModalDialogs/AddStatuses.aspx?BillType=1&BillKeys=" & billcode)
WebBrowser1.Navigate("http://navigator.uat.logistics.corp/ModalDialogs/AddStatuses.aspx?BillType=1&BillKeys=" & billcode)
WaitForPageLoad2()
Else
If UserName = Nothing Then
UserName = WBrowser.Document.Window.Frames(2).Document.GetElementById("DivHome").Document.Window.Frames("IfrHome").Document.GetElementById("LblUserName").InnerHtml
End If
End If
End Sub
Problem is when this WBrowser.Document.Window.Frames(2).Document.Window.Frames(3).Document.GetElementById("ctl00_ContentPlaceHolder1_pnlStatus_btnAddStatus").DomElement.Click() click event get fired new popup window get opened and I want to access control of this window but I am not able to do that please help me...
nira.parmar
23-May-14 4:40am
View
I have did lot of Google but didn't get solution, that's why Posted question.
nira.parmar
21-May-14 3:46am
View
not getting solution.....
nira.parmar
28-Mar-14 6:04am
View
But it doesn't go into for loop
nira.parmar
9-Sep-13 2:17am
View
Thanks you. I have one more question ,I want to create a windows application in .net and sql server in background.When i installed it on other laptop, how database will managed?
nira.parmar
5-Sep-13 2:30am
View
Hi Mubin,
I have call SSIS packg from asp.net, When run application on locahost it works fine, but
when I am host on iis and access it from ip address it's not shows any error but data from excel is not import into table.
nira.parmar
31-Aug-13 9:32am
View
But How could it possible? pls tell me
nira.parmar
31-Aug-13 9:31am
View
Hi friend,
When I am uploading .mdb file having 900000 rows it throws
error:"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." Pls tell me the solution I am stuck. If there any Optimal solution for import this Huge records into MSsql server then pls tell me?
nira.parmar
30-Aug-13 9:33am
View
pls tell me how to use it in c# for import excel file in to database
nira.parmar
30-Aug-13 6:05am
View
BCP?
nira.parmar
30-Aug-13 5:50am
View
Hi thanks for your suggestion, but I want to upload millions of record into database.
Pls tell the optimal way?
nira.parmar
30-Aug-13 5:44am
View
Deleted
One million records in Excel.
nira.parmar
14-Dec-12 0:31am
View
I want to save in db also and for other function.
nira.parmar
13-Dec-12 13:36pm
View
page 2 cs file--
public partial class _Default : System.Web.UI.Page
{
public string abc;
protected void Page_Load(object sender, EventArgs e)
{
string amt = Page.Request.Form["nm"];
HiddenField1.Value = amt;
Page.ClientScript.RegisterStartupScript(this.GetType(),"alert","myfunction();",true);
string strs= HiddenField1.Value;//here i want to get decrypted value which is coming from javascript.
}
}
nira.parmar
13-Dec-12 13:34pm
View
Deleted
Page 2 cs file
public partial class _Default : System.Web.UI.Page
{
public string abc;
protected void Page_Load(object sender, EventArgs e)
{
string amt = Page.Request.Form["nm"];
HiddenField1.Value = amt;
string org= base64Decode(amt);
Page.ClientScript.RegisterStartupScript(this.GetType(),"alert","myfunction();",true);
string f1 = HiddenField1.Value;//here i want to get decrypted value which is coming from javascript.
}
public static string base64Decode(string sData)
{
try
{
System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
System.Text.Decoder utf8Decode = encoder.GetDecoder();
byte[] todecode_byte = Convert.FromBase64String(sData);
int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);
char[] decoded_char = new char[charCount];
utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0);
string result = new String(decoded_char);
return result;
}
catch (Exception ex)
{
throw new Exception("Error in base64Decode" + ex.Message);
}
}
}
nira.parmar
13-Dec-12 13:33pm
View
This is my whole code
Page 1---
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="prac1.aspx.cs" Inherits="tampering.prac1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<script type="text/javascript" src="encrypt-decrypt.js"></script>
<script type="text/javascript" language="javascript">
function disableText() {
var amt = document.getElementById('MAmount').value;
var password = 'L0ck it up saf3';
var ciphertext = Aes.Ctr.encrypt(amt, password, 256);
document.getElementById('hdn').value = vb;
document.getElementById('MAmount').disabled = true;
return true;
}
</script>
<body>
<form name="form" action="Default.aspx" method="post" önsubmit="disableText()">
<div>
<table>
<tr>
<td>
<table id="table1" border="10">
<tr>
<th colspan="2" >
Detail for Donation
</th>
</tr>
<tr>
<td class="style34"> Transaction Amount: </td>
<td><input type="text" id="MAmount" name="MAmount" size="25" style="width: 127px" />
<input type="hidden" id="hdn" name="nm" />
</td>
</tr>
<tr>
<td><br/>
<input type="submit" value="SUBMIT" />
<br /> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Page 2----
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="tampering._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" language="javascript" src="encrypt-decrypt.js"> </script>
<script type="text/javascript">
function myfunction() {
var password = 'L0ck it up saf3';
var ciphertext = document.getElementById('<%=HiddenField1.ClientID%>').value;
var origtext = Aes.Ctr.decrypt(ciphertext, password, 256);
document.getElementById('<%=txt3.ClientID%>').value = origtext;
//this is decrypted value;
document.getElementById('<%=HiddenField1.ClientID%>').value = origtext;
return true;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>
</td>
<td>
<asp:HiddenField ID="HiddenField1" runat="server" />
</td>
<td>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Page 2 cs file----
public partial class _Default : System.Web.UI.Page
{
protected void Pa
nira.parmar
13-Dec-12 10:52am
View
pls tell me how to use ajax? actually I am using <form method="post" action=""nextpage.aspx"> on the page and used all html control
nira.parmar
1-Nov-12 10:10am
View
Place button in update panel and check.
nira.parmar
1-Nov-12 9:50am
View
Directly assign first datatable value to another
like this
datatable dt1= new datatable();
datatable dt2=new datatable();
dt1=dt2;
nira.parmar
24-Jul-12 2:01am
View
I am using cascade dropdwon list and it is populated by a webmethod. when I am press back button of browser webmethod is recall and henced it is populated again then what i have to do?
nira.parmar
22-Jul-12 1:45am
View
Deleted
protected void imgPicsUpload_Click(object sender, ImageClickEventArgs e)
{
// HttpPostedFile UplPicture1 = Request.Files["UplPicture"];
if (true)
{
// int FileSize = UplPicture.FileBytes.Length;
int FileSize = UplPicture.PostedFile.ContentLength;
try
{
string filename = UplPicture.PostedFile.FileName;
if (FileSize <= 6048576)
{
string yyyy = Convert.ToString(DateTime.Now.Year);
string month = Convert.ToString(DateTime.Now.Month);
string day = Convert.ToString(DateTime.Now.Day);
string hour = Convert.ToString(DateTime.Now.Hour);
string sec = Convert.ToString(DateTime.Now.Second);
Random num = new Random();
int nn = num.Next(1000);
string gettype = System.IO.Path.GetExtension(this.UplPicture.PostedFile.FileName);
string filename1 = yyyy + "-" + month + "-" + day + "-" + hour + "-" + sec + "_" + nn + gettype;
// Image1.ImageUrl = FileUpload1.FileName;
if (Convert.ToInt32(ViewState["i2"]) == 0)
{
i = Convert.ToInt32(ViewState["i"]);
}
else
i = Convert.ToInt32(ViewState["i2"]);
ViewState["imagePath" + i] = "Uploaded_Images/" + filename1;
// ViewState["img" + i] = UplPicture.FileName;
ViewState["img" + i] = Path.GetFileName(UplPicture.PostedFile.FileName);
string filepath = Convert.ToString(ViewState["imagePath" + i]);
// UplPicture.SaveAs(Server.MapPath(("Uploaded_Images/") + filename1));
// UplPicture.PostedFile.SaveAs(Server.MapPath(("Uploaded_Images/") + filename1));
Stream strm = UplPicture.PostedFile.InputStream;
string targetPath = Server.MapPath(("Uploaded_Images/") + filename1);
var targetFile = targetPath;
//Based on scalefactor image size will vary
Thread Th = new Thread(new ParameterizedThreadStart(this.GenerateThumbnails));
double SF = 0.52;
object[] parameters = new object[] { SF, strm, targetFile };
Th.IsBackground = true;
Th.Start(parameters);
// i++;
ViewState["i"] = i + 1;
ViewState["i2"] = i + 1;
if (Convert.ToInt32(ViewState["flag"]) == 1)
{
ViewState["savecountimage"] = Convert.ToInt32(ViewState["savecountimage"]) + 1;
}
//string str = elm1.Text;
//elm1.Text += string.Format("<img src = '{0}' alt = '{1}' />", FilePath, FileName);
HtmlTableRow row1 = new HtmlTableRow();
HtmlTableCell cell1 = new HtmlTableCell();
HtmlTableCell cell2 = new HtmlTableCell();
HtmlTableCell cell3 = new HtmlTableCell();
//Image image1 = new Image();
//image1.Width = Unit.Pixel(20);
//image1.Height = Unit.Pixel(20);
//image1.ImageUrl = filepath;
Label lb = new Label();
lb.Text = " <img autostart='false' src='" + filepath + "' height='40px' width='60px' onmouseover = 'ShowBiggerImage(this.src)' önmouseout='ShowDefaultImage(this.src)'/>";
lb.Widt
nira.parmar
22-Jul-12 1:44am
View
This is my code on aspx page-->
<script src="tiny_mce/tiny_mce.js" type="text/javascript"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode: "exact",
elements: "Editor1",
theme: "advanced",
height: "250",
width: "400",
// skin: "o2k7",
plugins: "pdw,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",
// Theme options
theme_advanced_buttons1: "pdw_toggle,|,undo,redo,|,removeformat,outdent,indent",
theme_advanced_buttons2: "cut,pastetext,pasteword,||,bullist,numlist,|,link,unlink,|,justifyleft,justifycenter,justifyright,justifyfull,fontselect,fontsizeselect",
theme_advanced_buttons3: "bold,italic,underline,|,forecolor,strikethrough,|,ltr,rtl,backcolor",
//theme_advanced_buttons4: "removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_source_editor_wrap: true,
pdw_toggle_on: 0,
pdw_toggle_toolbars: "2,3,4",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: false,
relative_urls: false,
remove_script_host: true,
document_base_url: "",
file_browser_callback: "filebrowser"
});
</script>
<asp:TextBox runat="server" ID="Editor1" ClientIDMode="Static" TextMode="MultiLine" Columns="50" Rows="10" Text="" Width="69px"/>
<asp:FileUpload ID="UplPicture" runat="server" />
<asp:ImageButton ID="imgPicsUpload" runat="server" ImageUrl="~/Buttonss/Ok.jpg" OnClick="imgPicsUpload_Click" />
.CS code-->
protected void imgPicsUpload_Click(object sender, ImageClickEventArgs e)
{
// HttpPostedFile UplPicture1 = Request.Files["UplPicture"];
if (true)
{
// int FileSize = UplPicture.FileBytes.Length;
int FileSize = UplPicture.PostedFile.ContentLength;
try
{
string filename = UplPicture.PostedFile.FileName;
if (FileSize <= 6048576)
{
string yyyy = Convert.ToString(DateTime.Now.Year);
string month = Convert.ToString(DateTime.Now.Month);
string day = Convert.ToString(DateTime.Now.Day);
string hour = Convert.ToString(DateTime.Now.Hour);
string sec = Convert.ToString(DateTime.Now.Second);
Random num = new Random();
int nn = num.Next(1000);
string gettype = System.IO.Path.GetExtension(this.UplPicture.PostedFile.FileName);
string filename1 = yyyy + "-" + month + "-" + day + "-" + hour + "-" + sec + "_" + nn + gettype;
// Image1.ImageUrl = FileUpload1.FileName;
if (Convert.ToInt32(ViewState["i2"]) == 0)
{
i = Convert.ToInt32(ViewState["i"]);
}
else
i = Convert.ToInt32(ViewState["i2"]);
ViewState["imagePath" + i] = "Uploaded_Images/" + filename1;
// ViewState["img" + i] = UplPicture.FileName;
ViewState["img" + i] = Path.GetFileName(UplPicture.PostedFile.FileName);
string filepath = Convert.ToString(ViewState["imagePath" + i]);
// UplPicture.SaveAs(Server.MapPath(("Uploaded_Images/") + filename1));
// Upl
nira.parmar
29-Jun-12 1:49am
View
Pls give me the effective solution...............
nira.parmar
27-Jun-12 14:12pm
View
tried but not working
nira.parmar
17-May-12 9:51am
View
Could we use paypal payment gateway?
nira.parmar
6-May-12 23:09pm
View
how to maintain the counter?
nira.parmar
6-May-12 23:07pm
View
Now it's working after downloading latest Jquery files.......
Thanks.........
nira.parmar
15-Apr-12 9:35am
View
How to get all data
nira.parmar
5-Apr-12 5:56am
View
iam using both file upload control asyncfile upload also, but it is not work for me
nira.parmar
4-Apr-12 2:10am
View
this functionality working fine on local host but not working on hosting server
nira.parmar
20-Mar-12 7:47am
View
i am using <embed> tag which tag i will use
nira.parmar
20-Mar-12 7:46am
View
not working
nira.parmar
18-Mar-12 1:32am
View
It does'nt work, file is not upload.
nira.parmar
15-Mar-12 0:29am
View
I Have used but not working
Show More