|
Hello,
Please accept my lack of expressiveness, I am a newbie to posting on forums. I have an ASP.NET application with a problem and your help might come in very handy.
A gridView statically bound to a datasource but during runtime, I add rows dynamically as group separators. Ex. the datasource retrieves 24 rows that can be classified into 4 groups, so I dynamically add a header row ahead of each group of data rows. Now this should make the total count of the gridView rows 28 but this is not the case. It remains 24 as is.
The gridview has a column of checkboxes that I need to store their values, I do a
foreach(GridView row) but the loop stops before reaching the last 4 rows and in the "watches", the GridView.Rows.Count is 24 not 28.
Does anybody have an explanation for this? Your help is very much appreciated.
|
|
|
|
|
in asp.net crystal reports -unable to see more than 2 pages in reports ,but when I type page number then it shows correctlly.
|
|
|
|
|
do you mean to say, when you are click on the next button nothing happen ?
Thanks
-Amit Gajjar
|
|
|
|
|
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
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.Runtime.InteropServices.COMException: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
Source Error:
Line 66: CrystalReportViewer1.LogOnInfo = crTableLogonInfos;
Line 67: string sid=Convert.ToString("MU-057-0005");
Line 68: cryRpt.SetParameterValue("StructureID", sid);
Line 69: CrystalReportViewer1.ReportSource = cryRpt;
Line 70: CrystalReportViewer1.RefreshReport();
Source File: d:\Updated SRS website\Reports\Rep_DemolitionList.aspx.cs Line: 68
Stack Trace:
[COMException (0x8002000b): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))]
CrystalDecisions.ReportAppServer.DataDefModel.FieldsClass.get_Item(Int32 Index) +0
CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(Int32 index) +78
CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(String fieldName) +99
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue(String name, Object val) +305
Rep_DemolitionList.Page_Load(Object sender, EventArgs e) in d:\Updated SRS website\Reports\Rep_DemolitionList.aspx.cs:68
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
|
|
|
|
|
I want to consume RESTlet Web Services in ASP.NET 3.5 to push data with JSON parameter. Actually i never ever use RESTlet in ASP.NET.
Can anybody help me out?
|
|
|
|
|
from where you want to consume the service? from the client you can send an ajax request like below
var jsonStr = JSON.stringify(reqObj);
$.ajax({
type: "POST",
dataType: "json",
url: "http://localhost/MyService/PostSomething",
contentType: "application/json; charset=utf-8",
data: jsonStr,
success: function (html) {
alert(html);
}
});
From the server you need to send an HttpWebrequest
modified 2-Sep-13 12:28pm.
|
|
|
|
|
Dear,
Scenario is: We have to push data through a web service which is already developed in RESTlet by some other client. And we have to consume it in ASP.NET in our ERP. The parameter shall passed to web service is JSON format.
The only question from my side is:
1): How we consume the RESTlet Web Service is ASP.NET. Developed by by some other client.?
2): Where we will call it.? bcz some people suggest in ".CS" & some one suggest in Html page. I am beginner & little bit confuse.
Kindly help me out.? Implementation at our end is very critical.
|
|
|
|
|
It depends upon your requirement.What are the functionalities you try to achieve through webservices?
|
|
|
|
|
I want to call the Restlet service to push data on vendor server. How & where should we call the following in ASP.NET in C#:
https://xx.xx.xxx.com/app/site/hosting/restlet.nl?script=78&deploy=4&MyData=
MyData Format(JSON):-
[
{
"Name":"John",
"DOB": "20/09/2013",
"Age":"28"
},
"Name":"Kies",
"DOB": "20/08/2013",
"Age":"23"
}]
Please Help me out...........
modified 24-Sep-13 3:29am.
|
|
|
|
|
|
code to send email form contact us page..
having : Name :
Conatct No:
Message:
in asp.net mvc4
|
|
|
|
|
|
5ed!
--
If money is your hope for independence, you cannot reach it.
Being loved gives you strength,
while loving gives you courage.
|
|
|
|
|
Hi i have a web application which works with http extension.I want to make it work in https.Please share steps which are required to achieve this
Chandra Sekhar
|
|
|
|
|
|
what is problem of this code?
dont work in fire fox onlu
@font-face
{
font-family: 'B Yekan';
src: url('../../../DirFont/Yekan.eot?#') format('eot'),
url('../../../DirFont/Yekan.woff') format('woff'),
url('../../../DirFont/Yekan.ttf') format('truetype');
}
body
{
font-family:'B Yekan' ,BYekan,Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
color: #666;
font-size: 12px;
line-height: 1.5em;
background-color: #eeeff3; background-repeat: repeat-x; background-position: top
}
|
|
|
|
|
I make a dedicated CSS file for each font, this is what I use and it works fine in all browsers, no complaints in 2 years.
@font-face {
font-family: 'beryliumRG';
src: url('/fonts/Berylium/berylium_rg-webfont.eot');
src: url('/fonts/Berylium/berylium_rg-webfont.eot?#iefix') format('embedded-opentype'),
url('/fonts/Berylium/berylium_rg-webfont.woff') format('woff'),
url('/fonts/Berylium/berylium_rg-webfont.ttf') format('truetype'),
url('/fonts/Berylium/berylium_rg-webfont.svg#beryliumRG') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'beryliumRG_IT';
src: url('/fonts/Berylium/berylium_rg_it-webfont.eot');
src: url('/fonts/Berylium/berylium_rg_it-webfont.eot?#iefix') format('embedded-opentype'),
url('/fonts/Berylium/berylium_rg_it-webfont.woff') format('woff'),
url('/fonts/Berylium/berylium_rg_it-webfont.ttf') format('truetype'),
url('/fonts/Berylium/berylium_rg_it-webfont.svg#beryliumRG_IT') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'berylium_BD';
src: url('/fonts/Berylium/berylium_bd-webfont.eot');
src: url('/fonts/Berylium/berylium_bd-webfont.eot?#iefix') format('embedded-opentype'),
url('/fonts/Berylium/berylium_bd-webfont.woff') format('woff'),
url('/fonts/Berylium/berylium_bd-webfont.ttf') format('truetype'),
url('/fonts/Berylium/berylium_bd-webfont.svg#berylium_BD') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'beryliumBD_IT';
src: url('/fonts/Berylium/berylium_bd_it-webfont.eot');
src: url('/fonts/Berylium/berylium_bd_it-webfont.eot?#iefix') format('embedded-opentype'),
url('/fonts/Berylium/berylium_bd_it-webfont.woff') format('woff'),
url('/fonts/Berylium/berylium_bd_it-webfont.ttf') format('truetype'),
url('/fonts/Berylium/berylium_bd_it-webfont.svg#beryliumBD_IT') format('svg');
font-weight: normal;
font-style: normal;
}
Then I use it in another CSS File
.txt_BeryliumRG
{
color: rgb(0,0,0);
font-family: "beryliumRG", Georgia, Serif;
font-size: 1.2em;
font-weight: normal;
text-indent: 0.25em;
text-align:justify;
}
modified 1-Sep-13 15:33pm.
|
|
|
|
|
I am interested..,
I normally get fonts as .ttf, do I also need them in .eot, .woff and .svg format? I read somewhere that all browsers support .ttf formats.
I remain joe!
|
|
|
|
|
You have to get all 4 versions of the font
eot
svg
ttf
woff
There's a font website that will convert fonts to all 4 formats and you can download the font package in a zip file.
[font squirrel^]
|
|
|
|
|
Two points to check:
- space in name of font-family "B Yekan" - I'd prefer "BYekan" instead.
- relative URL to the location: url('../../../DirFont/Yekan.ttf') format('truetype'); - I'd prefer an absolute URL instead: how do the browsers / the web server behave when you use too many "../"?
|
|
|
|
|
I am doing my final year fyp and want to add searchbox in my web application. Can anyone suggest me better way to do that ?
I have got database table tblVDC with 5000 data and I want to keep the search box in aspx page so that user can find the required data fast.
|
|
|
|
|
|
|
In my local machine in my web site. I have a url mapper http module in place which maps a url like
2013/09/pid/productname.html/webpagemethod to product.aspx/webpagemethod?id=pid&y=2013&m=09&name=productname
What I'm trying to do is invoking the webpage method via REST method. I have included ScriptHandlerModule in httpmodules section of the web.config file. The call to the webpage method from the javascript fails in my local machine with error saying "this method is not allowed" but succeeds when is run from the deployment machine. The only difference between the local and deployment machine is the former is IIS6 and the latter is IIS7.5 in integrated pipeline mode. Does anybody know the cause?
Should query string parameters be included in a REST request at all?
Thanks in advance
|
|
|
|
|
Setting ACE is very slow for folder with many files and subfolders. My folder has 35602 files and 648 subfolders and SetAccessControl method needs 30 minute to remove a user from this folder.
I am removing a user from the security tab of folder using following code.
DirectoryInfo dirInfo = new DirectoryInfo(folderPath); DirectorySecurity fSecurity = dirInfo.GetAccessControl(AccessControlSections.All); fSecurity = CanonicalizeDacl(fSecurity);
fSecurity.RemoveAccessRule(new FileSystemAccessRule(coworkerAccount, accessRight, AccessControlType.Allow));
dirInfo.SetAccessControl(fSecurity);
SetAccessControl method takes a long time when the folder having many files.
Mahendra
|
|
|
|