|
If you didn't want to do it on each and every page, you can create a base page which all of your web pages inherit from and just do it in the base page. That is what I have done.
Ben
|
|
|
|
|
rahul.net11 wrote: i have to define
on session start event session("userid") or just i have to
write the code on my page.
Exactly what Christian Graus said
|
|
|
|
|
Thanks
I tried it it working.
Rahul
|
|
|
|
|
Thanks
I tried it its working.One more query i have
define 10 values in different session and when session get expired
then values in my all session gets null or some session values still
remain in session.Because i am sending user to login page i force
user to enter only its password because i am taking its email id on
first page and putting it in session and then checking its password
using its mail id.If values in session (email) is get expired or not?
Rahul
|
|
|
|
|
When session ends all your session values will be cleared. If you don't want user to reenter email id, you need to store it in some cookies
|
|
|
|
|
Ok Thanks for your help.
Rahul
|
|
|
|
|
i have to populate data table's values in combo box control using c#.net 2.0. so please provide some code for it
|
|
|
|
|
myCombo.DataSource = myTable;
myCombo.DataBind();
Your combo has properties you can set for which column value to use for display and for the value member.
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 )
|
|
|
|
|
HI
i am tryin to bind a image file name to an imageurl tag that is stored in a datagrid
But i keep getting the error message: the server tag is not well formed,
how would i alter this so its correct?
<asp:TemplateColumn HeaderText=Products >
<ItemTemplate ><asp:Image runat=server ID=imageHolder imageurl="~/test/<%#databinder.eval(container.dataitem,"imageAddress"))%> " />
</ItemTemplate>
</asp:TemplateColumn>
Any help greatly appreciated
Cheers
boyindie
|
|
|
|
|
<asp:TemplateColumn HeaderText=Products >
<ItemTemplate >
<asp:Image runat="server" ID="imageHolder" imageurl="~/test/<%# Databinder.Eval(Container("DataItem.imageAddress"))%> " />
</ItemTemplate>
</asp:TemplateColumn>
|
|
|
|
|
i ahve done the above but it jus displays the red cross in the box i checked the source and it has filled the correct paths in the image urls
any ideas?
|
|
|
|
|
hi,
I m neha gupta.i m making a project online book store ..In this project there is a cart facilities i.e. data grid control..
How can i delete any items from data grid...
thanks
neha
Neha gupta
|
|
|
|
|
You want to remove them from your data source ? The most likely way is to use a button which, when clicked, removes the item.
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 )
|
|
|
|
|
|
I pass the name of the stored procedure into my function and then append the parameters the stored procedure expects.
This works fine as long as I have stored procedures which expect always the same parameters.
But now there are very few exceptions. So my question is if there is a way to check how many parameters a stored procedure is expecting before I execute it?
Public Function GetReport(ByVal StoredProc As String) As Boolean
Dim cmd As New SqlCommand(StoredProc, m_Conn)
cmd.Parameters.Add(...)
cmd.Parameters.Add(...)
Many thanks for all kind of hints
Andreas
|
|
|
|
|
You can pass a Dictionary, where the keys are the parameter names and the values are the parameters. Otherwise, no. You can't ask how many are expected, and if you're calling a proc, you really need to know ( who cares how many it expects if you don't have values to pass through to 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 )
|
|
|
|
|
That's true
Thanks
|
|
|
|
|
Hi All
I want to add richedit or richtext control in my asp.net form plz tell me how could i do it i am unable to add it
|
|
|
|
|
ASP.NET don't have any built in RichEdit control. You need to create one using Iframe and javascript. or you can download something like FckEditor.
|
|
|
|
|
I have the following requirements in EPiServer Portal. I am going through forums, EPiServer website and other search engine(Google) also. I would like to have some ideas/sample codes/website links for the following implementations.
1. Adding Comments- they should go through moderator approval and the
moderator can delete the comments also. Showing total comments and
pagination
2. Rating-5 stars display
3. User should not rate the same article again
4. Breaking a news(not the news list) into pages if it spans for more than
a page
5. Printing news
6. Related News
|
|
|
|
|
Hi
I struck with an application in that I have a Label which is used to filled with a column of the Table, the column contains huge text.
The Label is displaying the whole text in a single line, making the page to strech along the text
I want to cut down the Text into multiple lines and display it in the Label.
How can I implement this.
I am using DataRow to fill the Label.
Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|
|
GIve fixed width in pixel to Label
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
|
Neema
Why did u reply to me?
Reply to Chand10
---------------------------------------------------
|
|
|
|
|
Thanks for u r reply.
I already given width to the Label but still it is not working.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|