Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~3K People Reached
Favorite Tags

22 Posted Topics

Member Avatar for kanuri1

You can use following to setup session timeout for whole application in web.config. [CODE] <sessionState mode="InProc" timeout="5"/> [/CODE] This will remove session after 5 minutes of inactivity.

Member Avatar for crishjeny
0
102
Member Avatar for virang_21

Hi, I have two datatables with studentId field and I am trying to join them using LINQ. The code is working fine in development environment but in production environment it is not giving the expected result. It is not filtering the data that I am trying to filter through LINQ …

0
81
Member Avatar for virang_21

Hi folks, I am trying to prevent multiple postbacks from a button. When user clicks the button it becomes disabled but still i end up having multiple entries of same data in the database. Is anything wrong the way I am disabling my button ? [CODE] StringBuilder sbValid = new …

0
48
Member Avatar for virang_21

Hi Folks, I have created a login page that allows user to login to the system. I have a table in database called Users (userid, password, roleid) . When I try to login with proper user id and password the system let me login and redirects to proper page but …

Member Avatar for Naresh Sharma
0
71
Member Avatar for virang_21

Hi I am using ASP.NET to upload files that is to be stored in MSSQL Server 2008 as varbinary(MAX). I have issues with opening scanned pdf files once users upload them. The issue is happening very randomly (say 20% of the files cannot be opened .). It seems something is …

0
73
Member Avatar for virang_21

Hi, I am trying to send email from my website using Exchange server 2008. The setting is like my web server is on different machine then my exchange server. when I try to send email from my website using exchange it gives me an Exception "Unable to Connect to the …

0
186
Member Avatar for mith_cool

Use port 587 for gmail SMTP I am using it and works like a charm. use the following settings in your web.config [CODE] <system.net> <mailSettings> <smtp from="you@gmail.com"> <network host="smtp.gmail.com" password="yourpassword" userName="you@gmail.com" port="587"/> </smtp> </mailSettings> </system.net> [/CODE]

Member Avatar for virang_21
0
195
Member Avatar for tryongliph

Make sure the label you are trying to access in code behind Page_Load() method is actually there on the aspx page. Check its ID attribute . You can access that particular label via its id and assign its text property to whatever you want it to be. [CODE] Label1.Text="This is …

Member Avatar for tryongliph
0
106
Member Avatar for unknowndevil41
Member Avatar for virang_21

Hi, I worked on an application for 5 months and there are different levels of user access to the system like Administrator, Staff, Student etc. I used form based authentication and created different directory for each user type and then set role's access in web.config as follow : [CODE] <location …

0
63
Member Avatar for virang_21

Hi, I have two master pages in my site. One for the general pages that users can view without logging in (Site1.Master) and one for the pages that user can view after logging in (Site2.Master). Now once the user is logged in and say access Search.aspx page which has Site2.Master …

Member Avatar for virang_21
0
73
Member Avatar for virang_21

Is it possible to do a page postback after endREquest() or in the endRequest() ? I have a button in update panel that I allow user to click just once as the process took bit of time to finish. I used following code to achieve that but now my application …

Member Avatar for virang_21
0
672
Member Avatar for virang_21

Hi, I am trying to create a mailbox on exchange server 2007 using power shell command via ASP.NET page. I am using windows impersonation to do this. I ma able to connect to my exchange server box but when I try to invoke the Mailbox-Create command the webpage displays "Connection …

1
64
Member Avatar for virang_21

Hi All SQL Gurus, I am working on a project for a college. I have to generate a unique student Id for each student. I know I can use IDENTITY column to achieve this but I have rather complex situation here. My studentID field is string because they want it …

Member Avatar for sknake
0
127
Member Avatar for virang_21

Hi, I have hosted a website that has MSSQL Server 2005 database on different machine. I am using the following connection string [code]<add name="ConnectionString" connectionString="Server=mssql2005.ableos.com.au;Database=visualinventory_ableos_com_au;Uid=myuserid;Pwd=mypassword;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />[/code] I am getting the following error. [B]A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server …

Member Avatar for smithroy9
0
151
Member Avatar for robertomason
Member Avatar for sknake
0
276
Member Avatar for sivak

use ASP.NET AJAX Extension or simply the AJAX toolkit . [URL="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx"]http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx[/URL]

Member Avatar for virang_21
0
85
Member Avatar for BioHazard90

Array get instantiated when you create it with new keyword: integers = new int[10]; // size array declaration can just create a reference. int[] integers; // declare array

Member Avatar for BlackSun
0
134
Member Avatar for Rockstar_021

use RegularExpression validators or simply set textbox's maxlenght property to 12 and 8 respectively.

Member Avatar for virang_21
0
195
Member Avatar for virang_21

Hi there, I am using third party ActiveX control in my application. It requires RecordSet as a input parameter to its method. I am programming my application in C#. When I call the method after creating RecordSet it throws an exception "ActiveX cannot create an object". What is the potential …

Member Avatar for Ramy Mahrous
0
170
Member Avatar for ashneet

Put Console.ReadLine() when your app is exiting while loop. By that way you can keep your app running till user enter something.

Member Avatar for LizR
0
149
Member Avatar for devbrat_ghosh

The End.