16,000,371 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 .NET 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 spanner21 (Top 62 by date)
spanner21
7-Apr-14 10:57am
View
not getting...Could you please elaborate
spanner21
7-Apr-14 8:44am
View
1)I made sure there will be no duplicate attachements
2)firstAttachment is declared inside the foreach loop
3)made the attachment only once.
now the code is as shown:
foreach (GridViewRow gvrow in grdfiledetails.Rows)
{
Attachment firstAttachment;
Label lbl = (Label)gvrow.FindControl("lblfilename");
string SupportAttachmentFilePath = "D:\\Program Files\\Duck Creek Technologies\\Express\\Temp\\SupportAttachments";
SupportAttachmentFilePath += "\\" + lbl.Text;
string BasePathValue = lbl.Text;
//firstAttachment = new Attachment(SupportAttachmentFilePath);
firstAttachment = new Attachment(SupportAttachmentFilePath, MediaTypeNames.Application.Octet);
mail.Attachments.Add(firstAttachment);
//attach1 = BasePathValue;
//firstAttachment.Dispose();
}
try
{
SmtpServer.Send(mail);
}
but i saw in google that dispose will work...so i tried to write it in after
SmtpServer.Send(mail);
but not able to acess the object of Attachements which is firstAttachment here..
please help..
i am stuck here...The process cannot access the file error is hammering me
spanner21
7-Apr-14 8:12am
View
i am adding all the files to a grid and then sending the mail by picking the files from grid
foreach (GridViewRow gvrow in grdfiledetails.Rows)
{
Label lbl = (Label)gvrow.FindControl("lblfilename");
string SupportAttachmentFilePath = "D:\\Program Files\\Duck Creek Technologies\\Express\\Temp\\SupportAttachments";
SupportAttachmentFilePath += "\\" + lbl.Text;
string BasePathValue = lbl.Text;
firstAttachment = new Attachment(SupportAttachmentFilePath);
firstAttachment = new Attachment(SupportAttachmentFilePath, MediaTypeNames.Application.Octet);
mail.Attachments.Add(firstAttachment);
//attach1 = BasePathValue;
//firstAttachment.Dispose();
}
try
{
SmtpServer.Send(mail);
}
its my code
spanner21
13-Jan-14 1:45am
View
Hi tadit,
this is my code for closing the pop up:
<asp:Button ID="btnClose" OnClientClick="self.closepopup(); return false" OnClick="btnClose_Click" Text="Close" runat="server"/>
and on clikc i am clearing my textbox.
please help how to close the pop up
spanner21
10-Jan-14 8:43am
View
hi tadit firt of all thanks but i am getting some problem in closing pop up also ,when i clcik on the link button on th epop up suppose say close button if i click it my pop up nneds to be close ...but its not closing giving javascript error so pls suggest
spanner21
8-Jan-14 1:19am
View
Thanks Tadit,...it worked
spanner21
7-Jan-14 23:33pm
View
Hi Tadit,
i wrote code like this
DataTable dt1 = new DataTable();
dt1.Columns.Add("filename");
DataRow dtrow = dt1.NewRow();
dtrow["filename"] = uploadFile.FileName.ToString();
dt1.Rows.Add(dtrow);
grdfiledetails.DataSource = dt1;
grdfiledetails.DataBind();
but whenever i click on the attch button the old row is getting updted with the new value,,i am not seeing old row..pls sugggest
spanner21
7-Jan-14 12:51pm
View
yes exactly
spanner21
7-Jan-14 10:19am
View
Hi Tadit due to client restrictions
spanner21
7-Jan-14 10:15am
View
thanks tadit but i acnt use jquery
spanner21
7-Jan-14 10:10am
View
thansk Richard,can i remove the files before sending mail
spanner21
31-Dec-13 0:51am
View
hi SA if i eneter any value in tetxbox to that textbox a dot and four zeroes should append automatically
spanner21
31-Dec-13 0:50am
View
hi SA if i eneter any value in tetxbox to that textbox a dot and four zeroes should append automatically
spanner21
31-Dec-13 0:49am
View
Deleted
suppose whenever i enter any value in text box automatically a dot and four zeroes should append to that text box
spanner21
31-Dec-13 0:43am
View
hi if i have tetxbox text has xyz automatically xyz.0000 should be appear...but if i have xyz.0 then also it should be xyz.0000...pls suggets
spanner21
31-Dec-13 0:34am
View
Deleted
hi its in lost focus event
spanner21
30-Dec-13 13:28pm
View
hello dave here my requirement is that i nned to send the mail with adding file as attachment that is the problem for me as there is no server pathfor me to upload the file....i need to send the mail along with the attachment... i googled it but not found what i am looking for
spanner21
30-Dec-13 13:04pm
View
thansk jas
spanner21
30-Dec-13 0:48am
View
i need to create
spanner21
29-Dec-13 3:53am
View
i wrote the above code in on row deleting event
spanner21
29-Dec-13 3:44am
View
Hi Jas...i deleted the row from grid by
dbTable.Rows[e.RowIndex].Delete();
Gridview.DataSource =dbTable;
GridView.DataBind();
able to remove the row from grid
now on click the complete button how to delete from database?please
but as you had mentionned in the previous comment that if i had used it it will ruin all the data...i am a little bit confused how and what will be the problem...please xplaoin in detail..please
spanner21
29-Dec-13 3:39am
View
Thanks Jas...i will check it..thanks for the help
spanner21
27-Dec-13 6:57am
View
Hi Jas,
I tried like
OnRowDeleting event i wrote:
dbTable.Rows[e.RowIndex].Delete();
Gridview.DataSource =dbTable;
GridView.DataBind();
spanner21
27-Dec-13 5:36am
View
i cant touch the database,,,can i do it via coding only please?
spanner21
26-Dec-13 0:07am
View
yes i am having my default server to there i will be semding mail from my controls like textbox texta and fileupoadcontrols file..now after sending mail to that server it will automatically send to the users who needs that mail ..
spanner21
26-Dec-13 0:05am
View
HI bhavesh it is showing file not found at that link
spanner21
24-Dec-13 5:43am
View
trhanks tadit
spanner21
24-Dec-13 5:20am
View
means do i need to refer these links in my application without downloading the files...Is my undersatanding correct? will it gives any problem in future if anythging goes wrong eith these files
spanner21
23-Dec-13 23:56pm
View
Thanks very much Karthik...It really worked..Once again thanks a lot and also i found the difference
spanner21
23-Dec-13 23:17pm
View
thanks karthik i had a small doubt here what is the difference between overlay panle and pop up panel
spanner21
23-Dec-13 13:50pm
View
thanks kartik..but i want cusomised pop up with continue as the button on clicking it i go to home page pls suggest
spanner21
23-Dec-13 13:48pm
View
CAN I CUSTOMISE THE POP UP AS PER MY DESIGN
spanner21
23-Dec-13 13:32pm
View
hi tadit thanks for the help but i cant download the jqury files...could u please elaborate the second suggestion regarding float of panel
spanner21
23-Dec-13 6:51am
View
yes its like "your request has been completed sucesfully"...and then on the same pop up i have on ebutton on which if i click i will got to home page
spanner21
13-Dec-13 3:48am
View
Deleted
Hi Tadit,
answer??? where i nned to find?
spanner21
13-Dec-13 2:41am
View
i got the control inside dropdown using
gvRow.Cells[3].FindControl("ddlFeetx") as DropDownList
now can i add the checkbox inside dropdown ...this is my doubt as i think i cant,,but i am planning to take combobox can i add check box inside combobox
spanner21
13-Dec-13 1:31am
View
Hi Tadit i am not getting idea how to str=art and from where to proceed
spanner21
12-Dec-13 23:54pm
View
hi karthik,this means that in dropdown controls i neeed check box as items in it
spanner21
12-Dec-13 23:53pm
View
hi jocodes i need some guidance in it for writing my code...i am not getting how to start as i am new to grid
spanner21
12-Dec-13 3:40am
View
i am not authorised to use ajx and also not to download any dlls.........is there any way i can implemet through dotnet coding
spanner21
12-Dec-13 3:40am
View
i am not authorised to use ajx and also not to download any dlls.........is there any way i can implemet through dotnet coding
spanner21
11-Dec-13 3:33am
View
i tried it but it didnt wok and also border-radius property is not supporting...Could you pls let me know if any other solution works
spanner21
22-Nov-13 9:42am
View
thanks karthik..it helped me
spanner21
21-Nov-13 7:11am
View
query is in sql
spanner21
21-Nov-13 7:10am
View
query is in sql...
we are realtinf through connection string and the remaining is through eval keyword
spanner21
19-Nov-13 1:32am
View
we are not alowed to use ajax.......but finally tried with the http://www.aspsnippets.com/articles/show-header-when-gridview-is-empty.aspx[^] link and it worked.........
spanner21
19-Nov-13 0:49am
View
thanks jas..will try
spanner21
19-Nov-13 0:31am
View
trie the second one also but my grid is still shrinking not as the same size when records are there
spanner21
19-Nov-13 0:26am
View
thanks jas...i will try the first one as second one they are creating a table and adding columns to it statically which means when a new column aded to my grid need to add in that table also....so it will be not be complete fixture...anyway i will try with first solutiona nad will let u know...
spanner21
18-Nov-13 23:50pm
View
googled but not found the exact solution.......
sorry to say even in the above link provided i havent got any solution....still facing the samee problem.....
i have a grid it should display the headers as it is when no records are there without getting the grid shrinking....currently when my grid has no records the grid is shrinking....
spanner21
18-Nov-13 23:44pm
View
i tried this but its not working....
spanner21
15-Nov-13 7:29am
View
ok...if the page is in webproect named pageconfflict.........i cant run the solution........right?
spanner21
15-Nov-13 7:26am
View
thanks a lot......this is what something i was looking
spanner21
15-Nov-13 7:24am
View
ok..means will it result in any compiler error?
spanner21
15-Nov-13 7:21am
View
through page...may be querystring like that.........
spanner21
15-Nov-13 7:06am
View
hi not sure whether my question is not understandable....not able to express what my colleague has exactly asked me.......
is there any way that we can findout through coding in C# what users are requested from our website.......I am a bit confused.
Anyways Thanks so much for the reply
spanner21
15-Nov-13 6:52am
View
how to identify what the users are requested please?
spanner21
6-Nov-13 3:09am
View
also here we are defining specific time 3000 in this case....i dont need a specific time like that..so please suggest if any other approach works
spanner21
6-Nov-13 3:01am
View
Deleted
thanks Jocodes,however my boss was not satisfied using timer control...one good news is that he is ok with Ajax implementation.....So how can we do with this Ajax....currently i am googling it
spanner21
6-Nov-13 2:14am
View
exactly.....requirement is without using ajax
spanner21
5-Nov-13 23:37pm
View
thanks Tadit...will try it
spanner21
5-Nov-13 23:37pm
View
thanks ........i think it works
Show More