15,902,919 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 sunpop (Top 56 by date)
sunpop
13-Jan-21 12:38pm
View
OK Thank you
sunpop
13-Jan-21 12:31pm
View
Yes.. I got your point. Can you suggest any other site to support this in Web Application? Because I was able to find sites which support Web Forms & WPF
sunpop
13-Jan-21 12:30pm
View
Deleted
Yes.. I got your point. Can you suggest any other site to support this in Web Application? Because I was able to find sites which support Web Forms & WPF
sunpop
13-Jan-21 12:25pm
View
Yes.. but is there any way to display a webpage inside my page?
sunpop
13-Jan-21 12:19pm
View
Thank you @Richard Deeming
But any suggestion to achieve this?
sunpop
16-Jun-20 11:52am
View
Thank you for your response. But still ADO.NET is missing
sunpop
7-Apr-16 12:16pm
View
Useful links. Thank you! I'm going to try now..
sunpop
16-Sep-15 10:14am
View
The above code is correct & the data which I sent was wrong. Thank you for the solution
sunpop
11-Sep-15 6:59am
View
After creating dictionary how to post it? Please check the following.
Dictionary<string, string=""> array = new Dictionary<string, string="">();
array.Add("ael_id", "53198");
array.Add("state", "1");
array.Add("comment", "All is good'");
string data = JsonConvert.SerializeObject(array);
var dataToSend = Encoding.UTF8.GetBytes(data);
var req = HttpWebRequest.Create(uri);
req.ContentType = "application/json";
req.ContentLength = dataToSend.Length;
req.Method = "POST";
req.GetRequestStream().Write(dataToSend, 0, dataToSend.Length);
response = req.GetResponse() as HttpWebResponse;
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
Console.WriteLine(responseFromServer);
I got Internal server Error. The problem is in req.GetResponse(). Where am I going wrong?
sunpop
10-Sep-15 7:46am
View
Thank you for your reply
How to convert this postfields array in c#?
$postfields = array(
'ael_id' => '53198',
'state' => '1',
'comment' => 'All is good',
);
Thank u
sunpop
31-Mar-15 13:23pm
View
ok thank you. I'll try to find solution there
sunpop
21-Jan-15 14:34pm
View
I need somewhat like : < a href="Temp.aspx?mon="+selected value of combo >CLICK< /a>
sunpop
21-Jan-15 14:30pm
View
Deleted
when I click on the link I want something like:
CLICK
sunpop
21-Jan-15 14:03pm
View
I want to add the selected value of Combo to the href attribute of
<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" AutoPostBack="true" DataSourceID="SqlDataSource2"
>
CLICK
</td>
ie, JUN14 should be the selected value of combo
sunpop
21-Jan-15 14:03pm
View
Deleted
I want to add the selected value of Combo to the href attribute of
<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" AutoPostBack="true" DataSourceID="SqlDataSource2"
>
CLICK
</td>
ie, JUN14 should be the selected value of combo
sunpop
29-Nov-13 1:01am
View
I've added code. Pl, check
sunpop
27-Nov-13 3:53am
View
if so, could u tell the corrections? Thank you
sunpop
27-Nov-13 3:53am
View
did u solve it
sunpop
26-Nov-13 12:33pm
View
Thank you for the updated code. I tried OnSelectedIndexChanged event. But it was not fired.
sunpop
26-Nov-13 11:56am
View
Deleted
Thank u for the updated code. But I want to know how the fire the selectIndexChanged event of ASPxComboBox which is inside gridview
sunpop
26-Nov-13 6:06am
View
sorry, what is gvHomework in your code? And I want to get the value when the DropDownList is changed(selected)
sunpop
26-Nov-13 5:36am
View
I've updated the question. Could you please check?
sunpop
26-Nov-13 1:49am
View
thank u! I'll let u know the status soon
sunpop
26-Nov-13 1:16am
View
yes
sunpop
18-Oct-13 7:20am
View
thank u so much
sunpop
16-Oct-13 14:37pm
View
Thank you! shall I ask like this? How to parse xsd in c#
sunpop
6-Sep-13 14:18pm
View
can u help me little more? In Project output dialog, there is no Primary output. why?
sunpop
22-Jul-13 5:11am
View
Now I gave 5 points, if the link you sent, helps me then I'll accept your answer. Thank you!
sunpop
22-Jul-13 5:10am
View
Thank you for your help! As I'm receiving huge json dataset from a webmethod in asp.net, I want to store the data in different tables of sql server db. I want to parse it from asp.net or else from sql server. Your help is appreciated! Thank you!
sunpop
19-Jul-13 11:33am
View
The dropdownlist is filled dynamically & I know to access it in Javascript. But in code behind, i know to take the selected value. But I don't know to access ALL the items of the dropdownlist. So, I need help. Once I know to access all the items then, I can put it in the table.
sunpop
19-Jul-13 7:05am
View
Could you tell me the code to take the value (not selected value) from dropdownlist?
sunpop
19-Jul-13 5:44am
View
Sorry I want the other way. I don't want dropdownlist to be filled. I want the all the values of dropdownlist to be stored in DB
sunpop
16-Jul-13 1:00am
View
yes, Items are added, from that I'm selecting too. But in code behind I'm getting that 'null' problem.
sunpop
15-Jul-13 14:44pm
View
I've updated my question by including the code.
sunpop
15-Jul-13 14:44pm
View
I've updated my question by including the code.
sunpop
15-Jul-13 14:44pm
View
I've updated my question by including the code.
sunpop
12-Jul-13 9:44am
View
dropdownlist.SelectedItem.Text gives me "System.NullReferenceException: Object reference not set to an instance of an object"
sunpop
12-Jul-13 2:34am
View
In aspx file
I call the session by
string a = Session["sessionName"].toString();
For this I got only null value. But when I included the following code in Web.Config, it works well.
<configuration>
<system.web>
<sessionstate mode="InProc" cookieless="true">
sunpop
11-Jul-13 13:28pm
View
Thankx sameer8k! problem solved for me!
sunpop
11-Jul-13 6:11am
View
By the way the logic I used is working well. I'll surely use Update Progress in future. Thank you so much!
sunpop
11-Jul-13 6:07am
View
I'm new development!I think Update progress is a Ajax tool. As I'm working in Visual Studio Framework 2.0, I could not install ajax.
sunpop
11-Jul-13 2:24am
View
Thank u
But I used simple logic of using div,& inside that div, put the loading... image.
then on button click call
$("#divId").show();
and body, onload
$("#divId").hide();
sunpop
10-Jul-13 13:54pm
View
on button click, I'm getting response from a web method. It takes few seconds. During that time I want to show the loading image on the same page
sunpop
10-Jul-13 13:35pm
View
it's not Ajax
sunpop
10-Jul-13 12:13pm
View
how to implement this? Till I get response from the server I want to show the image & then hide it.
sunpop
10-Jul-13 12:11pm
View
But it's redirecting to an intermediate page. Instead I want to show/ hide the image in the same page.
sunpop
4-Jul-13 7:40am
View
you are most welcome!
sunpop
4-Jul-13 6:59am
View
I didn't refer the jQuery file. Now it's working well. Thank u
sunpop
4-Jul-13 6:32am
View
@Tadit Dash
Sorry as I'm new to JQuery, I could not get it.
For example can
document.writeln("aaaaaaaa");
be written as
<script>$('#userName').text('aaaaaaaa');
if I want to write in tha span with id="userName"? BY doing so I didn't get the result as expected...
Pl, clarify! thankx
sunpop
1-Jul-13 12:56pm
View
THE ERROR I GOT IS:
Server Error in '/' Application.
Required permissions cannot be acquired.
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.Security.Policy.PolicyException: Required permissions cannot be acquired.
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:
[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +10239310
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +97
[FileLoadException: Could not load file or assembly 'System.ServiceModel.Web, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190
[ConfigurationErrorsException: Could not load file or assembly 'System.ServiceModel.Web, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11224200
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +76
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +283
System.Web.Compilation.BuildManager.CompileGlobalAsax() +50
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676
[HttpException (0x80004005): Could not load file or assembly 'System.ServiceModel.Web, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025
[HttpException (0x80004005): Could not load file or assembly 'System.ServiceModel.Web, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its de
sunpop
29-Jun-13 1:07am
View
But, I'm creating the dropdown list dynamically. I want to assign the selected value of dropdown list to a session variable in JAVASCRIPT
sunpop
29-Jun-13 1:06am
View
Deleted
I'm creating the dropdown list dynamically. I want to assign the selected value of dropdown list to a session variable in JAVASCRIPT
sunpop
26-Jun-13 0:52am
View
@Nirav Prabtani
Thank you for the solution. But I could not include namespace of JavaScriptSerializer (ie.,I'm unable to add 'using system.web.script.serialization'. I searched for it's dll & I could not find it)Could you please help.
sunpop
26-Jun-13 0:46am
View
I'm getting this Json array as result from a RESTful web method. The JSON array is as follows
{"response_list":[{"id_country":"302","label":"NICARAGUA"},{"id_country":"303","label":"NIGER"},{"id_country":"304","label":"NIG\u00c9RIA"},{"id_country":"305","label":"NIU\u00c9"},{"id_country":"306","label":"NORFOLK, \u00ceLE"},{"id_country":"307","label":"NORV\u00c8GE"},{"id_country":"308","label":"NOUVELLE-CAL\u00c9DONIE"},{"id_country":"341","label":"SAINT-VINCENT-ET-LES GRENADINES"},{"id_country":"342","label":"SALOMON, \u00ceLES"},{"id_country":"343","label":"SAMOA"},{"id_country":"344","label":"SAMOA AM\u00c9RICAINES"},],"response_status":{"message":"Success","status":0}}
I need to take the "label" & populate in a dropdown list. This is what I mean by handling JSON multi dimensional array.
sunpop
24-Jun-13 4:07am
View
Thank you, but I want to handle JSON ARRAY. Please help
sunpop
22-Jun-13 12:12pm
View
Thanks Amit. I have created a session variable in ProcessRequest method. Now how to get that session value in .aspx page?
Show More