|
Maybe below codes can give you some inspiration!
function onpreviewsomething(content)
{
var win_preview = window.open("", "_blank", "");
win_preview.document.open('text/html', 'replace');
win_preview.opener = null;
win_preview.document.writeln(content);
win_preview.document.close();
return false;
}
|
|
|
|
|
I want to get email contact from yahoo, gmail, hotmail etc using .NET.
Please help me with source code.
shahdat
|
|
|
|
|
This has NOTHING to do with ASP.NET. If you want to be provided with code, I suggest you post a job on rentacoder.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hello, This Is Vikash.
I have a small problem.
I have a page that shows a list of products.
But since it is a long list, the headers are not visible if user scrolls down.
Can anyone tell me or give some idea whether I can display the Header row after every 10 datarows in my gridview.
Any help or idea would be appreciated.
Thanks in Advance, awaiting a reply soon.
|
|
|
|
|
Use javascript to generate your list inside a scrolling div, so the headers are always visible at the top. I would imagine you may be able to do this with a header and footer template, or you may need to generate the whole lot with a repeater to give you that sort of flexibility.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi..i have tried 100000000000 of times to delete a record from GridView..always i got the same error "The GridView 'GridView1' fired event RowDeleting which wasn't handled."
I have set property of GridView..i.e Auto Generate Delete Button
CODE:-
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=demomockTest;Integrated Security=True");
SqlDataAdapter da = new SqlDataAdapter("select * from RegisteredHR ", con);
con.Open();
da.DeleteCommand = new SqlCommand("deleterow from RegisteredHR where HRID=", con);
da.DeleteCommand.ExecuteNonQuery();
con.Close();
bindgrid();
}
public void bindgrid()
{
SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=demomockTest;Integrated Security=True");
SqlCommand cmd = new SqlCommand("select * from RegisteredHR ", con);
SqlDataAdapter da = new SqlDataAdapter("", con);
da.SelectCommand = new SqlCommand("select * from RegisteredHR", con);
DataSet ds = new DataSet();
da.Fill(ds, "data");
GridView1.DataSource = ds.Tables[0].DefaultView;
GridView1.DataBind();
}
<asp:linkbutton id="LinkButton1" runat="server" onclick="LinkButton1_Click" width="27px" xmlns:asp="#unknown">See
<asp:linkbutton id="LinkButton2" runat="server" onclick="LinkButton2_Click" xmlns:asp="#unknown">Select All
<asp:label id="Label1" runat="server" backcolor="#FFE0C0" width="62px" xmlns:asp="#unknown">
<asp:gridview id="GridView1" runat="server" xmlns:asp="#unknown">
BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
CellPadding="3" GridLines="Horizontal" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
Width="669px" AutoGenerateDeleteButton="True">
<footerstyle backcolor="#B5C7DE" forecolor="#4A3C8C">
<columns> <asp:templatefield>
<itemtemplate>
<asp:checkbox id="CheckBox1" runat="server">
<rowstyle backcolor="#E7E7FF" forecolor="#4A3C8C">
<selectedrowstyle backcolor="#738A9C" font-bold="True" forecolor="#F7F7F7">
<pagerstyle backcolor="#E7E7FF" forecolor="#4A3C8C" horizontalalign="Right">
<headerstyle backcolor="#4A3C8C" font-bold="True" forecolor="#F7F7F7">
<alternatingrowstyle backcolor="#F7F7F7">
Help me out
Regards
Roopa
|
|
|
|
|
Turns out you're a retard. Why would you try it over and over when the error message tells you what is wrong ? Were you hoping that auto delete means the grid will write the code for you ? If you have a delete button, you need to handle that event, and you need to write some code.
Also, your code is illegible. LinkButton1 ? Gridviw1 ? Checkbox1 ? Are you trying to write code people can't read ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Link Button,Checkboxes r the part of my project...n i ws not hoping..i hd pasted tht code..u can check tht code..
Did u find any error in code?? If yes plz drop a mail..n Thanks
|
|
|
|
|
Do you really think this reply was written in the english language ? Txtspeak makes you look stupid(er).
Again, the error message means what it says. Nothing you said to me, changes or addresses anything I said to you.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
roopamukherjee wrote: Hi..i have tried 100000000000 of times to delete a record from GridView.
roopamukherjee wrote: always i got the same error "The GridView 'GridView1' fired event RowDeleting which wasn't handled."
It is clearing saying that you didn't handled the Row Deleting event.
roopamukherjee wrote: <asp:linkbutton id="LinkButton1" runat="server" onclick="LinkButton1_Click" width="27px" xmlns:asp="#unknown">See
What is that ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi...
I need to know whether we can, some how, put values in text fields of any web page ( Any website, like registration page of yahoo, text field of sms.com, login fields of gmail etc ) using asp.net.
Regards:
TurtleRock
|
|
|
|
|
I don't know what is your exact requirement but I am sure code won't work on site having CAPTCHA images.
Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya
|
|
|
|
|
Hello....
Thanks for the quick response.
I have to demonstrate how CAPTCHA secures a website from bots. Its an assignment.
Now if I could show how an asp.net code can fill the fields of a registration form of any website which is not using CAPTCHA Image, I can conclude that CAPTCHA is a way to secure such kind of misuse.
Can you tell me how to do so..
Regards:
TurtleRock
|
|
|
|
|
The only way I can think is to create a Browser Plug In e.g. Firefox Extension or IE Add On which detects the particular page and fills the input like Google Form filler does in google toolbar.
Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya
|
|
|
|
|
Looks at HttpWebRequest and HttpWebResponse classes. I guess, it allows you to specify post data.
|
|
|
|
|
Hi...
Can you please explain it by some examples..that will be very helpful.
|
|
|
|
|
hi,
Since i am new to web development , experts plz excuse me, i 'have a webapp. in asp.net2.0 and sqlserver2000. I want to Publish a website on the web server,
For that what are things should i do , like iis configuration etc.
|
|
|
|
|
|
Yes, you need to publish you web site and hosted on IIS by creating virtual directory.
Read This Article
Deployment of a Website on IIS
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi,
the link was useful, But it didnt satisfied my query, i am using asp.net2.0 with sqlserver2000 as backend and i want to configure iis along with this Database .Plz Help.
|
|
|
|
|
hello fri,
Did u get the solution of this problem. i am also looking the answer of this problem.
I am looking through mobile how to control my pc.
i have seen code www.codeproject.com . but it is vb . i am looking in c#(dot net).if u hava any idea please mail me.
you can mail me anujchetan@gmail.com..
plz its urgent. if you have any solution plz mail me.
|
|
|
|
|
Seriously, what does this have to do with ASP.NET ?
There are converters between VB and C#. C# can also call VB.NET dlls. There are many solutions open to you that involve using the code on CP. Hell, just reading it and working out what it does should be trivial if you know C#.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi,
i've developed a web app. and i did it without having IIS installed.
Is it OK for me to upload the web app developed ?
Plz help.
|
|
|
|
|
I am assuming you developed the web app using visual studio. If that is the case, VS has a build in web server, called Cassini. It uses the build-in web server until you deploy your application.
You should be able to deploy it to IIS and run ok, assuming you copied all relevant files and your configuration is correct.
|
|
|
|
|
Hi There,
I want to know how to take value return by link to sql query in Dataset or Datatable.
If anybody knows please help.
Thanks
|
|
|
|