|
Thanks for your reply...
Here is your soln~
<Configuration>
<System.web>
<!-- This is for Cookies.... 30 is default time out -->
<Authenication mode="Forms">
<forms name="MyAppCokies"
loginUrl="~\login.aspx"
protection="All"
timeout="30" Path="/" />
<!-- For SessionTimeout -->
<SessionState
<-- Provide all information of session -->
timeout="20"
/>
</System.web>
</Configuration>
Hope This will Help U
Happy Programming
-----
Abhijit
|
|
|
|
|
hi
herei am using two radio buttons in my application.
i have setted one radiobutton as default checked.
code was like below
<asp:RadioButton ID="Rb_medwrite" runat="server" Style="z-index: 106; left: 392px;
position: absolute; top: 76px" Text="MedWrite" GroupName="medwrite" Checked="True" OnCheckedChanged="Rb_medwrite_CheckedChanged" />
<asp:RadioButton ID="Rb_google" runat="server" Style="z-index: 107; left: 482px;
position: absolute; top: 77px" Text="Google.com" GroupName="medwrite" OnCheckedChanged="Rb_google_CheckedChanged" />
at run time if i check other radio button( google.com) and run the application then it terminates to default radio button(medwrite).
how to set check as selected button.
regards
-- modified at 9:55 Friday 5th October, 2007
venkat
|
|
|
|
|
Try using the Ignore HTML tags in this message (good for code snippets) checkbox
only two letters away from being an asset
|
|
|
|
|
you can check by Rb_google.checked = false on the checkedchanged event of Rb_medwrite and vice versa..just like below:
protected void Rb_medwrite_CheckedChanged(object sender, EventArgs e)
{
Rb_google.Checked = false;
}
protected void Rb_google_CheckedChanged(object sender, EventArgs e)
{
Rb_medwrite.Checked = false;
}
suchitamanandhar@hotmail.com
|
|
|
|
|
Does anyone know how to dynamically create hyperlinks when the program runs?
I have tried this:
Dim myHyperLink As HyperLink
myHyperLink = New HyperLink
myHyperLink.ID = "link1"
myHyperLink.Text = "Test"
'myHyperLink.ImageUrl = "spacer.gif"
myHyperLink.NavigateUrl = "default.aspx"
myHyperLink.Attributes("style") =
"style="border-width:1px;border-style:dotted;height:40px;width:128px;Z-INDEX:
103; LEFT: 408px; POSITION: absolute; TOP: 208px"
PlaceHolder1.Controls.Add(myHyperLink)
but it does NOT create anything.
Any ideas that work?
|
|
|
|
|
try this
Dim i As Integer = 0
For i = 0 To 0
Dim rw As New TableRow
Dim cellnum As Integer
Dim n1, n2 As Integer
For cellnum = 0 To dtab.Tables(0).Rows.Count - 1
Dim lk As New HtmlAnchor
Dim cel As New TableCell
lk.ID = "link1" & cellnum.ToString & i.ToString
lk.HRef = "source.aspx"
lk.Name = "ASP"
lk.InnerText = "whatever u like"
lk.Title = "desclaimer"
cel.Controls.Add(lk)
rw.Cells.Add(cel)
Next
Table4.Rows.Add(rw)
ViewState("AddedControl") = "true"
Next
"table4" is id of an asp table
hope it will help u....
K Nitin
|
|
|
|
|
Using a table might work for me but do you have anything that will work with a gridview?
I am reading info from a table and using it to create a menu. I have graphics that will be used for the buttons. And I need them clickable, of course.
But I need the number of buttons to be able to change depending on the number of entries in the database. I can use dynamically created hyperlinks ( and apply the image to them) and then absolutely position them vertically, OR I can place the hyperlink image in a gridview.
I really dont want to use dynamic HTML. Any ideas?
|
|
|
|
|
|
Show Calander in Drop Down List using asp.net
|
|
|
|
|
hi all,
i want to know how to create .mdf file under my App_data in my application.
can any one guide me how to achieve this???????
|
|
|
|
|
|
Hi Abhijit,
i want to know how to copy my tables, stored procedures from one file to another file.
can you guide me wat to do..
|
|
|
|
|
|
yup..
i want to transfer all my tables and stored procedures from one database to another database.
|
|
|
|
|
|
cant we move directly means by writing script or some thing like that..
instead of writing code for this?
|
|
|
|
|
if you want to move directly table and all other things.... u can use either copy option or import option in SQL Server!!!!
it will copy all table and procedure to a new table !!!!
Happy Programming
-----
Abhijit
|
|
|
|
|
SqlConnection myConn = new SqlConnection("Server=" + servername + " ;Integrated security=SSPI;database=master");
str = "CREATE DATABASE " + Database name + " ON PRIMARY " +
"(NAME = MyDatabase_Data, " + mdf_filename +
//"FILENAME = 'C:\\MyDatabaseData.mdf', " +
"SIZE = 2MB, MAXSIZE = 10MB, FILEGROWTH = 10%) " +
"LOG ON (NAME = MyDatabase_Log, " + ldf_filename +
//"FILENAME = 'C:\\MyDatabaseLog.ldf', " +
"SIZE = 1MB, " +
"MAXSIZE = 5MB, " +
"FILEGROWTH = 10%)";
SqlCommand myCommand = new SqlCommand(str, myConn);
myConn.Open();
myCommand.ExecuteNonQuery();
It will create database as well ur mdf file .......
Happy Programming
-----
Abhijit
|
|
|
|
|
hi
in my application i am using two radio buttons.
i selected one button as default.set
in radio button property checked =true for default radiobutton.
but in runtime when we select other radio button and run the application.then checked is terminates to default
radio button.
but i want to select second button as checked while i complete the seraching based on that radio button.
here i want when we checked other radio button then only cheked changes to that button.
send asap
regards
venkat
venkat
|
|
|
|
|
hi all..
How to Make a Password Strength Meter Like Google?
i want some help....plz reply me...
thanks......
Impact Pro
|
|
|
|
|
string mashing. Look for upper and lower case. Look for non letters. Look if the password matches the username or part of it. Stuff like that.
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 )
|
|
|
|
|
basemake wrote: How to Make a Password Strength Meter Like Google?
i want some help....plz reply me...
Christian graus suggestion is the best, apart from that, if you are using VS2005 and Ajax Toolkit, you have password strength control with that. That can be used for this.
|
|
|
|
|
For that u can use Ajax control tool kit also if u know then. Otherwise javascript is best here I write full code which is aspx file code ok just copy it and check it.
function CheckPwdStrenth()
{
var pwd = document.getElementById("txtpwd").value;
var cat = "";
var i = 0;
var caps = false; // for upper case is there or not
var lawer = false; // for check lawer case is there or not
var digit = false; // check digit is there or not
// check the lenght first is it less than six char than it is week.
if(pwd.length<=5)
{
document.getElementById("lblstrength").innerHTML = "Weeker";
document.all.td1.bgColor = "red";
document.all.td2.bgColor = "red";
document.all.td3.bgColor = "red";
document.all.td4.bgColor = "red";
}
else
{
for(i=0;i<pwd.length;i++)
{
cat = pwd.charAt(i);
if(cat>="A" && cat<="Z")
caps = true; //Upper case is there.
if(cat>="a" && cat<="z")
lawer = true; // Lawer case is there.
if(cat>=0 && cat<=9)
digit = true; // Digit is also there.
}
if(caps==true && lawer == true && digit == true)
{
document.getElementById("lblstrength").innerHTML = "Strongest";
document.all.td1.bgColor = "green";
document.all.td2.bgColor = "green";
document.all.td3.bgColor = "green";
document.all.td4.bgColor = "green";
}
else
{
if(caps==false && lawer == false && digit == false)
{
document.getElementById("lblstrength").innerHTML = "Medium";
document.all.td1.bgColor = "maroon";
document.all.td2.bgColor = "maroon";
document.all.td3.bgColor = "maroon";
document.all.td4.bgColor = "maroon";
}
else
{
document.getElementById("lblstrength").innerHTML = "Stronger"
document.all.td1.bgColor = "lime";
document.all.td2.bgColor = "lime";
document.all.td3.bgColor = "lime";
document.all.td4.bgColor = "lime";
}
}
}
}
function focusset()
{
// txtpwd.focus();
// alert("T");
}
<asp:label id="lblstrength" runat="server" text="Nothing">
I hope it will help u and u can change it as per your knowledge and requirement.
tarduk2004@yahoo.com
|
|
|
|
|
Hello sirs/madams
I am developing a web application in which i want to update database records automatically.The update query check 'previousdate' coloumn value and then compare it to system date if current date is greater than coloumn date then 'Level' coloumn value will be changed.
Now my problem is that i know this is done by sql serevr agent. but i can't writing store procedure/function that first check all records and then execute query according to condition.
i am using sql server2000.
please help me if you can. my emailid : imnk2@yahoo.co.in
K Nitin
|
|
|
|
|
Hi,i have created one website on local system which is running fine.now when i am trying to host the same website on IIS it is giving me error which is,
CS0016: Could not write to output file 'e:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\websetup(travell)\17db5c73\928a41bd\App_global.asax.svcma0h6.dll' -- 'Access is denied'
What could be the reason.
GIRISH
|
|
|
|