|
First u must understand the basic web programming, my suggestion u must know about the HTML First and Javascript..And if u already simmilar with the HTML and Javascript Syntax, u can start build your first web application..After that u can learn about web programming using PHP, ASP.Net, and more..
Good Luck
Regards,
Tomi
|
|
|
|
|
Dear all,
i am using asp.net ,C# (VS 2005) and sql server 2005.
i have written sp for inserting the the data which written last inserted idendity no.
i would like to which method should i use(reader , nonexecutequery or executescalar ) so that i get that value and display the value in the form.
please guide me.
thanks
imaran khan
|
|
|
|
|
hello imaran,
Use ExecuteScalar() method so that insert and retrieve the value from the database.
ok byeee
Murali
|
|
|
|
|
hi,
if u r using the sqlserver , there is one
after ur insert query u can use @@identity
with this u will get the last inserted identity value.
for ex:
declare @lastid int output
insert into temp (..)
set @lastid =@@identity
remember it will return the value of last inserted identity column.
|
|
|
|
|
Did u see the new asp.net website i mean how in the world do u create a site like that
were do i get those images
i'm actually using Ajax but i would like to know how to give my site that heavenly look pls.... any one
|
|
|
|
|
Could you provide a link to what you are talking about?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
ohh my god u dun even know about asp.net i already posted the URL
www.asp.net
OMG
|
|
|
|
|
No, I meant as a clickety like this: http://www.asp.net[^]
It is rather proper to have url's in link form so people don't have to take the extra steps copying/pasting/etc when going to the url if they want to. All you have to do is highlight the url and hit the link guy on the by the smileys.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
ohh i'm so sry i've never used it before
like this www.asp.net
|
|
|
|
|
duo!@# wrote: Did u see the new asp.net website
on what site?
Can u give us a link
Regards,
Tomi
|
|
|
|
|
ohh my god u dun even know about asp.net i already posted the URL
www.asp.net
OMG
|
|
|
|
|
|
When I click once on button the event is not fired..when I click twice then only the event is fired...what culd the proble b?
thanx
|
|
|
|
|
Hard to say, without seeing any code. No way does a button not fire until you click it twice.
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 )
|
|
|
|
|
The code is in C#
I have written a javascript code on click event of button following is the code:
Also once condition is true i hv displayed a grid view getting data from db
function checkDotOnly()
{
if (document.form1.txtcustomerName.length!=0)
{
if((document.form1.txtcustomerName.value==".")||(document.form1.txtcustomerName.value==". ")||(document.form1.txtcustomerName.value==" "))
{
alert("Please Enter Valid Customer Name.");
/*document.form1.lblErrMsg.value="Please Enter Valid Customer Name.";
document.form1.lblErrMsg.disabled=false;*/
return false;
}
return true;
}
return true;
}
thanx
|
|
|
|
|
ouch.. Very tough to read that script. Let me make it more clear
<script language="javascript" type="text/javascript">
function checkDotOnly()
{
if (document.form1.txtcustomerName.length!=0)
{
if((document.form1.txtcustomerName.value==".") ||(document.form1.txtcustomerName.value==". ") ||(document.form1.txtcustomerName.value==" "))
{
alert("Please Enter Valid Customer Name.");
return false;
}
return true;
}
return true;
}
</script>
I think last two true you are returning. That is making problem. Try writting this like
<script language="javascript" type="text/javascript">
function checkDotOnly()
{
if (document.form1.txtcustomerName.length!=0)
{
if((document.form1.txtcustomerName.value==".") ||(document.form1.txtcustomerName.value==". ") ||(document.form1.txtcustomerName.value==" "))
{
alert("Please Enter Valid Customer Name.");
return false;
}
else
return true;
}
else
return true;
}
</script>
|
|
|
|
|
hello miniThomas,
Call that javascript in the Buton in onclientclick....It will work it is client side event.....
ok byeee
|
|
|
|
|
You might have coded under button_doubleClick
You right the code under button_Click
Try it out
Vidya
|
|
|
|
|
Hi Vidya,
The code is written On Click event
<asp:imagebutton id="imgbtnSearch" runat="server" imageurl="~/images/search.gif" alternatetext="Search" height="35" width="30" onclick="imgbtnSearch_Click">
thanx
|
|
|
|
|
Hi,
Have you added this javascript function as the attributes of the button.
EX: Button1.attributes.add("OnClick","<Javascript function>")
Try this out.
Regards,
Manowj
|
|
|
|
|
vidya.p.nair wrote: You might have coded under button_doubleClick
It's ASP.NET. Not windows app. In this you won't get double click event.
|
|
|
|
|
Hi Guys,
here is code:
<asp:imagebutton id="imgbtnSearch" runat="server" imageurl="~/images/search.gif" alternatetext="Search" height="35" width="30" onclick="imgbtnSearch_Click">
function checkDotOnly()
{
if (document.form1.txtcustomerName.length!=0)
{
if((document.form1.txtcustomerName.value==".")||(document.form1.txtcustomerName.value==". ")||(document.form1.txtcustomerName.value==" "))
{
alert("Please Enter Valid Customer Name.");
/*document.form1.lblErrMsg.value="Please Enter Valid Customer Name.";
document.form1.lblErrMsg.disabled=false;*/
return false;
}
return true;
}
return true;
}
protected void imgbtnSearch_Click(object sender, ImageClickEventArgs e)
{
if (RadioButtonList1.SelectedValue.ToString() == "")
{
lblMsg.Text = "";
lblErrMsg.Visible = true;
lblErrMsg.Text = "Please Select One Option.";
PnlSearchResults.Visible = false;
}
else
{
if (RadioButtonList1.SelectedIndex.ToString() == "0" && ddlOrderNo.SelectedItem.Value == "-1")
{
lblMsg.Text = "";
lblErrMsg.Visible = true;
lblErrMsg.Text = "Please Select Order Number.";
PnlSearchResults.Visible = false;
}
else
{
lblErrMsg.Visible = false;
fillSearchResults();
}
if (RadioButtonList1.SelectedIndex.ToString() == "1")
{
if (txtcustomerName.Text == "")
{
lblMsg.Text = "";
lblErrMsg.Visible = true;
lblErrMsg.Text = "Please Enter Customer Name.";
PnlSearchResults.Visible = false;
}
else
{
lblMsg.Text = "";
lblErrMsg.Visible = false;
fillSearchResults();
//Response.Write("domain=" + txtDomainName.Text + "cust=" + txtcustomerName.Text);
}
}
}
}//imgbtnSearch_Click
thanx
|
|
|
|
|
Have you tried suggestion in my previous posting ?
|
|
|
|
|
Scenario:
I have two web users. If user 1 makes a change to an Application server state variable, how do I notify user 2 about the new info without doing constant javascript polling in a timer using Ajax, which is what I am doing right now?
I would like to make this more efficient because the contant polling seems expensive to me. Any ideas?
Thanks!
|
|
|
|
|
AJAX is the only way you can send info to a user who does not themselves click on a link, or go to a new page.
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 )
|
|
|
|