|
I'm no vb jockey and I don't have much experience with classic asp, but I do know that asp.net really is nothing like classic asp and thats probably the problem. Or maybe you meant you dusted off your asp.net books and I'm just a fool :p
|
|
|
|
|
You are trying to use ASP code in an ASP.NET page.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hello.
I have a WebService (VS2005) constructed from some DLLs.
Each DLL has its own settings (these DLLs are services used in various applications and tasks so I can't have the settings paramaters in one single file).
When I use the DLLs with a Form applications or Console applications everything works fine. when I try them out under a web service is get an error stating that the settings parameters can't be "User-Scoped". I can't have the settings under Application-Scope as I need them to be changed at run-time.
How do I set up setting parameters so they are still read\write for the single instace of the webservice (the webservice is run as a singleton) ?
thanks.
Gilad.
|
|
|
|
|
I have an older project that I updated to .NET 2.0 and there are only two bugs, but I think they are related. As this was a .NET 1.1 site it using forms authentication rather than the membership provider.
Before the update the check box for "remember me" worked and dropped a cookie for 30 days, now this does not work at all. Here is the code:
<br />
Context.User = newUser;<br />
FormsAuthentication.SetAuthCookie(tbUserName.Text, cbRememberMe.Checked);<br />
<br />
if (cbRememberMe.Checked)<br />
{<br />
HttpCookie cookie = Response.Cookies[FormsAuthentication.FormsCookieName];<br />
cookie.Expires = DateTime.Now + new TimeSpan(30, 0, 0, 0, 0);<br />
}<br />
The second problem was just reported to me today. I don't really believe it, but the user claims its true. They say that before the update they could be logged into the site in one IE window then open a new IE window and log into the site as a different user and was able to work with both windows as two different users. In other words each browser started a new session. This no longer happens and honestly I thought that was how it always worked.
Any suggestions would be of great help.
|
|
|
|
|
Well I redid the code in a way that makes sense (with FormsAuthenticationTicket with the expire set) and that changes the time properly, but the cookie does not persist after the window is closed even though it is set true.
|
|
|
|
|
Hello
How I can create a Pascals triangle in aspx
I've done it in ASP (vbscript)
<html>
<head>
<body>
<form methot="GET">
<INPUT type=text value="<%=Request.QueryString("i")%>" name="i">
<input type="submit" name="btnSubmit" value="OK">
</form>
<table border="1" cellspacing="2">
<%
dim tabl(5000,5000)
dim i, j
' Initialisation
For i=0 to Request.QueryString("i")
tabl(i,0)=i
tabl(0,i)=i
Next
' Calcul
For i=0 to Request.QueryString("i")
For j=1 to i
tabl(i,j)=tabl(i,j-1)+tabl(i-1,j)
tabl(j,i)=tabl(i,j-1)+tabl(i-1,j)
Next
Next
' Affichage
For i=0 to Request.QueryString("i")
response.write "<tr>"
For j=0 to Request.QueryString("i")
response.write "<td>" & tabl(i,j) & "</td>"
Next
response.write "</tr>"
Next
%>
</body>
</html>
Thanx.
Yushkoya
|
|
|
|
|
Have you tried pasting this into an aspx? Did it give you errors? Are you trying to use a code-behind and a table control? It would be nice if you gave a specific question.
Logifusion[^]
|
|
|
|
|
It gives me 58 errors...
It was completly different language =(
Can you help me to write this triangle?
Thanx
|
|
|
|
|
Situation:
I have a web user control (.ascx) that consists of several text boxes with validators attached.
If I place this web user control into a View container inside the MultiView control no one validation handler is called and page is always Valid. Investigation shows that validation events simply are not fired by ASP.NET.
If I place the same web user control on the .aspx page it works perfectly.
Documentation does not say of any special behavior of validation inside the MultiView.
Any clues, explanations, tips?
Alexander Turlov
Software development consultant, MCSD.NET
|
|
|
|
|
If your question is still, then I could help if you post your code snippets. Perhaps, my example is simple enough and it's working me when I staticly declare a user control in a View of the MultiView control in the web page .aspx.
|
|
|
|
|
Hi, thanks for the answer, but frankly I don't understand what you mean by "staticly declare a user control in a View". Could you give me an example of the code of such a declaration, please?
As per my code it's mostly an asp.net markup which simply declares all the controls. Because I use standard validation controls there is almost no code behind. Do you want to see a markup?
Thanks in advance.
Alexander Turlov
Software development consultant, MCSD.NET
|
|
|
|
|
I am using Multiview control for displaying tab on my page . here I am writing the code for validation of each tab on my page
I have menu item control as well( i.e TabMenu) to display the tab. on clicking the tab it will validate the current tab
protected void TabMenu_MenuItemClick(object sender, MenuEventArgs e)
{
int nextTabIndex = Int32.Parse(e.Item.Value);
// here TabMultiView is my multiview control
for (int index = 0; index < TabMultiView.Views.Count; index++)
{
TabMultiView.ActiveViewIndex = index;
if (index != nextTabIndex)
{
// here ValidationGroup is the name of validationgroup in my validation control ex: <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Login_x0020_Name" ValidationGroup="ValidationGroup" ErrorMessage="Enter Value"></asp:RequiredFieldValidator>
Page.Validate("ValidationGroup");
if (!Page.IsValid) { return; }
}
}
}
its working perfect
if you have any query regarding this blog please let me know..
Cheers Guys....
Life to Set Hai Boss.......
Shukraj Khadse
Software Engg
Datamatics Global Services
Andheri, Mumbai
|
|
|
|
|
hi,
Can anybody help me in exporting data from datagrid to excel with proper text formatting.
i dont have any problem in exporting data to excel or in number formatting,but my problem is in text formatting
plesae help me.
Bhaskar Sarma
|
|
|
|
|
You don't need to ask if you may ask a question. Just explain your problem, and anybody who knows the solution can reply.
---
b { font-weight: normal; }
|
|
|
|
|
i wanna retrieve data from datagrid column which is filled dynamically by writing code.
The column is filled by writing code
2.i often get the data is used by another user u need permission to acces the data. when i use the database as MSAccess. and oledbdataadapter.
plz any one help me regarding this problems
ashok kumar
|
|
|
|
|
I think it sounds like you have an open connection which you aren't closing somewhere...
|
|
|
|
|
I'm doing a hotel reservation website and I have implemented 3 arraylists that contain the clients room types, room number and total price. I pass these arraylists to 3 other static arraylists in an AppCode class. I made those static since that's the only way to keep the values in there. My problem is that this works for a single browser, but whenI try with multiple browsers, and insert data into any of the arraylists, bcos they are static they affect other client browser requests.
I need to know how I can prevent this or another method of passing arraylists to other web forms taking note of sessions.
Live in fragments no longer. Only connect.
|
|
|
|
|
Dim item As DataGridItem<br />
Dim sectionIDs() As Int16<br />
Dim selectCount As Int16<br />
<br />
For Each item In grdSection.Items<br />
If CType(item.FindControl("chkSelect"), CheckBox).Checked Then<br />
selectCount += 1<br />
ReDim Preserve sectionIDs(selectCount - 1)<br />
sectionIDs(selectCount - 1) = item.Cells(2).Text<br />
End If<br />
Next<br />
<br />
If Not sectionIDs Is Nothing Then<br />
Session.Add("confirmSectionDelete", sectionIDs)<br />
Response.Redirect("DeleteSections.aspx")<br />
End If
www.programmingknowledge.com[^]
|
|
|
|
|
Sorry, not helpful.
Live in fragments no longer. Only connect.
|
|
|
|
|
Look at the bit about session...
|
|
|
|
|
I may be wrong but this has nothing to do with the question that was asked.
|
|
|
|
|
You either have to come up with some mechanism to seperate the data by user in your arraylists or just use a session variable.
|
|
|
|
|
I am having one Dropdownlist, depending upon dropdownlist selection, I am filling a Listbox. I gave a RequiredField Validator for ListBox. But to my surprise it did not validate if user does not select anything from Listbox.
Finally I created a Default ListItem like "--Select One--" and made through code I made it selected by default.
My problem seems to be solved now, but is there any other alternative?, I wonder is this the case with everyone here.
Please suggest!!
Thanks
Sony
|
|
|
|
|
I think you're doing okay. I know I would you a Select Case Implementation if I were you.
Live in fragments no longer. Only connect.
|
|
|
|