|
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
|
|
|
|
|
You need to do it in javascript, with an alert statement
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 )
|
|
|
|
|
U can easily do it using JavaScript .....
<script language="javascript" type="text/javascript">
function Button1_onclick()
{
alert("Hi This is a message box");
}
</script>
-------------
<input id="Button1" style="z-index: 100; left: 128px; position: absolute; top: 112px"
type="button" value="button" language="javascript" <b>onclick="return Button1_onclick()</b>" />
u can also use VB Script ..... for the same, but on that case u have use Msgbox("Your message" instaed of alert!!!
Good luck !!!
Happy Programming
-----
Abhijit
|
|
|
|
|
Abhijit@CodeProject wrote: u can also use VB Script ..... for the same, but on that case u have use Msgbox("Your message" instaed of alert!!!
And of course, this only works in IE
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 )
|
|
|
|
|
Nine Tails wrote: How to make a msgbox in asp.net?
Private sub MsgBox(ByVal Msg As String)
Dim strScript As String = ""
strScript += "<script language=JavaScript>"
strScript += "alert('" & Msg & "');"
strScript += "</script>"
Response.Write(strScript)
End sub
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
|
|
Abhijit@CodeProject wrote: just confirm me one thing that weather it can be called by a html control or not ????
HTML controls run on the client-side and Server Controls runs on the Server-Side. The VB.NET function which I gave to alert a message will run on the server-side. But the Statement Response.Write will write the script to the Client and it alerts a message.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|