|
thanks for reply my mail id is:
guptagaurav212@gmail.complz forward that.
thanks....
|
|
|
|
|
Hi,
How to logout if the authentication is single signOn.
Our appication has ASP session & ASP.Net session both, I tried clearing ASP.Net session first & then calling ASP logoff page to clear ASP session but not working.
I have tried deleting cookies, abandon session, forms.authentication.signout. but nothing is working.
when I click logout instead of showing login page it opens up the main page.
Some body pls help me. I m breaking my head from past one week.
FutureSE
WhiteHawk
|
|
|
|
|
|
Does Application.Quit() work for Web application also. should i place this code in logout.aspx?
FutureSE
WhiteHawk
|
|
|
|
|
FutureSE wrote: Does Application.Quit() work for Web application also. should i place this code in logout.aspx?
I am lost completly.
|
|
|
|
|
have you used Application_BeginRequest event of Global.asax to check weather the session state is active and also the user is authenticated....
u can use session guid to check.. and whenever it fails to get the guid, you can transfer the page to login again from that event...
hope this will do...
Abhishek Sur
|
|
|
|
|
Global.asax is empty
every thing is authenticated at SSO & web server(application)
One more observation :If sm body try to login who dont have access, it gives err, after that you try to access any page it gives the same error. it wont promt login page. one has to close the brower & open.
sm where user authentication info is stored by sso. I need to clear that to logout.
Nihal Chand
|
|
|
|
|
Hi,
I have created a ASP.Net Web Service application which has a method for validating the registration key entered. Hosted this web service in IIS.
Then,I created a ASP.Net Web Application.Added reference of this web service to the application.
Created a web setup for the application and built it in release mode.
To be resolved
---------------------
When I click to install web setup, it should ask for a registration key to enter.
Then, when we enter the key,it should invoke the web service method and compare with the key we have entered.If the key does not match,it should not allow for installation.
Please help me in this regard.
|
|
|
|
|
In Web Setup , use Custom Action . There are 4 type of Cusotm Action
1.Install<br />
2.Commit.<br />
3.RollBack<br />
4.Uninstall
You can write your custom code on "Install" Section.
For using Custom Action:
Right Click on Web Setup - >View -> Select Custom Action.
Good luck !!!
|
|
|
|
|
I am new to ASP.Net development in using C#
In my webform there is one dropdown list called "DropDownList1".
When i Select one of the items in this drpdownlist1,
another dropdownlist is dynamically created called "DropdownList2".
An I have to create more controls depends on the selection of "DropDownList2".But when i select DropdownList2 , its not working.
ie: DropDownList_SelectedIndexChanged is not firing.Moreover the "DropDownList2" is get disappeared when i select the "DropDownList2".
This is the code I have written..
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList drpDownListSender = (DropDownList)sender;
string strDropDownList1ID = drpDownListSender.SelectedItem.Value;
switch (strDropDownList1ID)
{
case "TRIN":
Label SourceLabel = new Label();
SourceLabel.ID = "SourceLabel";
SourceLabel.Text = "SOURCE";
SourceLabel.Style["Position"] = "Absolute";
SourceLabel.Style["Top"] = "120px";
SourceLabel.Style["Left"] = "232px";
form1.Controls.Add(SourceLabel);
DropDownList2 = new DropDownList();
DropDownList2.ID = "DropDownList2";
DropDownList2.Style["Position"] = "Absolute";
DropDownList2.Style["Top"] = "120px";
DropDownList2.Style["Left"] = "445px";
DropDownList2.AutoPostBack = true;
DropDownList2.EnableViewState = true;
DropDownList2.Visible = true;
form1.Controls.Add(DropDownList2);
DropDownList2.Items.Insert(0, "SELECT");
DropDownList2.Items.Insert(1, "CENTRAL STORE");
DropDownList2.SelectedIndexChanged += new System.EventHandler(DropDownList2_SelectedIndexChanged);
break;
case "TROUT":
// Label4.Text = "Second Category Selected";
break;
}
protected void DropDownList2_SelectedIndexChanged(object sender,EventArgs e)
{
ViewState["DropDownList2"] = DropDownList2.SelectedValue.ToString();
TextBox TextBox3 = new TextBox();
TextBox3.ID = "TextBox3";
TextBox3.Style["Position"] = "Absolute";
TextBox3.Style["Top"] = "400px";
TextBox3.Style["Left"] = "600px";
TextBox3.EnableViewState = true;
form1.Controls.Add(TextBox3);
DropDownList2.SelectedValue = ViewState["DropDownList2"].ToString();
}
|
|
|
|
|
please check your dropdownlist box property autopostback is true or false if false than firstly true this property than check.
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
|
Hi,all
i have created table Dynamically , and added the linkbutton control to table cells using the folowing code
Dim noOfTimes As Integer = 0
dim CurrentName As String = Nothing
Dim trow As TableRow = New TableRow
For d = 0 To 31
Dim tbcell As TableCell = New TableCell
'Iterate to see which cells have a booking against a name
If testarray(d) = Nothing Then
'No booking case
CurrentName = Nothing
tbcell.BackColor = Color.Yellow
Else
'booking exists, find noOfTimes it is booked for same employee
CurrentName = testarray(d)
'search subsequent entries for same name
for j = d+1 to 31
'
if testarray(j) = CurrentName then
'same name repeated
noOfTimes = noOfTimes + 1
else
'name is not repeated, print name and advance d counter by number of times
Response.Write(" Span of " + noOfTimes.ToString() + " " + CurrentName )
d = d + noOfTimes
noOfTimes = 0
'exit for loop using the statement below
exit for
end if
next
'Here i added linkbutton code like
Dim lnbutton as linkbutton = new linkbutton
lnkbutton.text ="Click Here"
lnkbutton.postbackurl=""
tblcell.controls.add(lnkbutton)
tbcell.BackColor = Color.Green
tbcell.ColumnSpan = noOfTimes
End If
tbcell.Text = " "
trow.Cells.Add(tbcell)
Next
Table1.Rows.Add(trow)
Next
Linkbutton control is not added to table cells
Please suggest me where iam doing mistake and where i have to put linkbutton code .
any article or help is highly appericated.
Best Regards
Rameez
Thanks in advance
|
|
|
|
|
Easy method is to use DataGrid/GridView. Put a template column and add the link button to there. If you need to add new rows, create new row in the datasource and rebind the grid. This is easy and ASP.NET will take care about maintaining viewstate.
|
|
|
|
|
Thanks for reply,
i donto understand ur answer how i solve my problem .
kindly suggest me how i add linkbutton control to table cell and where i have to put code of that in my defined code .
Regards
Rameez
|
|
|
|
|
I was suggesting the same table can be made using a GridView without any effort. GridView/DataGrid renders as normal table.
|
|
|
|
|
I have hit a strange problem. I have one application deployed on 2 different websites. They both access the same database. The connection string in the web.config is same.
The problem is that on one website I have started getting 'Connection Timeout' message. This website has stopped completely and I keep getting timeout error. I have ConnectionTimeout = 1000 in my code.
However, on the second website, the same application is able to connect to DB without any problem. So I am not sure why one website is able to connect to a DB and another cannot.
Any thoughts on this please.
Thanks
|
|
|
|
|
which databse u use?
Darshana Pathak
|
|
|
|
|
Shared (hosted) MS SQL Server 2000
|
|
|
|
|
is it working successfully with another website Simulteneously?
Check one by one it can be possible that if one is using that connection so other may not be able to access.
Or check your web.config file that u have written correct server name & database name.
Darshana Pathak
|
|
|
|
|
Hi,
I am developing an secure website,My problem when i login to my site it should not ask for remembering the paasword although in the browser settings it is enabled for prompting to ask for saving the user and password.
Cheers!!
Brij
|
|
|
|
|
It is not possible to override browser settings from your code... as per I know..
But what you can do is just use Form Based Authentication, and go cookieless...
Abhishek Sur
|
|
|
|
|
Hi Abhishek,
Thanks for your answer. as i am also searching for this soluation.
Abhishek sur wrote: But what you can do is just use Form Based Authentication, and go cookieless.
Can you be more specific on that or can you give me some more details?
Thanks in advance !!!
|
|
|
|
|
Actually there are some applications that is integrated to my apllication that requires cookies.So i have to use cookies.
Cheers!!
Brij
|
|
|
|
|
Yes u can change browser settings
Internet Options==>Contenet==>AutoComplete==>Prompt me to save passwords
Darshana Pathak
|
|
|
|