|
Hard to say based on the half snippet you offer here. What makes you feel you should be getting something back ? What does your code look like ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello friends,
We got this error in application.What could be the problem? Is our code is wrong? or We miss something? This error occurs when we try to access sql server..
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Please help us.
|
|
|
|
|
Hi
Has anyone built scott mitchells online photo album out of the book learn asp.net 2.0 in 24 hrs?
|
|
|
|
|
Scott Mitchell probably has...
What problem are you having ? Do you have the source code from his site, or have you had to enter it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dear Sir
I have tried to enter the code myself.I have a manage categories page and a default page. the details view is supposed to show the category id from the manage categories page in a dropdownlist on the default page. i checked and rechecked the foriegn keys, the sqldatasource. ect ect . It just wont do what i need it todo.
|
|
|
|
|
Are you sure you can't download the code from the web ?
learningman wrote: It just wont do what i need it todo
Well, is that because your expectations are too high ? What *does* it do ? Is it blowing up, or just not meeting your needs ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
My problem is,
I form a string...
string filter="dataView"+someIndicator+".RowFilter='someField="+someExpression+"'"
... and now I want execute that string. What should I do?
@filter
or
Eval(filter) ?
I would be very thankful if anybody could give an advise.
Thanks,
marijus
|
|
|
|
|
There is no such thing as an Eval function in C#. You should rethink the solution.
You can for example keep an array or a list of the data views that you create, so that you easily can access them by index.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks, you gave me a clue. I've done what I needed.
|
|
|
|
|
how can we introduce the concept of themes in Asp.Net 1.1 ????
|
|
|
|
|
Singh Is king wrote: how can we introduce the concept of themes in Asp.Net 1.1 ????
Implement all the necessary classes(styles ) that is need for the whole application in a .CSS file(style sheet). Make another copy of the same style sheet with the same classes implemented but with different styles. Now you have two different themes for your application. In the base class, based on some condition you decide which CSS file you application has to refer.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi All,
I need to set the src to usercontrol form of an iframe , please help me with this.
Ex:
<iframe scrolling="yes" name="changer" id="myFrame" src="TestControl.ascx" width="100%" height="100%" class="text"></iframe>
Thanks in advance...
|
|
|
|
|
The contents of the IFRAME element can be a aspx or html page . You can't set the source to a UserControl. I suggest you to Place the UserControl in a aspx Page and set the source to that Page.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi,
I m using framework 1.1,
Just i want my project don't give the error message of conncetion.......
I have connction problem.
My Conncetion losts everytime, while i m in page that takes more time to fill the informations.
2nd problem is SESSION..
session time?
from where to set a session time..
i want long session time, just like for 45 minutes.
Actually I have set time in Web.config . but i think it is not woking.
<sessionState mode="" stateConnectionString="" sqlConnectionString="" cookieless="" timeout="50" />
In this statement 50 is minutes or seconds?
What settings i have to make.
Do i have to set SQL Command timeout myCommand.CommandTimeout = 180; ? Can This time affect my conncetion?
Please discuss in brief. Thanks:->
Have A Good Day
|
|
|
|
|
Hi
Can any one tell the best way of the project architeture.
If plz send me the architecture.
mallika
|
|
|
|
|
The architecture is dependent on the requirements the project should implement.
There is no one-fits-all architecture.
Therefore your answer can't be really answered.
Of course, you can look for some best-practices, but nothing specific:
- UI specific: ModelViewPresenter
- Design for testability: DesignPatternsForUnitTest
- and many more...
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hello Everyone,
I want to display the images in the DataGrid's column through template
Can anybody suggest me the way........
|
|
|
|
|
Hi
1.Click on smart tag of grid
2. Edit columns
3. Add command feild.
4.Click ok.
5.Click on smart tag of grid
6.Select edit columns
7.Select the button added
8.Remove button and add a image button
9.Go to edit templates
10. give image url.
hopes this will help.
if worked out please give me a message.
mallika
|
|
|
|
|
Sorry friend,
I think u didn't get my prob. Actually i've stored no. of images and their corresponding infos. in my database now i want to display those images in datagrid. So i'm using the template of the datagrid to show the images ...... but i donot know how to do it ......
|
|
|
|
|
Hi,
I have installed asp.net 2.0 and 1.0 on my pc in C drive. I have a service pack 4 in my pc. When I was debugging the web application in 2.0 it was debug fine but when I was trying to debugging the web application in 1.0 it gives message as-----Unable to start debugging on the web server.
Can any one give me solution for this
|
|
|
|
|
swami samarth wrote: I have installed asp.net 2.0 and 1.0 on my pc in C drive
could u kindly explain in details ????
Thanks in Advance !!!
Happy Programming
-----
Abhijit
|
|
|
|
|
check whether your IIS is configured to use Integrated Windows Authentication.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Check this...[^]
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi Friends...
i am working on a webapplication in which i have to create pdf file using itextsharp(must as customer want to use this only). here i will have a gridview which is not databound, not have any column at design time. on page load only i will create a datatable based on some data and bind it to gridview.
after this i need to do formatting of some specific rows in the girdview. this formatting will use pre tag with some attributes like font-family, size, style. so while displaying the gridview after page load some rows of gridview will have specific formatting tags in it's cell's text.
on click of a button i need to create a pdf file using itextsharp. i am able to create pdf only problem is all formatting tags are appearing in file, they are not being replaced with thier html meaning.
can anybody help me to sort it out? please it's very much required at this time...
below is the function to which i am passing a datatable dt, which is nothing but data contained in grid stored into table... also a string headerText, which will come on top of page and will show some note text.
private void CreateSavePdf(DataTable dt, string headerText)
{
// where to store the file
string pdfFileName = "D:\\Report.pdf";
Document document = new Document(PageSize.A4.Rotate(), 50, 50, 50, 50);
PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(pdfFileName, FileMode.Create));
document.Open();
Phrase headerPhrase = new Phrase(headerText, FontFactory.GetFont("Verdana", 24));
HeaderFooter header = new HeaderFooter(headerPhrase, false);
header.Border = Rectangle.NO_BORDER;
header.Alignment = Element.ALIGN_LEFT;
document.Header = header;
document.Add(headerPhrase);
HeaderFooter footer = new HeaderFooter(new Phrase("Page "), true);
footer.Border = Rectangle.NO_BORDER;
footer.Alignment = Element.ALIGN_CENTER;
document.Footer = footer;
int numColumns = dt.Columns.Count;
PdfPTable datatable = new PdfPTable(numColumns);
datatable.DefaultCell.Padding = 3;
datatable.WidthPercentage = 100; // percentage
datatable.DefaultCell.HorizontalAlignment = Element.ALIGN_LEFT;
datatable.DefaultCell.BorderWidth = 1;
datatable.DefaultCell.GrayFill = 0.7f;
foreach (DataColumn column in dt.Columns)
{
string columnName = column.ColumnName;
Phrase phrase = new Phrase(columnName, FontFactory.GetFont("Arial", 8, Font.BOLD));
datatable.AddCell(phrase);
}
datatable.HeaderRows = 1;
foreach (DataRow row in dt.Rows)
{
foreach (DataColumn column in dt.Columns)
{
string columnName = column.ColumnName;
datatable.DefaultCell.BackgroundColor = Color.WHITE;
Phrase phrase = new Phrase(row[columnName].ToString(), FontFactory.GetFont("Arial", 8));
datatable.AddCell(phrase);
}
}
document.Add(datatable);
document.Close();
}
-- modified at 7:54 Saturday 6th October, 2007
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
How to make a msgbox in asp.net? Thanks
|
|
|
|