|
Thanks,,
I solved this problem by using Session to store the email body in it and call it in the other page
|
|
|
|
|
Hi,I have created an web report using crystalreport.There is an image(for barcode) field in this report.The crystal report datasource is from an xml schema.The datatype of that image field is base64Binary.But the problem is that when I am showing that report with Crystal Report Viewer,the image field is shown empty.But when I Print the report or export the report to any format,it shows the Image(Barcode) properly.Do you have any solution to this problem guys.I am clueless.I have been with this problem for last 3days.Plz help me out.
ARINDAM
|
|
|
|
|
what 's is this.
please tell me how i can get it .Don't tell me google it . i need it detail place where of it!
|
|
|
|
|
chenli0513 wrote: Don't tell me google it
Why not? Did it not turn up anything useful?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
how i can download data from advertise job offers website?
i want download resume from it .
|
|
|
|
|
What ASP.NET has to do with this ?
|
|
|
|
|
Hi,
how to read selected value of radiobuttonlist control
i tried using selected indext Property but not able to solve any help is highly apperciated.
i have to read selected value from database inside Radiobuttionlist control.
Rameez
|
|
|
|
|
Hi,
First make the AutoPostBack property to true. And for the RadioButtonList1_SelectedIndexChanged event you can access it as follows.
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write(RadioButtonList1.SelectedValue);
}
Here im just writing the selected value to the web page,for an example.
Thx,
Gayani
|
|
|
|
|
thanks for response ,
actullay i want to read database value and dispay it inside Radiobuttonlist control
i have to given view facility as they know which element of radiobuton list control he has selected .
any way thanks for help
rameez
|
|
|
|
|
hi
I am new to Crystal Report in ASP.Net 2.0 . Can any one help me? how to make SUM function and other functions in Crystal Report? How to use Formula's
in Crystal Reports? How to sort values in Crystal Reports? How to make link in report values?
Thanks in Advance!!!
Sabarees
|
|
|
|
|
sabaMCA wrote: I am new to Crystal Report in ASP.Net 2.0 . Can any one help me? how to make SUM function and other functions in Crystal Report?
You should really read up on some of their samples.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Which version of crystal report u r using. In 9.0, u can create a formula field and you can sum the values and set to it.
Balasubramanian K.
|
|
|
|
|
Hi,
I have a code in the login.aspx.vb that create a cache item with the information of the user.
When the cache item expired it make a CallBack. In the callback I want to sign out and
redirect to the login page. When it tries to redirect, I received an "Object reference not set
to an instance of an object." error because the System.Web.HttpContext.Current = nothing.
Here is the code in the login page code behind:
Private Sub MyCacheItemRemovedCallback(ByVal key As String, ByVal val As Object, ByVal reason As Caching.CacheItemRemovedReason)
If reason = Caching.CacheItemRemovedReason.Expired Then
Try
System.Web.HttpContext.Current.Response.Redirect("SignOut.aspx")
Catch ex As Exception
End Try
End If
End Sub
Private Function AlreadyLogin() As Boolean
Dim sKey As String = TextBox_Login.Text.Trim + TextBox_Password.Text.Trim
Dim sUser As String = Cache(sKey)
If (sUser = Nothing) Or (sUser = "") Then
Dim callBack As Caching.CacheItemRemovedCallback = New Caching.CacheItemRemovedCallback(AddressOf MyCacheItemRemovedCallback)
Dim SessTimeOut As TimeSpan = New TimeSpan(0, 0, 15, , 0)
HttpContext.Current.Cache.Insert(sKey, sKey, Nothing, DateTime.MaxValue, SessTimeOut, System.Web.Caching.CacheItemPriority.NotRemovable, callBack)
Session("CurrentUser") = TextBox_Login.Text.Trim + TextBox_Password.Text.Trim
Return False
Else
Label_ErrorMessage.Text = Constants.ERROR_LOGIN_USER_LOGGED_IN
Return True
End If
End Function
Thank you for your responses
|
|
|
|
|
javidot wrote: MyCacheItemRemovedCallback
This method will fire when the item is removed from the cache, but there wont be any request from the user at that time, it just like if you try to redirect the user to some place when the session times out, (the user couldnt know that)
You need to ask when the user the requests a page if the control is from the cache, if not, you redirect to login page
Alexei Rodriguez
|
|
|
|
|
Can you put an example on how to do this?
Also, there's a way to redirect to a page in this scenario?
Thanks
|
|
|
|
|
You can do something very similar to what you got here
Private Function AlreadyLogin() As Boolean
Dim sKey As String = TextBox_Login.Text.Trim + TextBox_Password.Text.Trim
Dim sUser As String = Cache(sKey)
If (sUser = Nothing) Or (sUser = "") Then
Dim callBack As Caching.CacheItemRemovedCallback = New Caching.CacheItemRemovedCallback(AddressOf MyCacheItemRemovedCallback)
Dim SessTimeOut As TimeSpan = New TimeSpan(0, 0, 15, , 0)
HttpContext.Current.Cache.Insert(sKey, sKey, Nothing, DateTime.MaxValue, SessTimeOut, System.Web.Caching.CacheItemPriority.NotRemovable, callBack)
Session("CurrentUser") = TextBox_Login.Text.Trim + TextBox_Password.Text.Trim
Return False
Else
Label_ErrorMessage.Text = Constants.ERROR_LOGIN_USER_LOGGED_IN
Return True
End If
End Function
If the first time you add something to the session, and session timeout is longer than the cache timeout, then when the cache value is nothing and session isnot nothing then it means that the cache item expired, there you can redirect the user to the login page with FormsAuthentication.RedirectToLoginPage or response.redirect("yourloginpage.aspx") or server.transfer
Alexei Rodriguez
|
|
|
|
|
Hello
I try to send mail with an excel attachment
after the user fill the appropriate data in the web page and click send mail
i should fill an appropriate format of an excel sheet and attach to this file with changes to the outlook.
everything go fine, but i don't want the user know anything about the excel file
i want him just see the outlook with the excel file attached
Any solution or help will be greatly appreciated
And thanks in advance
Assaf
|
|
|
|
|
I am using a FormView in my website. Everything is working fine but I want to know how to get the value of label4 in the code behind. The Label4 is bound to data in a SQL database. This label is located within the EDIT TEMPLATE in the formview..
How come everything in a formview is not able to be accessed programmicially?
|
|
|
|
|
Jacob Dixon wrote: How come everything in a formview is not able to be accessed programmicially?
It is, but you have to use the formview.findcontrol ("controlname") and cast it to the appropiate type
Alexei Rodriguez
|
|
|
|
|
Sweet! Thanks!
Are you talking about (Label)FormView1.FindControl("Label4").Text ?
Something like that?
|
|
|
|
|
Yes
Does it work?
Alexei Rodriguez
|
|
|
|
|
Sure does!
Label newLabel = (Label)FormView1.FindControl("Label4");
Thanks again!
|
|
|
|
|
I have a website which deals with the registration for users, while the an independent C# class which is used to interact through a small client.Is there anyway i can start this class along with webpages in the asp.net hosting, and that it can run all time like a service ?
|
|
|
|
|
Hi,
Just a suggestion.Why not you write that class in a web service and mark those methods as WebMethods. And configure the web service with your asp.net application. Then at the time you want, you may call the service and perform the required tasks.
FYI:
Here is a guide to create web services
http://www.15seconds.com/issue/010430.htm[^]
Hope this helps you.
Thx,
Gayani
|
|
|
|
|
I used to be able to double-click on a control, and it would add a method to the .vb file.
Now, it changes to Source view mode of the .aspx file, and adds a block with the method inside.
How do I change it back?
<div class="ForumSig">"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
</div>
|
|
|
|