15,740,543 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 Javascript questions
View C++ questions
View Python questions
View Java 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 avelsamy (Top 86 by date)
avelsamy
19-Jul-23 6:49am
View
called from the controller. export url is nothing but current web page
avelsamy
19-Jul-23 6:49am
View
https://tools.abc***.com/mytools/data/logo-transparent.png is the correct URL which can be accessible in browser
avelsamy
17-Sep-21 2:51am
View
Yes, i got below exception
System.Exception: wkhtmltoimage does not appear to be installed on this linux system according to which command; go to https://wkhtmltopdf.org/downloads.html
avelsamy
14-Dec-17 4:46am
View
FYR,
INSERT INTO TRXN_Details
(TYPE,
FIRST_NAME,
GENDER,
Photo)
values
(AS_TYPE,
AS_FIRST_NAME,
AS_GENDER,
AS_PHOTO);
Note : photo column is a type of blob,
avelsamy
16-May-17 0:25am
View
i didnt get any error messages and all in console but its going to ajax post error section,
avelsamy
1-Sep-16 1:33am
View
i have used this ...
but even the function not triggering...
$(function () {
$('#divid a').click(function () {
var page = this.href.match(/page=([0-9])+/)[1];
$('#page').val(page);
$('form').submit();
return false;
});
});
avelsamy
31-Aug-16 6:47am
View
some values are "NULL" while ur binding, make your result set shoud have values
avelsamy
31-Aug-16 6:45am
View
share your code here,
avelsamy
31-Aug-16 6:29am
View
its working .... thank you MACIEJ
avelsamy
3-Feb-16 3:45am
View
"public class read_Incen" this is my model class
previously i typed wrongly
avelsamy
7-Sep-15 0:38am
View
Dear F-ES,
Sorry for the delay, i am asking about MVC aspx
avelsamy
1-Jun-15 8:45am
View
it was my mistake in my code behind i ave set the maxlength
avelsamy
12-May-15 2:17am
View
i have set this in html page, but how can i get the session values in aspx page
avelsamy
24-Feb-15 2:10am
View
<div ">
<div class="logo">
<img src="~/Images/fruit.png" width="176" height="55" alt="Fruit" border="0" runat="server"/>
</div>
avelsamy
4-Dec-14 4:00am
View
i got ur point .... what i am asking means, what are all we can do in noscript tag
avelsamy
11-Nov-14 0:29am
View
<sss.ascx clientidmode="static">
<asp:UpdatePanel ID="updswitch" runat="server">
<contenttemplate>
<div>
<div>
<div>
<div class="formfield_label">
Client</div>
</div>
<div>
<div><span id="Div3" class="tooltipcontainer hide-on-mobile hide-on-tablet" runat="server" title="<%$ Resources:hint_tooltip,clientname%>">
</span><span class="hide-on-mobile hide-on-tablet">:</span><asp:DropDownList ID="ddl_clientname" CssClass="form_input" runat="server" AutoPostBack="True" TabIndex="1">
</div>
</div>
</div>
<div>
<div>
<div class="formfield_label">
Fund</div>
</div>
<div>
<div><span id="span1" class="tooltipcontainer hide-on-mobile hide-on-tablet" runat="server" title="<%$ Resources:hint_tooltip,fundname%>">
</span><span class="hide-on-mobile hide-on-tablet">:</span><asp:DropDownList ID="ddl_fundname" runat="server" CssClass="form_input" AutoPostBack="True" TabIndex="2">
</div>
</div>
</div>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddl_clientname" />
<asp:AsyncPostBackTrigger ControlID="ddl_fundname" />
</Triggers>
</div>
aspx
-----
clientIdmode=static
<div id="dialog1" runat="server" style="display: none">
<asp:UpdatePanel ID="updt_valuation" runat="server" ClientIDMode="Static">
<contenttemplate>
<valred:valredeem ID="valredeem" runat="server" ClientIDMode="Static"/>
</div>
<valswitch:valswitch ID="valswitch" runat="server" AutoPostBack="True" />
</div>
</div>
avelsamy
9-Nov-14 23:29pm
View
yes adding auto-postback= true in aspx controls.but still it is not firing the selected index changed event, but it is firing the page load event in the user control(first time load when the parent aspx is loading)
avelsamy
7-Nov-14 7:00am
View
i want it in code behind, i have called the usercontrol in aspx page and showed it in jquery dialog.the values are loaded in the dropdown list. when the change the drop down, the page load event is fired in the usercontrol, and the selected index changed event is not firing.
avelsamy
4-Nov-14 1:47am
View
the problem is here i m using ajax post web method to call the webuser control's web method but its not firing ... i ll share the code here...
$(function () {
var availableTags = getbroker()
$("#txt_broker").autocomplete({
source: availableTags
});
});
function getbroker() {
$.ajax({
type: "POST",
url: "swith.aspx/get_broker",
data: '{}',
contentType: "application/json",
dataType: "json",
success: function (msg) {
alert('workingajax');
},
error: function () {
alert('error');
}
});
}
server side
------------
<webmethod()>
Public Shared Function get_broker() As Integer
return some value
end function
here i have put breakpoint its not firing.... but i have used the same code in my another aspx page its working fine. here i m using ascx page ... is there any problem on that
here error alert is executing
avelsamy
4-Nov-14 0:17am
View
already i have used this code , but instead of hard coded , i need to get the string values from database.(value field and text field)
avelsamy
17-Oct-14 6:21am
View
no , should i give?
avelsamy
15-Oct-14 8:11am
View
i m calling server side
------------------------
like this
Protected Sub OnConfirm(ByVal sender As Object, ByVal e As EventArgs)
end sub
avelsamy
7-Oct-14 8:33am
View
exactly this
college, dept
-------, ----
abcd, mech
abcd, mech
college, dept
-------, ----
abcd, cse
abcd, cse
college, dept
-------, ----
abcd, IT
abcd, IT
avelsamy
7-Oct-14 7:50am
View
before i have tried with StringBuilder, but o should use paging, and row events too. that is y i want it in grid
avelsamy
6-Oct-14 7:54am
View
colegename dept
---------- ----
abcd mech
abcd IT
abcd cse
abcd mech
abcd mech
abcd cse
abcd cse
abcd IT
abcd cse
abcd cse
abcd IT
this is my column names(college , dept), here i want to bind the mech dept along with college name in one grid similarly i want to bind the all dept , but i dont know howmany depts are there in table
avelsamy
1-Oct-14 6:08am
View
its auomatically getting 'YES' , Row command is not waiting for javascript alert
avelsamy
1-Oct-14 6:06am
View
still its getting that same ....
avelsamy
18-Sep-14 4:55am
View
can i have the script sample please
avelsamy
18-Sep-14 2:37am
View
you meant that, once again i should use ajax post?
avelsamy
30-Jul-14 1:15am
View
dear rajesh, i hope it will work, one more think is, from forgot password screen i have fromed the query string (link ) then i sending mail to the respective user,
1 is redirecting
2 is link also...
okay i got some ideas from ur points... i will let u know about it
thank you
avelsamy
10-Jul-14 5:22am
View
yeah i have used the same expression , which is sent by code project frnd
Thank u
avelsamy
10-Jul-14 5:18am
View
Mr. chauhanvatsal,
Its working fine,
could u explain how its working
avelsamy
5-Jun-14 4:45am
View
the cursor is blinking beginning of the text like |CodeNo- like this (here | is a cursor)
avelsamy
5-Jun-14 4:43am
View
i have corrected the code , but the cursor is placed beginning of the text
avelsamy
5-Jun-14 4:41am
View
i have used this one , the select is not a member of web user control error occuring....
avelsamy
28-May-14 0:14am
View
working fine Mr.Dave
here what is happening in this line
Using sw As New StringWriter(myResponse).
will u please explain me
avelsamy
28-Apr-14 7:46am
View
i have updated the question
avelsamy
22-Apr-14 3:45am
View
sorry no : ~/Temp/
avelsamy
22-Apr-14 3:05am
View
Dim illegalInFileName As New Regex("[\\/:*?""<>|]")
Dim filename As String = illegalInFileName.Replace(filename2, "")
its working thank you
avelsamy
22-Apr-14 3:03am
View
its working , i have used ~/temp/
thank you Mr Aravinda
avelsamy
22-Apr-14 0:41am
View
filename : "TO|DDA_1769377_RECEIVEDD.EML"
avelsamy
21-Apr-14 9:12am
View
thank you... i will be in touch
avelsamy
21-Apr-14 9:11am
View
contains, combination of user code , sess id, and the id
avelsamy
21-Apr-14 9:11am
View
yeah right , also i corrected those lines
but i m getting error in this line
blobMail = CType(TableContainer.Rows(0).Item(1), Byte()) - unable to cast string[] to byte[]
avelsamy
21-Apr-14 8:52am
View
got it Wes Aday.... sorry for the inconvenience... but still i get unable to cast string[] to byte[]
avelsamy
21-Apr-14 8:03am
View
If TableContainer.Rows.Count > 0 Then
If (Not TableContainer.Rows(0).Item(1) Is DBNull.Value) Then
filename = sess_id & "_" & UCase(amc & "_" & MessageID & "_sent.eml")
If (File.Exists(Server.MapPath("../Temp/" & filename))) Then
File.Delete(Server.MapPath("../Temp/" & filename))
End If
'Using ms As New MemoryStream()
' Using file As New FileStream("file.bin", FileMode.Open, FileAccess.Read)
' Dim bytes As Byte() = New Byte(file.Length - 1) {}
' file.Read(bytes, 0, CInt(file.Length))
' ms.Write(bytes, 0, CInt(file.Length))
' End Using
'End Using
Dim FS As FileStream = New FileStream(Server.MapPath("../Temp/" & filename), FileMode.Create)//here only the exception is occurring
blobMail = CType(TableContainer.Rows(0).Item(1), Byte())
FS.Write(blobMail, 0, blobMail.Length)
FS.Close()
FS = Nothing
Return ReturnVar
End If
End If
avelsamy
21-Apr-14 7:50am
View
yes but i didnt get useful from that
avelsamy
21-Apr-14 7:49am
View
file just contains blob type , is there any problem bcoz of that
avelsamy
21-Apr-14 6:32am
View
still no ....
avelsamy
21-Apr-14 5:53am
View
also didnt work , i cant able to figured out.... give me another idea pls
avelsamy
21-Apr-14 5:10am
View
still didnt work , Mr.bhagesh
avelsamy
21-Apr-14 1:20am
View
i am trying to substitute the table container values to mailBLOB(byte type) then i want to open the mail, bcoz the mail details are stored as a blob type
avelsamy
17-Apr-14 7:44am
View
Deleted
code behind :
Dim TableContainer As New DataTable
Try
Dim getvalues As New Select_Property()
Dim ReturnVar As Integer = 1
BusinessLayer = New BLL()
values.FLAG = "EMAIL"
getsetvalues.order_No = MessageID
TableContainer = BusinessLayer.GenerateData(values, func_amc(sess_id), strUserCode, strEqyPage, "")
If TableContainer.Rows.Count > 0 Then
Dim attachment As String = "attachment; filename= _received.eml"
Response.ContentType = "application/windows live mail 2012"
Response.AddHeader("Content-Disposition", attachment)
Response.ClearContent()
Response.Charset = ""
If (Not TableContainer.Rows(0).Item(0) Is DBNull.Value) Then
MailBLOB = CType(TableContainer.Rows(0).Item(0), Byte())
End If
Response.OutputStream.Read(MailBLOB, 0, MailBLOB.Length)
TableContainer = Nothing
Else
ClientScript.RegisterStartupScript(Me.GetType(), "Message", "<script> alert('No E-mail Attached');</script>")
End If
'End If
Catch ex1 As Threading.ThreadAbortException
Catch e As Exception
Finally
BusinessLayer.Dispose()
End Try
<itemtemplate>
<asp:LinkButton ID="btnRecdEmail" CommandName="ReceivedMail" CommandArgument='<%# Eval("MSG_ID")%>' runat="server"><img src="../images/newmail.gif" alt="ReceivedMail" runat="server" />
avelsamy
17-Apr-14 6:42am
View
Dim TableContainer As New DataTable
Try
Dim getvalues As New Select_Property()
Dim ReturnVar As Integer = 1
BusinessLayer = New BLL()
values.FLAG = "EMAIL"
getsetvalues.order_No = MessageID
TableContainer = BusinessLayer.GenerateData(values, func_amc(sess_id), strUserCode, strEqyPage, "")
If TableContainer.Rows.Count > 0 Then
Dim attachment As String = "attachment; filename= _received.eml"
Response.ContentType = "application/windows live mail 2012"
Response.AddHeader("Content-Disposition", attachment)
Response.ClearContent()
Response.Charset = ""
If (Not TableContainer.Rows(0).Item(0) Is DBNull.Value) Then
MailBLOB = CType(TableContainer.Rows(0).Item(0), Byte())
End If
Response.OutputStream.Read(MailBLOB, 0, MailBLOB.Length)
TableContainer = Nothing
Else
ClientScript.RegisterStartupScript(Me.GetType(), "Message", "<script> alert('No E-mail Attached');</script>")
End If
'End If
Catch ex1 As Threading.ThreadAbortException
Catch e As Exception
Finally
BusinessLayer.Dispose()
End Try
avelsamy
15-Apr-14 7:02am
View
my code : Dim FS As MemoryStream = New MemoryStream(Server.MapPath("../Temp/" & filename), FileMode.Create)
error : -
Value of type 'String' cannot be converted to '1-dimensional array of Byte'.
avelsamy
15-Apr-14 3:40am
View
yeah i tried , but i cant able to get it, confused... so will you please share some sapmle code for this....
avelsamy
9-Apr-14 6:30am
View
hi Mr.Puneet,
i have done myself, thank you... then i should display only 13 of records in one page another 13 should be in next page wt i have to do...
avelsamy
8-Apr-14 5:56am
View
Thank you once again G R...
avelsamy
8-Apr-14 5:34am
View
Dear Mr.Govindaraj R,
i am new to jquery and ajax,
whatever we can do with jquery , ajax...
avelsamy
8-Apr-14 5:26am
View
Thank you Mr.Govindaraj R, it will really help me, sure i will ....
avelsamy
8-Apr-14 5:19am
View
Thank you very much for your time, it will really help me
avelsamy
8-Apr-14 5:08am
View
Mr, SA, links will give me different ideas about it, that is why i am asking about as practically... ok now tell me
what is javascript, jquery, ajax ?
avelsamy
7-Apr-14 6:59am
View
i found the solution , @ Soham thank you
avelsamy
7-Apr-14 6:58am
View
i found the solution , thank you
avelsamy
7-Apr-14 4:52am
View
i used this., its working but, the date passing like this #04/04/2014#,
unwanted # sympol is there
avelsamy
7-Apr-14 4:49am
View
yeah right i m fetching data through grid view, there i m using this code If e.Row.RowType = DataControlRowType.DataRow Then ... ... end if
avelsamy
7-Apr-14 4:49am
View
yeah right i m fetching data through grid view,
there i m using this code
If e.Row.RowType = DataControlRowType.DataRow Then
...
...
end if
avelsamy
4-Apr-14 0:45am
View
Hi Ragul,
but , if i use Ajax update triggers means , i should use javascript to invoke Ajax know.... suppose in that browser sript is disabled means there is no use know... so beter we do this in server side only know
avelsamy
3-Apr-14 7:25am
View
but if we are use javascript to invoke Ajax means, suppose javascript disabled in that browser means No Use know....
avelsamy
3-Apr-14 6:35am
View
we cant use UpdatePanel in MVC know...., all are telling the answer related to aspx page only....
we can use through javascript means , suppose the browser javascript is disabled means it will not work know...
so tell me the clear idea...
avelsamy
3-Apr-14 5:23am
View
Deleted
using ajax right
avelsamy
3-Apr-14 5:21am
View
Deleted
let me try
avelsamy
3-Apr-14 4:58am
View
could you please tell me little bit more, how it will be....
avelsamy
3-Apr-14 4:54am
View
One more question ,
Hi Friends,
I am new to MVC,
I should manage three
DropDownListBoxes
in my
single view page
, let it be
Scheme_category
<pre lang="xml"><DDL1></pre>
<pre lang="xml">
<scheme_item 1="">
<scheme_item 2="">
......
<scheme_item n=""></pre>
Fund_category
<pre lang="xml"><DDL2></pre>
<pre lang="xml">
<fund_item 1="">
<fund_item 2="">
......
<fund_item n=""></pre>
Payment_Category
<pre lang="xml"><DDL3></pre>
<pre lang="xml">
<payment_item 1="">
<payment_item 2="">
......
<payment_item n=""></pre>
1. If i click anyone of the Scheme_item from
DDL1
means,
DDl2
and
DDL3
should load their related category items by automatically depending upon the condition of
DDL1
(It means Postback should be done in there itself)
(or else)
If I click anyone of the DDL's item, other two DDLs should Load their items ,automatically depending upon the conditions
2. after that i have to submit the page through the button_click(postback will be done here)
my Question is : Multiple Postbacks should be done , but different controls like(
DDL1,DDL2,DDL3 and BUTTON
How can i handle the multiple postbacks in same view page, help me
note: three DropDownList Boxes and button are placed in Same view page.
Thanks In Advance,
Velsamy A
avelsamy
3-Apr-14 4:53am
View
i got it Raul.... thank you....
avelsamy
3-Apr-14 2:46am
View
Deleted
views
-------
@Html.Partial("~/Views/Shared/_second.vbhtml")
partial view(_second.vbhtml)
-------------
@Html.ListBox("ListTrxn", Model.lstTrxn, New With {.Class = "textinput", .style = "height:112px;width:164px"})
model
-----
class...
Public Function Loadviews(CUR) As DataTable :- (CUR - model's class name)
Try
obj_Bll = New My_BLL()
prop= New My_Select_Property()
With prop
.procedure1 = "NAME"(procedure1 is nothing but set of procedure, NAME set of data of that procedure)
End With
dt = New DataTable
dt = My_Bll.BringData(prop, C_code, user_code, "viewdetails", "")
Catch ex As Exception
Finally
Obj_Bll.Dispose()
prop = Nothing
dt.Dispose()
End Try
Return dt
end function
End Class
Public Class ddlListItems
Public Property Displayvalue() As String
Public Property Displaytext() As String
End Class
controller
----------
Function Loadviews(model, selectedValue) As ActionResult
Dim TrxnList As New List(Of ddlListItems)()
Dim dtl As New DataTable
dtloc = model.Loadviews(model)
If (dtl.Rows.Count > 0) Then
For Each dr As DataRow In dtl.Rows
TrxnList.Add(New ddlListItems() With {.Displaytext = dr("TRXN_TYPE"), .Displayvalue = dr("TRXN_TYPE")})
Next
End If
Dim trxn_list As New SelectList(TrxnList, "DisplayValue", "Displaytext", selectedValue)
ViewBag.lstTrxn = trxn_list
model.lstTrxn = trxn_list
Return View(model)
End Function
End Function
avelsamy
3-Apr-14 0:23am
View
hello Mr.Santhu... reply me as briefly , please
avelsamy
3-Apr-14 0:15am
View
also, here i am using .vbhtml file, send me a code related to vbhtml please.
i got the error point locating item..
(Item => new SelectListItem
avelsamy
3-Apr-14 0:09am
View
hi guru,
here, instead of item, what i should given to my code
avelsamy
2-Apr-14 8:56am
View
yeah of course , i have fetched the values using datatable in model,
then i assigned the to the object as select list, after that the select list is assigned to the partial views listbox id, problem is first view is working fine.... but the second one didnt display anything
its shows an error - There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'Listboxid'.
avelsamy
2-Apr-14 6:28am
View
<tr> <td width="50%"> <span style="float: left; padding-top: 8px; padding-right: 10px;">From date</span> @Html.TextBox("txtFrmDate", Nothing, New With {.Class = "textinput"}) </td> <td width="50%" style=""> <span style="float: left; padding-top: 8px; padding-right: 10px;">To date</span> @Html.TextBox("txtToDate", Nothing, New With {.Class = "textinput"}) </td> </tr>
avelsamy
2-Apr-14 6:27am
View
<tr>
<td width="50%">
<span style="float: left; padding-top: 8px; padding-right: 10px;">From date</span>
@Html.TextBox("txtFrmDate", Nothing, New With {.Class = "textinput"})
</td>
<td width="50%" style="">
<span style="float: left; padding-top: 8px; padding-right: 10px;">To date</span>
@Html.TextBox("txtToDate", Nothing, New With {.Class = "textinput"})
</td>
</tr>
avelsamy
2-Apr-14 4:46am
View
Hi santhu, if u don't mind,read the question fully, then reply me briefly.
avelsamy
2-Apr-14 1:54am
View
thank you, Mr. Peter Leow
avelsamy
1-Apr-14 1:56am
View
Thank you Maciej Los
avelsamy
31-Mar-14 23:45pm
View
thank you SA, Abinav... i it will be a useful thing for me....
Show More