|
Hi,
I have an application that generates .html and .mht files.Page generation is working good, but Some times there is a situation when contents in .html or .mht files goes out of A4(standard size for printing) size.So when I take a print of this page whole contents don't come.Some contents are cut down.But I want to print out the page with whole contents.What can I do?
|
|
|
|
|
There's nothing much you can do except resize the page dynamically to fit into an A4 or have a "Printer Friendly" page link separately.
SG
|
|
|
|
|
Hi Guys,
We are using Asp.Net,C# for coding our application. Also we've used CSLA.Net.
I haven't faced any problems with .Net 2.0 installation.
when I try to run the application. Once I provide UID and Password.
The following version related Exception occurs from code
(FormsAuthentication.GetRedirectUrl(username, false).ToUpper().Contains("DEFAULT.ASPX") (or)
FormsAuthentication.RedirectFromLoginPage(username, false);
EXCEPTION:
Type is not resolved for member 'CSLA.Security.BusinessPrincipal,CSLA, Version=2.200.4.0, Culture=neutral, PublicKeyToken=null'.
If any of you knows the solution for this problem. Please post your answers.
Regards,
Jagadeesh
|
|
|
|
|
Dear All,
I m facing problem ie.
I have filed a listbox with the help of javascript on the page. and need to access data through code behind to create a datatable for all elements filled by javascript. BUT the problem is code not getting the filled data(when i used view source no data was there in listbox).
should i create an index for listbox at the time i m entering data or problem lies some where else. plz suggest me better.
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
Hi,
As I know that any thing you change through the Javascript, is not saved in the view state. Hence you can get it in the postback.
Yoy can get only selected value through request.form(name of the list control).
If you require all the inserted item you need to do it logically.
|
|
|
|
|
Hi,
when the admin login, iam displaying the list of users for the admin to view. when the admin select the details of a user there iam displaying the user details and also a button (say, Log into Resource Center as this user) in a seperate page. Here i have to pass the username and password of the user to a new url in a new window.How can we do this.
My code
StringBuilder strntrc = new StringBuilder();
strntrc.Append(""+Environment.NewLine);
strntrc.Append("" + Environment.NewLine);
strntrc.Append("" + Environment.NewLine);
strntrc.Append("" + Environment.NewLine);
strntrc.Append("");
This code is giving me error while execution:
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
I googled about this error but couldn't find the relevant source.
Please suggest me how can i resolve this.
Thanks
vijay
|
|
|
|
|
Hi
I created image buttons dynamicaly and i have added click event for image controls. but click event is not working
code is as follows
ImageButton img ;
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
for (int i = 1; i < 11; i++)
{
img = new ImageButton();
img.ID = "img" +i.ToString();
img.ImageUrl="pg/1212/"+ i +".jpg";
pl.Controls.Add(img); (pl is place holder control id)
}
}
img.Click += new ImageClickEventHandler( img_Click );
( while debugging showing the error in the above line as "object reference not set to instance of an object)
}
protected void img_Click ( object sender, ImageClickEventArgs e )
{
ImageButton img = ( ImageButton )sender;
Response.Write(img.ID + "");
}
plz let me know whats that error how to rectify that
thanks in advance
Haritha
|
|
|
|
|
Haritha,
remove the code from if(!IsPostBack)(means add the code in directly in page_load event) & Test it.
now event will works fine without any error.
regards
GV Ramana
|
|
|
|
|
hi... am working under asp.net with c#...
i need books books for asp.net with c#...
i want to learn more in asp.net.. is there any book available for asp.net with c#( not the ordinary beginner book).. if any free download site is there to get the books..
or if any one has the book plz.. send it to my id
balakrishnan_rk@sify.com
plz help me...
Balakrishnan
|
|
|
|
|
wrox publications Proffessional ASP.NET 2.0
regards
GV Ramana
|
|
|
|
|
From my point of view MSDN is the best. Try to get MSDN library.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi All,
I need to fetch all the Undelivered mail form my outlook inbox I am using ASP.NET 2.0(VB).
Can anyone suggest me with the code??
Thanks in advance...
|
|
|
|
|
ASP.NET 2.0 wrote: I need to fetch all the Undelivered mail form my outlook inbox
Undelivered mail are stored in outbox of outlook ...
if you can fetch from inbox then possibly you can do same for outbox
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi Sandeep,
Thanks for the reply. Yes I am read mails from outlook but if any of the undelivery mail is there then it throws and exceptions and stops reading mails after that.
Please help me if u know how to handle this...
|
|
|
|
|
You can't actually fetch mail from the outbox while outlook is in the process of sending the mails. It'll be locked.
SG
|
|
|
|
|
Thanks for the reply but my requirment is different. When a user click on fetch mail button (which is located on ASP.NET Application ie my Project) it should read all the mails one by one and so I store the email ID's of the undelivery ID into database.
I have a code where it reads mails from outlook but if any mail is undelivery then it just stops reading.
Please help me with this...
|
|
|
|
|
Hi i am doing some calculation & getting values in decimal...,
And i am displaying it in datagrid,
in that datagrid columns "data formatting expression" i given as {0:N} Like...,
So in that columns,after the decimal i am getting 2 values only...,
I tried to store the values in my table...,
But its store my first value only...,
It Means,its store all row values...,But the value first number only store in the table...,
Example value will be 510.01 means...,in table its store only 5...,
If i remove the {0:N} "data formatting expression".., then its store the full value like 510.0123...,
Whats the probs?, y if i give "data formatting expression" its not store properly...,
Anyone solve my probs...,
Magi
|
|
|
|
|
Using the data formatting expression does not cause the problem like this. I think it is related with your Database code.
Please check it or give the details about the method you are using to save the data into database.
DAsh04
|
|
|
|
|
See in datadrid i am getting values in that column like...,
Col1
510.09
234.78
12344.76
Values for with in datagrid so i try to store those value in this format(my add button click event)
For Each MainGRD As DataGridItem In Me.dgrdsub.Items
sqlconn.Open()
Dim strInsertproc As String
Dim GTotal As Decimal = Val(MainGRD.Cells(3).Text)
Dim BonusAmt As Decimal = Val(MainGRD.Cells(5).Text)
Try
strInsertproc = "BonusAdd'" & GTotal & "','" & BonusAmt & "'"
sqlCmd = New SqlCommand(strInsertproc, sqlconn)
sqlCmd.ExecuteNonQuery()
lblMessage.Text = "Record Inserted............"
Catch ex As Exception
If Mid(ex.Message, 1, 9) = "Violation" Then
lblMessage.Text = "Already exist in the DataBase......"
Else
lblMessage.Text = Mid(ex.Message, 1, 75) ' Show friendly error message.
End If
End Try
sqlconn.Close()
In that col1 if i give {0:N} then the values store in my table like:
5
2
1
If i remove the data formatting expression {0:N} then the values store in my table like:
510.09010
234.787778
12344.766576
Magi
|
|
|
|
|
Hi,
have you checked what is being stored in the variables "GTotal" and "BonusAmt" during the program execution.
DAsh04
|
|
|
|
|
ya i checked if i give data formatting expression{0:N} Then first value..,first number only i am getting...,
If i remove that format exp then i am getting correct value...,
Magi
|
|
|
|
|
Hi,
Format does not cause error like this. Please check the variables' value after statement like
Dim GTotal As Decimal = Val(MainGRD.Cells(3).Text)
Dim BonusAmt As Decimal = Val(MainGRD.Cells(5).Text)
and check your stored procedure "BonusAdd" and its parameter type and width.
DAsh04
|
|
|
|
|
Hi all,
I would like to know how to view data of a database through the Data Grid View.
Glad if you can give me good referrences and links to tutorials regarding this .
Thank you.
RangaSL
|
|
|
|
|
|