15,891,253 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 irfanansari (Top 169 by date)
irfanansari
4-Nov-20 15:38pm
View
sir you are best thanks a lot always be happy
irfanansari
30-Sep-19 10:32am
View
i am so sorry aarti you are best one who teaching me a lot you are first one who helping me a lot really i am deep of heart thanks full of you i am new learner and actually i am creating a website ERP base application in asp.net i am not big expert first application website i am making by helping bootstrap css and vb.net asp.net. Aarti this is my first experience any person helped me continuously reply me all my question i am again thanks full for you i am From Pakistan I Pray For You Allah Give You Success In Your Life
Aarti if you believe me and if you not mind then would you like to give me your any contact as i personally take help from you please
thanks a lot
irfanansari
30-Sep-19 7:30am
View
sir thanks a lot just please can you help tell what is i here mean and work its for learning for me thanks
(select sum(Qty) from inv where VouDt< i.VouDt) as OpnQty
i.VouDt what is mean of i here ?
irfanansari
30-Sep-19 7:21am
View
yes sir thanks a lot sir i have a use full query which i got thanks a lot for helping me
select sum(case when ddate < '2019-09-02'
then credit end) -
sum(case when ddate < '2019-09-02'
then debit end)[Opening Balance],
sum(case when ddate <= '2019-09-03'
then credit end) -
sum(case when ddate <= '2019-09-03'
then debit end)[Closing Balance] from tt
irfanansari
30-Sep-19 5:58am
View
sir ok i have a -1 as closing date 2012-04-01 ok and opening balance null ok understandable
then 201-04-02 become last closing balance -1 will be opening -1 it is ok and qty 1
then how it is closing balance -2 it can be 0 or null as closing because -1+1=0 as closing balance
2012-04-03 opening balance is OK 0 and closing -1 why if qty 1
opeing is 0 and qty 1 then closing must be 1 but on 2012-04-03 closing -1 ??????
irfanansari
30-Sep-19 5:58am
View
sir ok i have a -1 as closing date 2012-04-01 ok and opening balance null ok understandable
then 201-04-02 become last closing balance -1 will be opening -1 it is ok and qty 1
then how it is closing balance -2 it can be 0 or null as closing because -1+1=0 as closing balance
2012-04-03 opening balance is OK 0 and closing -1 why if qty 1
opeing is 0 and qty 1 then closing must be 1 but on 2012-04-03 closing -1 ??????
irfanansari
28-Sep-19 2:28am
View
just i need help in logic at side of asp.net how to call in
irfanansari
27-Sep-19 8:00am
View
sir i already create a database and querry for select * from Menew and table is mine as bellow
SR_NO Menew Page_link MenuId Active
1 home home.aspx null TRUE
2 about about.aspx null TRUE
3 sale null TRUE
4 cash sale cash.aspx 3 TRUE
5 installemnt sale HP.aspx 3 TRUE
6 contact us contactus.aspx null TRUE
irfanansari
27-Sep-19 7:51am
View
but how tell process
select VouDt, InvId,
(select sum(Qty) from inv where VouDt< i.VouDt) as OpnQty,
sum(Qty) as Qty,
(select sum(Qty) from inv where VouDt< i.VouDt)- sum(Qty) as ClsQty
from Inv as i
where voudt >= '2012-04-01' and vouDt<='2012-04-30' -- filter date here it's for april-2012
group by InvId,VouDt i already use but how in report
irfanansari
27-Sep-19 7:49am
View
select VouDt, InvId,
(select sum(Qty) from inv where VouDt< i.VouDt) as OpnQty,
sum(Qty) as Qty,
(select sum(Qty) from inv where VouDt< i.VouDt)- sum(Qty) as ClsQty
from Inv as i
where voudt >= '2012-04-01' and vouDt<='2012-04-30' -- filter date here it's for april-2012
group by InvId,VouDt
irfanansari
26-Sep-19 8:38am
View
2012-04-01 00:00:00.000 62 NULL -1.00 NULL
2012-04-02 00:00:00.000 99 -1.00 1.00 -2.00
2012-04-03 00:00:00.000 8 0.00 1.00 -1.00
2012-04-04 00:00:00.000 8 1.00 1.00 0.00
first value openbalance is null is is good but sloe null why and then 02-04-2012 open balance -1 is ok but closing -2 why
irfanansari
26-Sep-19 7:56am
View
please tell complete process then i will be able to clear my mind how
irfanansari
26-Sep-19 4:28am
View
sir this is i think MVC sir can you tell some guide in simple asp.net please and you told good way just i need in this also sub menew as
| MenuItemId | MenuId | Heading | Tooltip | Hyperlink | Active |
|------------|--------|---------|-------------|------------|--------|
| 1 | 1 | Home | Home page | "/" | true |
| 2 | 1 | About | Our company | "/about" | true |
| 3 | 1 | Contact | Reach us | "/contact" | true |
| 4 | 1 | Sales | Sales team | "/sales" | true |
| 5 | 4 |"cash sale|cash sale |"/cash sale"| true |
then sale is main menu and cash sale is sub menu
irfanansari
10-Sep-19 17:12pm
View
sir thanks a lot and sorry actually i was wrong my self i was using double from-ware house double once HSR and same Purchase order number use and change HCT then when i query use of as you gave me it is show double sorry sir again
i am appreciated you
sir if you do not mind may i ask one question if you help in this so actually i am making first time installment application then i have no idea to use logic of inventory as first create a purchase order in tlbpo and its status is sent and then it shows others side mean towarehouse then it will accepted and issue then i want to ask its will works same table or create a new table for it
irfanansari
8-Sep-19 12:27pm
View
sir actuallay i want to use it as first who create a purchase order its status will be initial then it person who cteared purchase order not complete all stepls and save it and send it to other site mean vender to issue product then it is in intitial status then it will shows in notifiation at side of purchase order who created
step 1 initial
step 2 saved
step 3 sent
step 4 transit for receive
step 5 received/accepted
irfanansari
8-Sep-19 8:04am
View
sir i have a database as
Purchase_order, From_warehouse
003 Hyderabad Station Roard-HSR
004 Hyderabad Station Roard-HSR
007 Hyderabad Canttoment-HCT
007 Hyderabad Station Roard-HSR
008 Hyderabad Station Roard-HSR
123 Hyderabad Station Roard-HSR
786 Hyderabad Canttoment-HCT
9211 Hyderabad Canttoment-HCT
9211 Hyderabad Station Roard-HS
and i want to select just single line
Purchase_order From_warehouse
003 Hyderabad Station Roard-HSR
not like this
Purchase_order From_warehouse
003 Hyderabad Station Roard-HSR
003 Hyderabad Station Roard-HCT
as you told querry it is shows second result
Purchase_order From_warehouse
003 Hyderabad Station Roard-HSR
003 Hyderabad Station Roard-HCT
irfanansari
7-Sep-19 9:29am
View
SELECT DISTINCT Purchase_order, From_warehouse
FROM YourTable
Result this as bellow
Purchase_order, From_warehouse
003 Hyderabad Station Roard-HSR
004 Hyderabad Station Roard-HSR
007 Hyderabad Canttoment-HCT
007 Hyderabad Station Roard-HSR
008 Hyderabad Station Roard-HSR
123 Hyderabad Station Roard-HSR
786 Hyderabad Canttoment-HCT
9211 Hyderabad Canttoment-HCT
9211 Hyderabad Station Roard-HS
this is double again
irfanansari
7-Sep-19 9:24am
View
sir actually this is query i found on internet for get single record can you just explain it for me for understanding
DECLARE @txtitemname VARCHAR(8000)
SELECT @txtitemname = COALESCE(@txtitemname + ', ', '') + txtitemname FROM tblpo
SELECT distinct txttrannumber, @txtitemname AS Transation_number FROM tblpo
irfanansari
6-Sep-19 13:25pm
View
sir this is querry i search from net and its works but not exact as i want
and i just want to learn mean expalin for me if you can
DECLARE @txtitemname VARCHAR(8000)
SELECT @txtitemname = COALESCE(@txtitemname + ', ', '') + txtitemname FROM tblpo
SELECT distinct txttrannumber, @txtitemname AS Transation_number FROM tblpo
irfanansari
6-Sep-19 13:11pm
View
sir thanks a lot for help but there is a problem in this if first colum purchase order and second order same then it shows single reocrd but it is not works when purchase order colum and from warehouse diffrents then it is show all records not single as see bellow
Purchase_order, From_warehouse
003 Hyderabad Station Roard-HSR
004 Hyderabad Station Roard-HSR
007 Hyderabad Canttoment-HCT
007 Hyderabad Station Roard-HSR
008 Hyderabad Station Roard-HSR
123 Hyderabad Station Roard-HSR
786 Hyderabad Canttoment-HCT
9211 Hyderabad Canttoment-HCT
9211 Hyderabad Station Roard-HSR
please sir
i want just single actually if you guide me more then its good i am new in this i am created a table in this i add there many times inserts all fields as date purchase order number from ware house and to ware house
irfanansari
6-Sep-19 13:04pm
View
sir thanks a lot for help but there is a problem in this if first colum purchase order and second order same then it shows single reocrd but it is not works when purchase order colum and from warehouse diffrents then it is show all records not single as see bellow
Purchase_order, From_warehouse
003 Hyderabad Station Roard-HSR
004 Hyderabad Station Roard-HSR
007 Hyderabad Canttoment-HCT
007 Hyderabad Station Roard-HSR
008 Hyderabad Station Roard-HSR
123 Hyderabad Station Roard-HSR
786 Hyderabad Canttoment-HCT
9211 Hyderabad Canttoment-HCT
9211 Hyderabad Station Roard-HSR
please sir
i want just single actually if you guide me more then its good i am new in this i am created a table in this i add there many times inserts all fields as date purchase order number from ware house and to ware house
irfanansari
6-Sep-19 12:43pm
View
you always have negative mind set that why you take wrong to persons not ablity you have to solve help but just creatisies person open your eyes and see bellow a good man good person reply and solved my issue
irfanansari
19-Aug-19 4:39am
View
if we use this just date show in good format but when we comparison between two diffrence date then it again required format like yyyy-mm-dd it is not work as like dd-mm-yyyy
irfanansari
19-Aug-19 4:37am
View
i also use
select format(datee,'dd - MM - yyyy') from sale2 where datee >= CONVERT(VARCHAR(10),'02-01-2019', 110) and datee <=CONVERT(VARCHAR(10), getdate(), 110)
irfanansari
16-Aug-19 6:04am
View
sir i use this
Public Function getvalueto() As SqlCommand
com = New SqlCommand("select * from sale", Me.con)
adpt = New SqlDataAdapter
adpt.SelectCommand = com
table = New DataTable
adpt.Fill(table)
MsgBox("Record Save Sussfully Now", MsgBoxStyle.Information, "Saved Record")
End Function
and behind load form
GridView1.DataSource = c.getvalueto
'GridView1.DataBind()
but not show any resuld not bound but as i use same code behind form load then it works
irfanansari
16-Aug-19 6:00am
View
i told already no error but Gridview not show any record and when i use same code behind form load its works it is not error not problem just it is not working as function
GridView1.DataSource = c.getvalueto
'GridView1.DataBind()
irfanansari
9-Aug-19 16:52pm
View
sir i have no issue in str or str + i have just issue in
<asp:literal id="Literal1" runat="server"> when i try to take out put of this css code function in Literal1 then it is not shows out put just shows blank and as i incluse a label with same function called then its works
irfanansari
10-Jul-19 12:53pm
View
then what is your real problem is are you mental or i never asked you or kick your door are you Psychotic Person
irfanansari
10-Jul-19 6:15am
View
for example google give allow API for Login his user name and password and they work in PHP and i Am Using In VB.net So I do not use it how strange talk you
irfanansari
10-Jul-19 6:14am
View
sir mny times you just here for criticize me but you never tell what is way of asking any Question and you never reply any Good Answer Just You Are Really became a Vampire be a human and help if you have any single peace of knowledge i tried but i think you sale your knowledge this is very simple if i want to learn any think new then i chose this plate form then you saying me i am wrong to selected this platform ?
irfanansari
9-Mar-19 15:57pm
View
sir i am sorry please do not be cray at me i just need help and try yo learn is there any other way or am want to learn this is possible can i make a same android app apk as ozeki give for buy and test what is way they create
irfanansari
9-Mar-19 15:14pm
View
sir i am really sorry you not understanding me i am saying it is working fine but when i got a sms from my side to other side there is also include botton a text by ozeki software by default and i can nor stop it i want to just sms as i am writing as used to do in gsm modem by using AT Commands what we write that shows just those words not any water mark
irfanansari
9-Mar-19 8:49am
View
Imports System
Imports System.IO
Imports System.Net
Imports System.Text
Imports System.Web
Public Class fMain
Private Sub bSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bSend.Click
Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim url As String
Dim username As String
Dim password As String
Dim host As String
Dim originator As String
Try
host = "http://127.0.0.1:9501"
originator = "06201234567"
username = "admin"
password = "abc123"
url = host + "/api?action=sendmessage&" _
& "username=" & HttpUtility.UrlEncode(username) _
& "&password=" + HttpUtility.UrlEncode(password) _
& "&recipient=" + HttpUtility.UrlEncode(tbReceiver.Text) _
& "&messagetype=SMS:TEXT" _
& "&messagedata=" + HttpUtility.UrlEncode(tbMessage.Text) _
& "&originator=" + HttpUtility.UrlEncode(originator) _
& "&serviceprovider=GSMModem1" _
& "&responseformat=html"
request = DirectCast(WebRequest.Create(url), HttpWebRequest)
response = DirectCast(request.GetResponse(), HttpWebResponse)
MessageBox.Show("Response: " & response.StatusDescription)
Catch ex As Exception
End Try
End Sub
End Class
irfanansari
9-Mar-19 8:45am
View
sir as you said this is not working with all devices then can you tell what way use by http://www.ozekisms.com/ they give app in android phone and they start service in device it generate a ip and then user name and password after that you can use that by this desktop app application in your computer and you also use its code by your own any programming language as like c sharp i did but there is a problem that it is use add some by default text which is this is send by ozeki i do not want to this
irfanansari
5-Mar-19 6:47am
View
thanks sir
irfanansari
4-Mar-19 8:10am
View
i just tried and then i got a ip address then port number but is there any way to use code to use it in dot net
irfanansari
4-Mar-19 7:56am
View
how to use GSM Modem Emulator by dot net
irfanansari
3-Mar-19 9:01am
View
sir thanks but this is android app i want to help in .net asp.net or form help code way as link https://www.codeproject.com/Articles/857539/SMS-Gateway-using-Android-Phone
irfanansari
3-Mar-19 9:01am
View
sir thanks but this is android app i want to help in .net asp.net or form help code way
irfanansari
28-Jan-19 3:57am
View
sir i ask how i can change in my code and what is setting need to be for it
irfanansari
28-Jan-19 3:56am
View
sir i ask how i can change in my code and what is setting need to be for it how to setting need to in admin
irfanansari
28-Jan-19 3:56am
View
sir i ask how i can change in my code and what is setting need to be for it
irfanansari
27-Jan-19 9:12am
View
Imports Microsoft.Win32
Public Class Form1
Public trailtime As DateTime
Dim VALUE As String
'Public trailtime As DateTime
Dim exePath As String = Application.ExecutablePath()
Dim appPath As String = Application.StartupPath()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' MsgBox(exePath)
' MsgBox(appPath)
txtapplicationrunpath.Text = appPath + "\file.exe"
' Try
Dim regStarUP As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN", True)
regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString))
VALUE = regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString))
If Not VALUE = Nothing Then
If My.Settings.checkbox = True Then
'Me.WindowState = FormWindowState.Minimized
' NotifyIcon1.Icon = SystemIcons.Application
'NotifyIcon1.BalloonTipText = "thi is minimize"
'NotifyIcon1.ShowBalloonTip(1000)
' Me.ShowInTaskbar = False
Visible = False
ShowInTaskbar = False
' MyBase.OnLoad(e)
End If
Else
Visible = True
ShowInTaskbar = True
End If
If My.Settings.status = False Then
'Not My.Settings.check Then
'My.Settings.check = True
My.Settings.status = True
trailtime = DateTime.Now
My.Settings.expiringdate = Nothing
Else
If My.Settings.expiringdate > DateTime.Now Then
'My.Settings.mydate.Add(New TimeSpan(22, 0, 0, 0)) > DateTime.Now Then
'MsgBox("active")
Else
System.Diagnostics.Process.Start(My.Settings.apppath)
'MsgBox("exried")
End If
End If
txtremaingdays.Text = My.Settings.expiringdate
Label2.Text = My.Settings.apppath
'Label1.Text = Application.ExecutablePath.ToString
' Catch ex As Exception
' End Try
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'OpenFileDialog1.Filter = "EXE FILE|*.EXE|JPEG FILE|*.JPEG|JPG FILE|*.JPG"
'If OpenFileDialog1.ShowDialog = DialogResult.OK Then
' txtapplicationrunpath.Text = OpenFileDialog1.FileName
'Else
' MsgBox("PLEASE SELECT FILE", MsgBoxStyle.Information
'End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If CheckBox1.Checked = True Then
My.Settings.checkbox = True
ElseIf CheckBox1.Checked = False Then
My.Settings.checkbox = False
End If
If txtapplicationrunpath.Text = "" Or TextBox1.Text = "" Then
MsgBox("Please Browse File Name Not Allow Blank")
Else
Dim regStarUP As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN", True)
regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString))
VALUE = regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString))
If VALUE = Nothing Then
'If regStarUP.GetValue(Label1.Text) = Nothing Then
'If VALUE <> Application.ExecutablePath.ToString Then
regStarUP.SetValue(IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString), Application.ExecutablePath.ToString)
'regStarUP.Close()
MsgBox("WRITE COMPLETE :")
My.Settings.apppath = txt
irfanansari
27-Jan-19 8:56am
View
there is no any way to show you at this place my application sir i am using application with setting.serial key save in this application and then form load then it is see what is serail number in this if is is save then program start other wise ask for serial number
irfanansari
27-Jan-19 3:44am
View
i am getting problem in .not when program run it is give error framework and give two button continue and cancel and some time same program run i just make simple program
irfanansari
24-Dec-18 7:05am
View
Deleted
i think so you have nothing to do there for useless animal came here and west my time go and wash you face there is a lot durst on your face do some work do not west time i am not came at your door you useless animal just west my time go to hell you do no have any work not any knowledge of programming just you dirty face take to you are helpless your self and how you will help to other go and find some doctor for your self you are mental
irfanansari
23-Dec-18 12:31pm
View
sir sorry i think so i can not explain in good way actually my work has been done and thanks a lot your reply i just making a app of alarm there is textbox button and visual basic my.setting .date and retrieve data from setting you can understand sir i use a alarm just first form will load and user give a date selected a date then today.date will check that given date and then as date will match as user give last time then auto screen show otherwise form1 always will be start but not shows user it works backwork with windows startup and i just juse visible=false a
irfanansari
23-Dec-18 12:15pm
View
Deleted
if you not give answer please do not take your unnecessary reply take your words in your mind as your wrong mind your think wrong all things as you are negative person thats why you looking other mind same as your badly it is your mind And frankly, it looks like a (very poor) attempt to hide an app so the user doesn't know its running; which looks like malicious code - but you wouldn't write that, would you? care fully take these negative worst words in your mind ACTUALLY YOU HAVE NOTING FOR WORKING USELESS PERSON YOU ARE
irfanansari
23-Dec-18 8:01am
View
sir thanks a lot i used a second way just can you help in this if you can it is working but i want to use this in condition it is working normal always i want to same this as checkedbox checked true its works other wise not
'Protected Overrides Sub OnLoad(ByVal e As EventArgs) 'by this code just Form form
' Visible = False
' ShowInTaskbar = False
' Opacity = 0
' MyBase.OnLoad(e)
'End Sub
irfanansari
23-Dec-18 4:39am
View
If My.Settings.checkbox = False Then
Me.WindowState = FormWindowState.Minimized
Me.ShowInTaskbar = False
i am want to this single form i am working with timer back working form must be hide and then timer will show ahain form
irfanansari
13-Nov-18 7:38am
View
sir thanks a lot your response there are a lot of people but no one ready to help me
sir actually my question is that i have a smart phone amazon fire or Samsung any model i already connected it and i am able to access my smart phone by data-cable how can i send sms by using a vb.net or c# software i did very good practice by nokia keypad mobiles it is shows comport then i access it easily like Nokia 6680 ETC
irfanansari
26-Oct-16 10:36am
View
my same Question
irfanansari
10-Mar-16 6:51am
View
VouDt< i.VouDt can you explain about it what is i here working ?
irfanansari
10-Mar-16 6:20am
View
please help me any other language getting out put like this ??????????
irfanansari
1-Mar-16 1:51am
View
how to create a trigger ?
irfanansari
15-Feb-16 4:12am
View
sir i have no any formula there for i am asking
irfanansari
13-Feb-16 5:10am
View
Sir This Site Not Working http://www.ozekisms.com/mms:xml/mms-settings/video/GoIPsetup/index.php?owpn=209&info=appendix/e---sms-alphabet[^]
irfanansari
7-Mar-15 9:08am
View
this is free API ?
irfanansari
3-Aug-14 7:45am
View
but sir how can i add culum in center or after any particulate culum like
first name
last name
then i want to add after first name middle name
irfanansari
2-Aug-14 7:14am
View
dear i try it in class1 but it did not works
irfanansari
2-Aug-14 6:58am
View
sir how can i give u it is can capture by keyboard in format of a image
irfanansari
15-Jul-14 5:05am
View
dear sir i just make a new project and copy and pst crstal report from old project the i try to open it in visual studio then it shows not crystal report in list of forms etc
irfanansari
7-May-14 5:53am
View
and what will be Query will use in this when one user come back login in his account like user name abc password 123 and login and then he can see his cv same as he loaded before
irfanansari
7-May-14 5:29am
View
as you reference this link there is just shows like convert file in html?
irfanansari
7-May-14 5:18am
View
like a user upload a doc file
i use a code to save it in a folder like cvfolder
then how i can see it when that same user come his account and he can find his cv same as he load on his Account
irfanansari
3-May-14 8:09am
View
Accountidanpal1 how to use textbox1 value from Accountidanpal1 please help
irfanansari
3-May-14 3:47am
View
at which place should i use this code please need help i will use first time
irfanansari
30-Apr-14 3:30am
View
i try to debug then this erorr come
Server Error in '/job online' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true">
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
irfanansari
30-Apr-14 0:53am
View
i wrote this code
If Not Request.Cookies("userinfo") Is Nothing Then
'Code if cookie does not exist
lblogin.Text = "no cokee"
Else
Dim cokee As HttpCookie = Request.Cookies("userinfo")
lblogin.Text = cokee("name")
End If
this is shows msg no cokeeks
but when i was working it was working fine and when i closed broswer then that error comes
irfanansari
23-Apr-14 15:26pm
View
not working
irfanansari
19-Apr-14 7:17am
View
yes there is also reference and bin folder hold files from ajax
irfanansari
19-Apr-14 7:00am
View
smae
Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
this is becuase i am using visual studio 2008?
irfanansari
19-Apr-14 6:55am
View
now shows this error
he control with ID 'Accon1_AccordionExtender' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
irfanansari
19-Apr-14 5:54am
View
IAm Using Visual Studio 2008
this is my code
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="csssheet.css" rel="stylesheet" type="text/css" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<asp:accordion runat="server" ID="Accon1" selectedindex="0" HeaderSelectedCssClass="accordionHeaderSelected" HeaderCssClass="accordionHeader" contentcssclass="accordionContent"
AutoSize="None"
FadeTransitions="true"
TransitionDuration="250"
FramesPerSecond="40"
RequireOpenedPane="false" >
<panes>
<asp:AccordionPane ID="Accountidanpal1" runat="server">
<header>
Personal Information
</header>
<content>
<table>
<tr><td>First Name</td><td><asp:TextBox ID="TextBox1" runat="server"></td><td>Last Name</td><td><asp:TextBox ID="TextBox2" runat="server"></td></tr>
</table>
<asp:AccordionPane ID="Accountidanpal2" runat="server">
<header>
Personal Information
</header>
<content>
<table>
<tr><td>First Name</td><td><asp:TextBox ID="TextBox3" runat="server"></td><td>Last Name</td><td><asp:TextBox ID="TextBox4" runat="server"></td></tr>
</table>
<asp:AccordionPane ID="Accountidanpal3" runat="server">
<header>
Personal Information
</header>
<content>
<table>
<tr><td>First Name</td><td><asp:TextBox ID="TextBox5" runat="server"></td><td>Last Name</td><td><asp:TextBox ID="TextBox6" runat="server"></td></tr>
</table>
<asp:AccordionPane ID="Accountidanpal4" runat="server">
<header>
Personal Information
</header>
<content>
<table>
<tr><td>First Name</td><td><asp:TextBox ID="TextBox7" runat="server"></td><td>Last Name</td><td><asp:TextBox ID="TextBox8" runat="server"></td></tr>
</table>
</panes>
</div>
</form>
</body>
</html>
irfanansari
19-Apr-14 5:41am
View
i replce same as you said then this error come
Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
irfanansari
19-Apr-14 5:11am
View
this is not working still same Error
irfanansari
4-Apr-14 19:49pm
View
what is this nonsence edent I Am Asking Question If You Have Problem Go To Hell...
irfanansari
1-Apr-14 5:13am
View
Dear Sir Sorry this is already i have tried this is not working on crom fire fox opera just working on internet explore
irfanansari
1-Apr-14 3:34am
View
i Have Create A Report In cryastal report and then want to open in pdf file asp.net clnd just click on button and he can see his information in pdf and save it pdf file
irfanansari
31-Mar-14 6:32am
View
at what place should past this code?
irfanansari
10-Dec-13 4:14am
View
Here similar issue solved http://scn.sap.com/thread/3305877[^]
Check this thread for deployment
Deploy Crystal Report Application[^]
here is not clearly shows about my issue please help me
irfanansari
27-Nov-13 12:43pm
View
IS THERE ANY ALTERNATIVE OF THIS ?
WHAT IS EASY WAY TO INSTALL CRYSTAL REPORT?
irfanansari
6-Oct-13 5:35am
View
THANK YOU DEAR please can you define JUST IN asp.net
irfanansari
4-Oct-13 13:58pm
View
thank you//
irfanansari
4-Oct-13 13:45pm
View
can i convert by this particular thing not completed page like
name jhone
Email: Jhone@yahoo.com
just two field not all page ?
please help me
irfanansari
3-Oct-13 14:53pm
View
i try this but there is Always shows
Dim sr As New IO.FileStream("[copyfrom]", IO.FileMode.Open)
Dim sw As New IO.FileStream("[copyto]",
directory not fount i gave it c:\foder name\file name
d:\
irfanansari
26-Sep-13 13:18pm
View
Sir i want to send sms by using nmy cell phone with At Command
irfanansari
24-Sep-13 8:33am
View
ok i will then i will ok
irfanansari
24-Sep-13 8:11am
View
i also try to use this in asp.net but it just show connected ok then when i try to send to it so it just goes here
txtbox.text=("ERROR MSG ON PORT")
irfanansari
22-Sep-13 5:32am
View
first of all i am create a web page and drop buttons and text box and rich text box OK
then i try to connect modem as bellow are code
Try
With SerialPort1
.PortName = ComboBox1.Text
.BaudRate = 9600
.Parity = Parity.None
.StopBits = StopBits.One
.DataBits = 8
.Handshake = Handshake.RequestToSend
.DtrEnable = True
.RtsEnable = True
.NewLine = vbCrLf
.Open()
MsgBox("Connected")
End With
Catch ex As Exception
MsgBox(ex.Message)
End Try
its woking fine and msg result comes connected
then i drop a button for send sms and when i click on it it just not send ms s just shows this msg MsgBox("ERROR MSG ON PORT")
Try
If SerialPort1.IsOpen Then
With SerialPort1
.Write("AT" & vbCrLf)
.Write("AT+CMGF=1" & vbCrLf)
.Write("AT+CMGS=" & Chr(34) & TextBox1.Text & Chr(34) & vbCrLf)
.Write(TXT_Message.Text & Chr(26))
MsgBox("sms Sent")
End With
Else
MsgBox("ERROR MSG ON PORT")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
these code working perfectly in Application but why same code not woking in asp.net
irfanansari
22-Sep-13 5:14am
View
in this as i need to search same file name ?
and
can you help me in AT Command
IS there any problem in asp.net
i used same code as form desktop application its works but when same code use vb.net in asp.net it not works
irfanansari
22-Sep-13 5:05am
View
will you help me ?
irfanansari
22-Sep-13 4:44am
View
please can you give some example code?
irfanansari
21-Sep-13 7:45am
View
ok if how can restore after installation ?
irfanansari
21-Sep-13 7:34am
View
please is there any way to Auto Restore Sql Data Base as Framework start to installation ?
irfanansari
21-Sep-13 7:16am
View
you may any i use VB.net but if you tell me any i will understand it
irfanansari
21-Sep-13 7:11am
View
please tell me how i can send sms in asp.net use of AT Command please
irfanansari
20-Sep-13 16:35pm
View
ok and please help me
irfanansari
20-Sep-13 15:13pm
View
you may see i am using VB.NET
you can see in Coding
irfanansari
20-Sep-13 14:28pm
View
but i have open port when i connect it you may see this code
Try
With SerialPort1
.PortName = ComboBox1.Text
.BaudRate = 9600
.Parity = Parity.None
.StopBits = StopBits.One
.DataBits = 8
.Handshake = Handshake.RequestToSend
.DtrEnable = True
.RtsEnable = True
.NewLine = vbCrLf
.Open()
MsgBox("Connected")
End With
Catch ex As Exception
MsgBox(ex.Message)
End Try
then i use this when try to send sms
Try
If SerialPort1.IsOpen Then
With SerialPort1
.Write("AT" & vbCrLf)
.Write("AT+CMGF=1" & vbCrLf)
.Write("AT+CMGS=" & Chr(34) & TextBox1.Text & Chr(34) & vbCrLf)
.Write(RichTextBox1.Text & Chr(26))
MsgBox("sms Sent")
End With
Else
MsgBox("ERROR MSG ON PORT")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
irfanansari
20-Sep-13 6:15am
View
No Sir i Am using Serial Port My Own Computer as i Am using in vb.net and its works fine
irfanansari
15-Sep-13 6:09am
View
please can you define these all
1. Urdu MUI
2. Urdu Keyboard
3. Code that can handle different locale, here Urdu.
irfanansari
15-Sep-13 4:54am
View
Dear Sir
Can I Use This In My Vb.net Code that It Auto Convert and Send by Email
Or IS There any Way that Supported Richtex box?
irfanansari
15-Sep-13 4:34am
View
sir just one more Question if you do not mind so can you tell me why richtext box not supported Unicode message when i m try to send sms by AT Command please help me
irfanansari
15-Sep-13 3:52am
View
sir just one more Question if you do not mind so can you tell me why richtext box not supported Unicode message when i m try to send sms by AT Command please help me
irfanansari
15-Sep-13 3:46am
View
thank you very very much its works thank you again
irfanansari
22-Aug-12 2:01am
View
please kindly clean your answer mean please i have no idea what r u saying i need code please?
irfanansari
19-Feb-12 10:14am
View
in this we may work visually as in visual studio
irfanansari
19-Feb-12 10:13am
View
thank you very very much Dear You Are So Nice Person
I Pray Always be Happy Thanks A Lot Again
irfanansari
19-Feb-12 10:00am
View
please tell me which one should i download there are for java and etc
irfanansari
19-Feb-12 8:46am
View
please tell me payment confirmation how i can by this and please tell me
please tell me also for credit card for this please
irfanansari
31-Jan-12 3:58am
View
this is show all table i want to show all database
irfanansari
30-Jan-12 14:09pm
View
IN THIS AUTO LANGUAGE WILL BE CHANGE I WANT TO JUST ONE TEXT-BOX SHOULD BE CHANGE LANGUAGE WHEN IT GETTING FOCUS
irfanansari
18-Jan-12 9:51am
View
Microsoft SQL Server 2000 Enterprise Edition
AND THIS VERTIONS MEAN 2005 AND 2008 AND MORE IF HERE IS NO EXPRESS VERSION SO IT IS LIMIT WILL BE REMIAS SAME AND
oracle HAS ALSO LIMITS TOO?
irfanansari
17-Jan-12 4:29am
View
please tell me about name space call and please tell me i just use my cell phone with data-cable is there need any driver of that data cable which i attached with my cell phone and please tell these code enough or is there any more code required?
irfanansari
11-Dec-11 5:56am
View
as you tell about pdfsharp so please tell me one thing more please how i can use trust level medium please step by step please
irfanansari
11-Dec-11 5:56am
View
as you tell about pdfsharp so please tell me one thing more please how i can use trust level medium please step by step please
irfanansari
16-Nov-11 6:18am
View
Please the way to converts and create a pfd file at same domain website is.
irfanansari
16-Nov-11 6:16am
View
Is there any file import?
and it will convert all page ?
if i want to some fields to convert so please tell me how i can do this please
irfanansari
16-Nov-11 2:37am
View
when i am creating a pdf file on same place so it give a error on go daddy domain security error
and when i am running on localhost so it works very good please is there any other way of itextsharp which is not good for me please help me
irfanansari
16-Nov-11 2:34am
View
what of your mean by itextsharp in full?
yes i am creating pdf from itextsharp
irfanansari
16-Nov-11 2:29am
View
faizan bhai it will work on secure server as i purchase from go daddy please tell me kindly
irfanansari
16-Nov-11 2:28am
View
so please tell me any other way please create a pdf and send it bcs server very secure
irfanansari
14-Nov-11 3:50am
View
but how please tell me please or is there any other way so please tell me any other object or other way to do this please
irfanansari
13-Nov-11 2:30am
View
Imports System.Net.Mail
Imports System
Imports System.IO
Imports iTextSharp.text
Imports iTextSharp.text.pdf
Partial Class CONTACT
Inherits System.Web.UI.Page
Dim c As New Class1
Dim MAIL As New MailMessage
Dim s As String
Dim path As String
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
path = Server.MapPath("contact.pdf")
' Dim writer As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("C:\sample.pdf", FileMode.Create))
PdfWriter.GetInstance(doc, New FileStream(Request.PhysicalApplicationPath + "\contact.pdf", FileMode.Create))
doc.Open()
Dim table = New PdfPTable(2)
Dim cell As New PdfPCell
cell = New PdfPCell(New Phrase("THIS IS CONTACT INFORATION WHICH IS FIELD BY USER"))
cell.Colspan = 2
cell.HorizontalAlignment = 1
table.AddCell(cell)
table.AddCell("First Name:")
table.AddCell(txtfname.Text)
table.AddCell("Last Name: ")
table.AddCell(txtlname.Text)
table.AddCell("Address:")
table.AddCell(txtaddress.Text)
table.AddCell("Apt#:")
table.AddCell(txtapt.Text)
table.AddCell("Postal Code: ")
table.AddCell(txtpostalcod.Text)
table.AddCell("City: ")
table.AddCell(txtcity.Text)
table.AddCell("*Province:")
table.AddCell(DropDownList1.Text)
table.AddCell("Country: ")
table.AddCell(DropDownList2.Text)
table.AddCell("Phone: ")
table.AddCell(txtphone.Text & vbNewLine & s)
table.AddCell("E-mail Address:")
table.AddCell(txtemail.Text)
table.AddCell("Campus of Interest: ")
table.AddCell(DropDownList3.Text)
table.AddCell("Program of Interest:")
table.AddCell(DropDownList4.Text)
table.AddCell("How did you hear about us?: ")
table.AddCell(DropDownList5.Text)
table.AddCell("CONTACT FORM FIELD DATE AND TIME")
table.AddCell(Date.Now)
doc.Add(table)
'Response.Redirect("~\sample.pdf")
doc.Close()
Try
MAIL.From = New MailAddress("irfanansari90@gmail.com", "MUHAMAD IRFAN ANSARI")
MAIL.To.Add("irfanansari85@yahoo.com,ansari@harisimad.com")
MAIL.Subject = "ALL INFORATION CONNTACT US"
MAIL.Body = "First Name :-" & vbTab & txtfname.Text & vbNewLine & _
"Last Name:-" & vbTab & txtlname.Text & vbNewLine & _
"Address:-" & vbTab & txtaddress.Text & vbNewLine & _
"APT #:-" & vbTab & txtapt.Text & vbNewLine & _
"Postal Code:-" & vbTab & txtlname.Text & vbNewLine & _
"City:-" & vbTab & txtlname.Text & vbNewLine & _
"Province:-" & vbTab & DropDownList1.Text & vbNewLine & _
"Country:-" & vbTab & DropDownList2.Text & vbNewLine & _
"City:-" & vbTab & txtcity.Text & vbNewLine & _
"Phone:-" & vbTab & txtphone.Text & s & vbNewLine & _
"E-mail Address:-" & vbTab & txtemail.Text & vbNewLine & _
"Campus of Interest:-" & vbTab & DropDownList3.Text & vbNewLine & _
"Program of Interest:-" & vbTab & DropDownList4.Text & vbNewLine & _
"How did you hear about us?:-" & vbTab & DropDownList5.Text
' eMAIL SEND WITH ATTACHMENT
MAIL.Attachments.Add(New Attachment(path))
Dim smtp As New SmtpClient("smtp.gmail.com")
smtp.Port = 587
smtp.EnableSsl = True
smtp.Credentials = New System.Net.NetworkCredential("irfanansari90@gmail.com", "tabletable")
smtp.Send(MAIL)
Catch ex As Exception
Session("a") = "THERE IS NO INTERNET CONNECTION"
End Try
Try
c.connection()
c.insert(txtfname, txtlname, txtad
irfanansari
13-Nov-11 2:30am
View
Imports System.Net.Mail
Imports System
Imports System.IO
Imports iTextSharp.text
Imports iTextSharp.text.pdf
Partial Class CONTACT
Inherits System.Web.UI.Page
Dim c As New Class1
Dim MAIL As New MailMessage
Dim s As String
Dim path As String
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
path = Server.MapPath("contact.pdf")
' Dim writer As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("C:\sample.pdf", FileMode.Create))
PdfWriter.GetInstance(doc, New FileStream(Request.PhysicalApplicationPath + "\contact.pdf", FileMode.Create))
doc.Open()
Dim table = New PdfPTable(2)
Dim cell As New PdfPCell
cell = New PdfPCell(New Phrase("THIS IS CONTACT INFORATION WHICH IS FIELD BY USER"))
cell.Colspan = 2
cell.HorizontalAlignment = 1
table.AddCell(cell)
table.AddCell("First Name:")
table.AddCell(txtfname.Text)
table.AddCell("Last Name: ")
table.AddCell(txtlname.Text)
table.AddCell("Address:")
table.AddCell(txtaddress.Text)
table.AddCell("Apt#:")
table.AddCell(txtapt.Text)
table.AddCell("Postal Code: ")
table.AddCell(txtpostalcod.Text)
table.AddCell("City: ")
table.AddCell(txtcity.Text)
table.AddCell("*Province:")
table.AddCell(DropDownList1.Text)
table.AddCell("Country: ")
table.AddCell(DropDownList2.Text)
table.AddCell("Phone: ")
table.AddCell(txtphone.Text & vbNewLine & s)
table.AddCell("E-mail Address:")
table.AddCell(txtemail.Text)
table.AddCell("Campus of Interest: ")
table.AddCell(DropDownList3.Text)
table.AddCell("Program of Interest:")
table.AddCell(DropDownList4.Text)
table.AddCell("How did you hear about us?: ")
table.AddCell(DropDownList5.Text)
table.AddCell("CONTACT FORM FIELD DATE AND TIME")
table.AddCell(Date.Now)
doc.Add(table)
'Response.Redirect("~\sample.pdf")
doc.Close()
Try
MAIL.From = New MailAddress("irfanansari90@gmail.com", "MUHAMAD IRFAN ANSARI")
MAIL.To.Add("irfanansari85@yahoo.com,ansari@harisimad.com")
MAIL.Subject = "ALL INFORATION CONNTACT US"
MAIL.Body = "First Name :-" & vbTab & txtfname.Text & vbNewLine & _
"Last Name:-" & vbTab & txtlname.Text & vbNewLine & _
"Address:-" & vbTab & txtaddress.Text & vbNewLine & _
"APT #:-" & vbTab & txtapt.Text & vbNewLine & _
"Postal Code:-" & vbTab & txtlname.Text & vbNewLine & _
"City:-" & vbTab & txtlname.Text & vbNewLine & _
"Province:-" & vbTab & DropDownList1.Text & vbNewLine & _
"Country:-" & vbTab & DropDownList2.Text & vbNewLine & _
"City:-" & vbTab & txtcity.Text & vbNewLine & _
"Phone:-" & vbTab & txtphone.Text & s & vbNewLine & _
"E-mail Address:-" & vbTab & txtemail.Text & vbNewLine & _
"Campus of Interest:-" & vbTab & DropDownList3.Text & vbNewLine & _
"Program of Interest:-" & vbTab & DropDownList4.Text & vbNewLine & _
"How did you hear about us?:-" & vbTab & DropDownList5.Text
' eMAIL SEND WITH ATTACHMENT
MAIL.Attachments.Add(New Attachment(path))
Dim smtp As New SmtpClient("smtp.gmail.com")
smtp.Port = 587
smtp.EnableSsl = True
smtp.Credentials = New System.Net.NetworkCredential("irfanansari90@gmail.com", "tabletable")
smtp.Send(MAIL)
Catch ex As Exception
Session("a") = "THERE IS NO INTERNET CONNECTION"
End Try
Try
c.connection()
c.insert(txtfname, txtlname, txtad
irfanansari
13-Nov-11 2:30am
View
Imports System.Net.Mail
Imports System
Imports System.IO
Imports iTextSharp.text
Imports iTextSharp.text.pdf
Partial Class CONTACT
Inherits System.Web.UI.Page
Dim c As New Class1
Dim MAIL As New MailMessage
Dim s As String
Dim path As String
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
path = Server.MapPath("contact.pdf")
' Dim writer As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("C:\sample.pdf", FileMode.Create))
PdfWriter.GetInstance(doc, New FileStream(Request.PhysicalApplicationPath + "\contact.pdf", FileMode.Create))
doc.Open()
Dim table = New PdfPTable(2)
Dim cell As New PdfPCell
cell = New PdfPCell(New Phrase("THIS IS CONTACT INFORATION WHICH IS FIELD BY USER"))
cell.Colspan = 2
cell.HorizontalAlignment = 1
table.AddCell(cell)
table.AddCell("First Name:")
table.AddCell(txtfname.Text)
table.AddCell("Last Name: ")
table.AddCell(txtlname.Text)
table.AddCell("Address:")
table.AddCell(txtaddress.Text)
table.AddCell("Apt#:")
table.AddCell(txtapt.Text)
table.AddCell("Postal Code: ")
table.AddCell(txtpostalcod.Text)
table.AddCell("City: ")
table.AddCell(txtcity.Text)
table.AddCell("*Province:")
table.AddCell(DropDownList1.Text)
table.AddCell("Country: ")
table.AddCell(DropDownList2.Text)
table.AddCell("Phone: ")
table.AddCell(txtphone.Text & vbNewLine & s)
table.AddCell("E-mail Address:")
table.AddCell(txtemail.Text)
table.AddCell("Campus of Interest: ")
table.AddCell(DropDownList3.Text)
table.AddCell("Program of Interest:")
table.AddCell(DropDownList4.Text)
table.AddCell("How did you hear about us?: ")
table.AddCell(DropDownList5.Text)
table.AddCell("CONTACT FORM FIELD DATE AND TIME")
table.AddCell(Date.Now)
doc.Add(table)
'Response.Redirect("~\sample.pdf")
doc.Close()
Try
MAIL.From = New MailAddress("irfanansari90@gmail.com", "MUHAMAD IRFAN ANSARI")
MAIL.To.Add("irfanansari85@yahoo.com,ansari@harisimad.com")
MAIL.Subject = "ALL INFORATION CONNTACT US"
MAIL.Body = "First Name :-" & vbTab & txtfname.Text & vbNewLine & _
"Last Name:-" & vbTab & txtlname.Text & vbNewLine & _
"Address:-" & vbTab & txtaddress.Text & vbNewLine & _
"APT #:-" & vbTab & txtapt.Text & vbNewLine & _
"Postal Code:-" & vbTab & txtlname.Text & vbNewLine & _
"City:-" & vbTab & txtlname.Text & vbNewLine & _
"Province:-" & vbTab & DropDownList1.Text & vbNewLine & _
"Country:-" & vbTab & DropDownList2.Text & vbNewLine & _
"City:-" & vbTab & txtcity.Text & vbNewLine & _
"Phone:-" & vbTab & txtphone.Text & s & vbNewLine & _
"E-mail Address:-" & vbTab & txtemail.Text & vbNewLine & _
"Campus of Interest:-" & vbTab & DropDownList3.Text & vbNewLine & _
"Program of Interest:-" & vbTab & DropDownList4.Text & vbNewLine & _
"How did you hear about us?:-" & vbTab & DropDownList5.Text
' eMAIL SEND WITH ATTACHMENT
MAIL.Attachments.Add(New Attachment(path))
Dim smtp As New SmtpClient("smtp.gmail.com")
smtp.Port = 587
smtp.EnableSsl = True
smtp.Credentials = New System.Net.NetworkCredential("irfanansari90@gmail.com", "tabletable")
smtp.Send(MAIL)
Catch ex As Exception
Session("a") = "THERE IS NO INTERNET CONNECTION"
End Try
Try
c.connection()
c.insert(txtfname, txtlname, txtad
irfanansari
13-Nov-11 2:30am
View
please tell me is there any way that i can create a pdf file on my purchase domain
please see my website and tell me please my code is this
Imports System.Net.Mail
Imports System
Imports System.IO
Imports iTextSharp.text
Imports iTextSharp.text.pdf
Partial Class CONTACT
Inherits System.Web.UI.Page
Dim c As New Class1
Dim MAIL As New MailMessage
Dim s As String
Dim path As String
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
path = Server.MapPath("contact.pdf")
' Dim writer As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("C:\sample.pdf", FileMode.Create))
PdfWriter.GetInstance(doc, New FileStream(Request.PhysicalApplicationPath + "\contact.pdf", FileMode.Create))
doc.Open()
Dim table = New PdfPTable(2)
Dim cell As New PdfPCell
cell = New PdfPCell(New Phrase("THIS IS CONTACT INFORATION WHICH IS FIELD BY USER"))
cell.Colspan = 2
cell.HorizontalAlignment = 1
table.AddCell(cell)
table.AddCell("First Name:")
table.AddCell(txtfname.Text)
table.AddCell("Last Name: ")
table.AddCell(txtlname.Text)
table.AddCell("Address:")
table.AddCell(txtaddress.Text)
table.AddCell("Apt#:")
table.AddCell(txtapt.Text)
table.AddCell("Postal Code: ")
table.AddCell(txtpostalcod.Text)
table.AddCell("City: ")
table.AddCell(txtcity.Text)
table.AddCell("*Province:")
table.AddCell(DropDownList1.Text)
table.AddCell("Country: ")
table.AddCell(DropDownList2.Text)
table.AddCell("Phone: ")
table.AddCell(txtphone.Text & vbNewLine & s)
table.AddCell("E-mail Address:")
table.AddCell(txtemail.Text)
table.AddCell("Campus of Interest: ")
table.AddCell(DropDownList3.Text)
table.AddCell("Program of Interest:")
table.AddCell(DropDownList4.Text)
table.AddCell("How did you hear about us?: ")
table.AddCell(DropDownList5.Text)
table.AddCell("CONTACT FORM FIELD DATE AND TIME")
table.AddCell(Date.Now)
doc.Add(table)
'Response.Redirect("~\sample.pdf")
doc.Close()
Try
MAIL.From = New MailAddress("irfanansari90@gmail.com", "MUHAMAD IRFAN ANSARI")
MAIL.To.Add("irfanansari85@yahoo.com,ansari@harisimad.com")
MAIL.Subject = "ALL INFORATION CONNTACT US"
MAIL.Body = "First Name :-" & vbTab & txtfname.Text & vbNewLine & _
"Last Name:-" & vbTab & txtlname.Text & vbNewLine & _
"Address:-" & vbTab & txtaddress.Text & vbNewLine & _
"APT #:-" & vbTab & txtapt.Text & vbNewLine & _
"Postal Code:-" & vbTab & txtlname.Text & vbNewLine & _
"City:-" & vbTab & txtlname.Text & vbNewLine & _
"Province:-" & vbTab & DropDownList1.Text & vbNewLine & _
"Country:-" & vbTab & DropDownList2.Text & vbNewLine & _
"City:-" & vbTab & txtcity.Text & vbNewLine & _
"Phone:-" & vbTab & txtphone.Text & s & vbNewLine & _
"E-mail Address:-" & vbTab & txtemail.Text & vbNewLine & _
"Campus of Interest:-" & vbTab & DropDownList3.Text & vbNewLine & _
"Program of Interest:-" & vbTab & DropDownList4.Text & vbNewLine & _
"How did you hear about us?:-" & vbTab & DropDownList5.Text
' eMAIL SEND WITH ATTACHMENT
MAIL.Attachments.Add(New Attachment(path))
Dim smtp As New SmtpClient("smtp.gmail.com")
smtp.Port = 587
smtp.EnableSsl = True
smtp.Credentials = New System.Net.NetworkCredential("irfanansari90@gmail.com", "tabletable")
smtp.Send(MAIL)
Catch ex As Exception
Session("a
irfanansari
13-Nov-11 2:29am
View
please tell me is there any way that i can create a pdf file on my purchase domain
irfanansari
12-Nov-11 7:21am
View
i Had A Create A File In PDF Formate it not allow on server so please advice me how i can create a file on domain which is not give me permisstion
irfanansari
13-Oct-11 5:35am
View
but he is saying u have to change trsut level from u side so how it will happen please tell me
irfanansari
13-Oct-11 5:17am
View
i had gotten now just please help me in from where and how i can trust level medium
irfanansari
13-Oct-11 4:55am
View
but i need att these permission on my domain not in my localhost it works at my computer please u can see my web site please
http://gifha.trivisionbtinc.com/contact.aspx
then tell me please i am very confused please help me
irfanansari
13-Oct-11 4:47am
View
here is a error that they are not give us permission so they are telling that you have to change trust level in medium so please tell me how and from where
irfanansari
13-Oct-11 4:44am
View
please tell me step by step please
how i can change trust level and from where
irfanansari
13-Oct-11 4:42am
View
please help me how i can write or change trust level
irfanansari
13-Oct-11 4:42am
View
but howi can create file or folder there is no allow here
irfanansari
11-Oct-11 9:55am
View
i used that as first i use itestobject and then it create a pdf file at same place and then i used google email account to atteced and send it its work at my localhost but when i load it on domain so it give a error please u can see this
gifha.trivisionbtinc.com
irfanansari
11-Oct-11 9:50am
View
please see my this web site then u can see my problem please
gifha.trivisionbtinc.com
here is a create a pdf file its working at my localhost and send a email as well but it create problem at domain u can see this
irfanansari
11-Oct-11 9:42am
View
I Cearte a same pdf file in itext using in my web site and also i am sending a emails but my domain not allow me to write on server when i am using a server.mappath("salme.pdf")
please help me and see this
gifha.trivisionbtinc.com
irfanansari
10-Oct-11 3:38am
View
Please tell me where is Prppaties i went there but there in no these all option so please give me screen shorts
irfanansari
4-Oct-11 8:17am
View
and then may i load website on domain?
irfanansari
11-Sep-11 15:15pm
View
You Told Me Very Good Ans Just Tell Me That How I Can These Setting On My Domain As I Puchared As www.etc.com
irfanansari
4-Sep-11 3:13am
View
How I Can Write Permission in my go daddy domain what process will be which i have to do
irfanansari
3-Sep-11 15:36pm
View
i will use also like this but there is also Same Error
Server.MapPath()
i mean how i can change in my domain host
irfanansari
3-Sep-11 15:31pm
View
i will use also like this but there is also Same Error
Server.MapPath()
irfanansari
3-Sep-11 15:25pm
View
this is Error come when i use on localhost its work on visual studio but ion on localhost it seems just for There is no Write Purmission so tell me how i will use that in my Domain
Server Error in '/' Application.
--------------------------------------------------------------------------------
Access to the path 'C:\sample.pdf' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\sample.pdf' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true">, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[UnauthorizedAccessException: Access to the path 'C:\sample.pdf' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +651
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1038
System.IO.FileStream..ctor(String path, FileMode mode) +64
CONTACT.ImageButton1_Click(Object sender, ImageClickEventArgs e) +81
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
irfanansari
3-Sep-11 15:14pm
View
So Please tell me how i can do this on my Domain As i Had purchased
i want to Also do this on Write on Domain
irfanansari
30-Aug-11 3:02am
View
Thanks A Lot Sir Can You Give Me Your Emails Address Please
irfanansari
29-Aug-11 1:53am
View
Sir Please Tell Me That I Have To Reference With Dll File And Then Imports Some Thing With those above Code?
irfanansari
28-Aug-11 5:24am
View
Sir You Do Know About it
So tell me please
irfanansari
28-Aug-11 5:12am
View
Sir i Mean Please help me
Save file in PDF please
irfanansari
28-Aug-11 4:50am
View
But I need directly use code convert in PDF not any other converter
irfanansari
25-Aug-11 14:26pm
View
ok So Please Tell me how This Possible To ConVert
irfanansari
17-Aug-11 2:54am
View
please any one tell me how i can save any text box or any rich text file in pdf please help me
irfanansari
16-Aug-11 20:28pm
View
Sir please is there any vb.net library as there is java
import java.io.FileOutputStream;
import com.itextpdf.text.Document;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
public class ITextHelloWorld {
public static void main(String args[])
try {
Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream("HelloWorld.pdf"));
document.open();
document.add(new Paragraph("Hello World"));
document.close();
} catch (Exception e) {
System.out.println(e);
}
}
}
so please tell me
irfanansari
23-Dec-10 12:14pm
View
PLEASE TELL ME HOW AND FROM WHERE I CAN ASCII CODE WHICH IS USE IN VB.NET
irfanansari
7-Dec-10 1:33am
View
please tell me that how is the process of it i use it but how i use my key bor and framworks
irfanansari
6-Dec-10 1:53am
View
please tell me some thing about it
just i want to read it from vb.net
irfanansari
6-Dec-10 1:46am
View
please tell me how i can check that my 6680 nokia mobile at commant support
irfanansari
6-Dec-10 1:41am
View
some thing please tell me
irfanansari
5-Dec-10 2:36am
View
please tell complete code please and tell how i can check that my phone is supporting at command an not and how i can check it
irfanansari
5-Dec-10 2:27am
View
mean to say that i want to connect with my particular server which has database and i m on Clint site using software
irfanansari
22-Nov-10 13:08pm
View
please tell me any other way please
irfanansari
22-Nov-10 12:46pm
View
but how there is nothing when i click on link
irfanansari
11-Nov-10 13:09pm
View
mean my clint in other city and i am other city then how i can do this please tell me
irfanansari
11-Nov-10 13:08pm
View
it not vpn it is www internet
irfanansari
4-Nov-10 2:22am
View
PLEASE TELL ME WHICH WEB SITE U GAVE IT IS OTHER LANGUAGE WHICH I DID NOT DISPUTANT SO HOW I CAN WORK THERE?
irfanansari
27-Oct-10 3:06am
View
PLEASE TELL ME IN DETAIL PLEASE
Show More