|
According to MSDN it should be unique for the session. See Here[^]
|
|
|
|
|
You will receive different sessionID while you havent save something in the session
Once you save something in the session, the sessionID will remain the same
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Response.Write("Init " & Session.SessionID)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then Session("X") = "X"
End Sub
Alexei Rodriguez
|
|
|
|
|
Hi Everyone !
I have have small problem.
"I work with visual studio 2005."
HOW to do if i want to load different Menus depending on the profil of users (general admin, local admin, simple user)
I have a connection page there is an authentication by windows, after this the welcome page contains Different menus I need to know HOW to DO to LOAD the right menu acording to the users rights. My menu is directly in the Master Page
Thank for Helping me
|
|
|
|
|
|
Hi, its depend on the users who log if you want to enabled or disabled a menu.
for example:
''Masterpage load
Session("users")=id_manager
if session("users") = id_manager then
menu1.enabled=true
else
menu1.enabled=false
endif
Hope this one can help
Thanks
|
|
|
|
|
Thanks guys
I will try this tonite I will tell you
|
|
|
|
|
HI,
i have a formview with an itemtemplate that contains a table and a number of rows and columns. There is a label control in here that i want to assign a value at runtime.
i have tried
Label lbl=formview.findcontrol("labelname");
but the lbl is never found , possible because of the table. i need the table because i want to show data in different 4 columns making up three rows...
how would i find this control and assign it the value
thanx
haseeb
|
|
|
|
|
Hi,
I got this error while updating a particular record,i checked all the possibility and i got stuck with this,Please help me
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.
|
|
|
|
|
|
I have 3 webpages identified, then I would like to make another one with automatic refresh every 10 seconds, and then in every refresh display one of the other three in order.
Is there a simple way in asp to accomplish this?
Thanks in advance
|
|
|
|
|
Go through below link for refresh the page.
Auto Refresh Web Page[^]
Maintain the session to display page one by one vice versa
Parwej Ahamad
|
|
|
|
|
Thanks!
Just one Q: what do you mean by "Maintain the session"??
|
|
|
|
|
As said, you want to dispaly the page one by one on each refres so how come to know which one was last displayed.
Parwej Ahamad
|
|
|
|
|
Hi, I have 3 .resx file, its using for language. For PrecompiledWeb;
I convert "Resource.en.resx" to "Resource.en.resources" using with ResGen.exe.
I convert "Resource.en.resources" to "App_GlobalResources.resources.dll" using with al.exe.
I do this operation for turkish and russian languages. So I have 3 App_GlobalResources.resources.dll for each language.
I paste this dll file in relevant directory. For example; ....\bin\en-US
But I browse the web site it's not work. May be I merge this file using with aspnet_merge.exe and I get App_GlobalResources.dll but how I don't know.
How do solve my problem?
Not: I check "Allow this precompiled site to be updatable" when publish web site.
Best Regards...
modified on Thursday, April 23, 2009 12:19 PM
|
|
|
|
|
My datalist has two textboxes, one dropdown and one checkbox. There is also a button "Add" on the page. Every time the "Add" button is clicked, a new row should be added to the datalist, with all the controls on the row.
Kindly help.
Thanks in advance, for the solution.
|
|
|
|
|
You have to use templates. One of the templates is named new item or something like that.
|
|
|
|
|
Is your datalist bound to a list? if so, just add an item to the list and rebind, it should add a new item to the datalist
Alexei Rodriguez
|
|
|
|
|
Hi,
I need help.
How can I get binary data from flash and save image?
I don't know byte variable binding streaming data.
byte[] flashdata = getByte(); <<< ??
string filename = Guid.NewGuid().ToString();
FileStream s = new FileStream("C:\\" + filename + ".jpg", FileMode.CreateNew);
BinaryWriter b = new BinaryWriter(s);
b.Write(flashdata);
b.Close();
s.Close();
Can you help me?
|
|
|
|
|
try using
byte[] b = System.IO.File.ReadAllBytes(fileLocation);
System.IO.File.WriteAllBytes(fileLocation, binaryArray);
I didn't get any requirements for the signature
|
|
|
|
|
I started to use c# recently.
I'm not very competant for c#.
Can you please try for me.
a.htm is flash file. It sends binary data(jpg file) to default.aspx
and .aspx file saves it as jpg from captured data.
Link to my files is as follows.
Please download and try http://www.altcizgiyazilim.com/temp/creatjpg.rar[^]
Thank you in advance.
|
|
|
|
|
I'm not really sure how flash works, sorry.
I didn't get any requirements for the signature
|
|
|
|
|
Good Afternoon All
I have a Gridview that looks like this
http://www.vuyiswamaseko.tiyaneproperties.co.za/images/Problem_Grid.JPG[^]
As you can see in the Description Field there are Duplicates but with Different Cycle Template Field. I want my grid to look like this
DESCR |CYCLE TEMPLATE
-------------------------------
Campbell Nancy |"6 10" |
-------------------------------
Salhab W MR |"9" |
-------------------------------
If it Finds a Duplicate it must Add the Cyle Template and Diplay it as a String and if there is no Duplicate , it must be Left with that String like Salhab W MR is "9"
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I do not know if the way I am telling is a correct way. But I solved this problem for me like this.
1) Fetch the data from the database into datatable.
2) Create another datatable and add new row to it.
3) Get the "Description" Column and add it as a column to the new table. Get the corresponsing Cycle Template solumn and add to table.
4) Loop throught the table with table.Select() to get all the rows having same description.
5) For each such row, get the cycle template and add it to the same column (Cycle Template which you added previously)
In short, create a dynamic table this way and bind it to grid.
Thanks,
Nyoti
|
|
|
|
|
Can you please Give me an T-SQl example ?
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
With T-SQL you will return an input from select query, which will look something like this.
Description Cost Template
description1 9
description2 10
description1 29
description3 8
description3 4
Get this into a datatable. You can do it either using adaptor.Fill (Dataset)
and then dataset.Tables[0]
Let me know if I understood your question correctly.
Thanks.
|
|
|
|