|
can u tell vats ur need ...
|
|
|
|
|
loop through the grid view and use row.findcontrol something like this:
<br />
foreach(GridViewRow gvRow in gv.Rows)<br />
{<br />
yourcontrol = gvRow.FindControl(controlid);<br />
}<br />
-----
|
|
|
|
|
Hi,
this code work true in first click, and in second don't fire Click event of btn.
in per twice run (first fire click event, second no).
if change the Form_Load to :
if (!IsPostBack)
{
Add();
}
in first click the btn disappears!
I use such this code in my project, what should I do for true action(in each click fires click event)
**** There is a Table control (tbl) on my web form ****
protected void Page_Load(object sender, EventArgs e)
{
Add();
}
private void Add()
{
tbl.Rows.Clear();
TableRow tr = new TableRow();
TableCell tc = new TableCell();
Button btn = new Button();
btn.Text = "Click Me!";
btn.Click += new EventHandler(btn_Click);
tc.Controls.Add(btn);
tr.Controls.Add(tc);
tbl.Controls.Add(tr);
}
void btn_Click(object sender, EventArgs e)
{
Add();
}
Best wishes
|
|
|
|
|
Have you figured this out?
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
No, and it's crucial for me!!
Best wishes
|
|
|
|
|
I have the following code, i have checked this with other versions of .net 2003 and 2005 to make sure it worked, but when i tried using the new web developer 2008 express it won't recognize the mail.mailmessage and smtpmail. If any one can see where i'm goin wrong please let me know.
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Mail
Partial Class Volunteer
Inherits System.Web.UI.Page
Protected Sub btn_submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_submit.Click
Dim mailmessage As New Mail.MailMessage
mailmessage.From = "noreply@paulmcgann.net"
mailmessage.To = "noreply@paulmcgann.net"
mailmessage.Subject = "Sending Emails using asp.net"
mailmessage.Body = "Initalizing an email to be sent from asp.net application"
mailmessage.Priority = MailPriority.High
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(mailmessage)
End Sub
End Class
|
|
|
|
|
Name space changed to System.Net.Mail
|
|
|
|
|
|
hi,,
i hve a datalist with a linkbutton and a label. both have same values. from A to Z. so , i want to get the value which we click. ie, if i click linkbtn with letter 'J' i hve to get that letter.. i used a code
dim lkbtn as linkbutton = Ctype(e.item.findcontrol("linkbtn"),Linkbutton)
dim s as string = lkbnt.text
but its not working..
thanks in advance..
Cheers..
|
|
|
|
|
Hi all,
I m getting the following error
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
and following is my code
Dim connstr As String = String.Empty<br />
Dim notes As String = String.Empty<br />
Dim oldbconn As New OdbcConnection(ConfigurationManager.ConnectionStrings("DBConnectionString").ToString())<br />
Protected Sub SubmitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SubmitButton.Click<br />
If Job_Notes.Text = "" Then<br />
notes = "No notes"<br />
Else<br />
notes = Job_Notes.Text<br />
End If<br />
Dim oldbcmd As New OdbcCommand()<br />
connstr = "insert into JOB_HR_Details(Job_Type,Job_Title,Job_Description,Location_ID,Qualification,Years_of_Experience,Competencies_Desired,"<br />
connstr += "Competencies_Technical,Email_ID,Notes,Status) values('" & Job_Type_DDL.SelectedValue & "','" & Job_Title_TXT.Text & "','"<br />
connstr += JOB_Description.Text & "'," & Location_DDL.SelectedValue & ",'" & Qualification.Text & "'," & Experience_DDL.SelectedValue & ",'" & Des_Comp.Text & "','"<br />
connstr += Tech_Comp.Text & "','" & Emp_Email_ID.Text & "','" & notes & "','0');"<br />
oldbcmd.CommandText = connstr<br />
oldbcmd.Connection = oldbconn<br />
oldbconn.Open()<br />
oldbcmd.ExecuteNonQuery()<br />
oldbconn.Close()
can anybody help me out whats causing the problem....
and can we use stored proc in oracle? if yes can anyone translate the above query to a proc
thanks in advance...
When you fail to plan, you are planning to fail.
|
|
|
|
|
This may be a newbie question, but I am using System.Net.Mail to send an email, containing the data from a form. getting the text from the textboxes, and selected values from the drop-down boxes was easy. What I am struggling with now is how to get a list of which items, from within the 'checkboxlist' were selected when the 'submit' button was clicked. The most I have been able to get so far, using the .SelectedItem attribute is the FIRST value. I haven't figured out how to retrieve the collection that is a list of all the items that were selected. Make sense?
any help or ideas would be appreciated.
Thanks
,Gary
|
|
|
|
|
loop through the checkbox list and check if the item is selected then get its text. something like this:
<br />
foreach(ListItem li in cblist.Items)<br />
{<br />
if(li.Selected)<br />
}<br />
-----
|
|
|
|
|
|
i finished my project and now the deployment phase.
i have done the web-setup project and worked well.
my problem is with tha database.
my database is SQL Server 2005
and when i install the web i included a .bak file to resotre.
is the user forced to install the whole enterprise sql server or,
is the sql express edition enough for the web consedring that i have
"Insert,Update,Delete,Backup,Resotre,Drop" command (SQL Queries) in my application.
so plz im looking for help.
|
|
|
|
|
in a web project users do not have to have sql server at all. All you need is to install the sql server on the database server or web server if both are same and connect to the database server through your code.
-----
|
|
|
|
|
I think u didn't get my prob. correctly............
Actually i've a textbox(Multiline) in which i've to search a particular string
Example:-
this is a paragraph given below and i have to search a string "quick"
then answer would be 4
The quick brown fox jumps over the little lazy dog.Hello How R U.
The quick brown fox jumps over the little lazy dog.Hello How R U.
The quick brown fox jumps over the little lazy dog.Hello How R U.
The quick brown fox jumps over the little lazy dog.Hello How R U.
|
|
|
|
|
|
And it's a dodgy cross post as well.
|
|
|
|
|
No it's a dodgy ................
i think you didnt get the meaning of my question properly at all! Read the other part of this thread ????????????????????
|
|
|
|
|
The Knowledge wrote: think you didnt get the meaning of my question properly at all!
I did. That's why I recognised it as a cross post. Please don't post the same question (or in this case part of a clarification) to multiple forums.
|
|
|
|
|
Get to solve ur problem.
function wordCount(str)
{
var count = 0;
var _arrWord = str.split(" ");
for (i=0 ; i < _arrWord.length ; i++)
{
if (_arrWord[i] == "quick")
count += 1;
}
alert("Total Word Count: " +count);
}
Devjit Das.
|
|
|
|
|
int num=0;
//This line get the word to be searched
string title=dt.Rows[0]["Title"].ToString();
//This line get a paragraph in which searchintg to be.. string content=dt.Rows[0]["Content"].ToString();
for(int i=0;i<content.length;i++)
{
=""
="" if(title="=content[i].ToString())
" num="num+1;
" }="" }
="" lblmsg.text="num.ToString();
<b<But" this="" piece="" of="" code="" giving="" just="" 0="" <="" b="">
|
|
|
|
|
so what's the problem convert that concept as where u like to u. i think it will work.
Devjit Das.
|
|
|
|
|
do u really think my code(i've given in my last post) is correct ???????
|
|
|
|
|
I haven't check ur code.It is ur way to check ur code. we can provide only concept not the code. ok man.
Devjit Das.
|
|
|
|