|
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
|
|
|
|
|
|
i had tried to run this command but it gives me some errors,which are stored in the log file and the main error is,
InstallInfSections failed with HRESULT 80070005: 'Access is denied. '
|
|
|
|
|
The windows account from which you logged in and/or aspnet account do not have enough permissions
That may be the cause
Try giving permissions to those account
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
did u try it by reinstalling the IIS ????
if u reinstall then please Reinstall framework also after the installation of IIS
Thanks !!!!
Happy Programming
-----
Abhijit
|
|
|
|
|
I have two projects in a solution. One of the project is a web application and the other is a web setup project for packaging the web application for deployment. In the web setup project I have added a .bak file that is deployed together with the web application. Can someone explain why when I attempt to build the web setup project, MSSQLServer starts installing?
|
|
|
|