|
Hi,
How can I open a small new window and add a close button to it (probebly javascript) in my asp.net project ?
I want to show it when a hyperlink that its url is specefied in my C# code, clicked.
Best wishes
|
|
|
|
|
Add a call to javascript:window.open in the href atrribute of your anchor tag.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi,
I used of this code:
Click Me
and by clicking it a new window opens, but self page navigates to "javascript:window.open('2.htm','mywindow','width=400,height=200')" and displays "object"!
How can I stop the first window to navigate?
And if I use :
ASP.Net throws an exception about validation, what is it?
Best wishes
|
|
|
|
|
you can use target="_blank" attribute inside anchor tag
regards
sunil
|
|
|
|
|
hi mehrdad
see this site.
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
|
|
|
|
|
i have created a data base connection but when the connection.Open() statement is executed i get the following exception
" An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections."
what should i do ...............
thanks
|
|
|
|
|
|
waheed awan wrote: what should i do
Set it up so you can allow remote connections. You do this by going into the Surface Area Configuration manager...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I heard that using a datagrid control is not good in web applications because some browsers do not display it correctly,
please advice
abdelhameed81
|
|
|
|
|
abdelhameed81 wrote: please advice
sue him/her for giving wrong information.
Regards - J O H N -
|
|
|
|
|
|
Who ever told you that is full of sh*t. Datagrid control has not caused me any trouble in the major web browsers (IE, FF, Opera)...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello,
I am a beginner at ASP.NET
Right now i am searching for a way to store images files(jpeg,gif) files into Oracle database and then retrieve them as needed. ( C# only!!!)
So someone please help me!!
|
|
|
|
|
Hi,
You can store the image path (no need the image itself)...hope you can get my idea..
<< >>
|
|
|
|
|
Errr.... i dnt wanna do tht! For tht to work ill have to store all images into my App folder and it will be tiresome too!:->
|
|
|
|
|
Hi there,
I want to delete a row from a gridview, once it has been populated. My user have some control over how he wants to see the gridview, but now wants to be able to deleted certain rows, when clicking a link. How will I delete the rows?
I have the following code:
<br />
Dim row As GridViewRow<br />
'Delete Customers from grid<br />
For Each row In gdvUsers.Rows<br />
If (row.Cells(4).Text = "") Then<br />
'delete row<br />
End If<br />
Next<br />
<br />
Any help will be appreciated.
|
|
|
|
|
After Binding the data into the grid we have use this code:
Dim row As GridViewRow<br />
Dim i As Integer<br />
'Delete Customers from grid<br />
i = 0<br />
For Each row In gdvUsers.Rows<br />
If (row.Cells(4).Text = "") Then<br />
gdvUsers.DeleteRow(i)<br />
End If<br />
i = i + 1<br />
Next
And include this row deleting event:
<br />
Protected Sub gdvUsers_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles gdvUsers.RowDeleting<br />
<br />
gdvUsers.Rows.Item(e.RowIndex).Visible = False<br />
<br />
End Sub
Best Regards
JaySaran
|
|
|
|
|
Hello;
I have tried to get values of bound values in girdView using Function:-
*****
But not working
working
how can I do that(get bound values in the function ImagePath
----
protected String ImagePath(String Image,String Name)
{
return
}
Thanks
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
hi
i use of WebRequest.BeginGetRequestStream method such as follow , to send and get data to a site (for example to one of my web page application ) programmetically.
my problem is these code doesn't work correctly.
i think , problem is in set parameter.
can you guide me?
protected void btn_BeginGetRequestStream_Click(object sender, EventArgs e)
{
// Create a new HttpWebRequest object.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(TextBox1.Text);
// Set the ContentType property.
request.ContentType = "application/x-www-form-urlencoded";
// Set the Method property to 'POST' to post data to the URI.
request.Method = "POST";
// Start the asynchronous operation.
request.BeginGetRequestStream(new AsyncCallback(ReadCallback), request);
// Keep the main thread from continuing while the asynchronous
// operation completes. A real world application
// could do something useful such as updating its user interface.
allDone.WaitOne();
// Get the response.
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream streamResponse = response.GetResponseStream();
StreamReader streamRead = new StreamReader(streamResponse);
string responseString = streamRead.ReadToEnd();
TextBox4.Text = responseString;
// Close the stream object.
streamResponse.Close();
streamRead.Close();
// Release the HttpWebResponse.
response.Close();
}
public static ManualResetEvent allDone = new ManualResetEvent(false);
private static void ReadCallback(IAsyncResult asynchronousResult)
{
HttpWebRequest request = (HttpWebRequest)asynchronousResult.AsyncState;
// End the operation.
Stream postStream = request.EndGetRequestStream(asynchronousResult);
//Console.WriteLine("Please enter the input data to be posted:");
string postData = "Text1=" + "hi";
// Convert the string into a byte array.
byte[] byteArray = Encoding.UTF8.GetBytes(postData);
// Write to the request stream.
postStream.Write(byteArray, 0, postData.Length);
postStream.Close();
allDone.Set();
}
tanks
|
|
|
|
|
OK - is someone creating accounts and posting these as a joke ? You're on a site full of .NET examples. But, you should really buy a book and work through it if you really want to learn.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
today when i read first reply to my question that said my question was joke became angry and didn't pay attention that Christian's message was not intended to my post.
please escuse me
-- modified at 13:32 Sunday 4th November, 2007
|
|
|
|
|
B.A wrote: i am angry for your reply. where of my question is joke?
slow down... slow down... put on the breaks... the original post was deleted. Christian's message was not intended to your post. Can't you identify from the title of the message that it was replied to someone...
B.A wrote: i ask this question several times (with different titles) but no body can not response.
Thers is none here under the obligation to respond to your post.
B.A wrote: i am so angry.
Don't be rude to anyone in the forum...
Regards - J O H N -
|
|
|
|
|
B.A wrote: i ask this question several times (with different titles) but no body can not response.
Because we are all volunteers coming around on our free time and will.
B.A wrote: i am so angry.
That is impolite and certainly will not motivate anyone in answering your questions.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
B.A wrote: i ask this question several times (with different titles) but no body can not response.
Is this true? Looking at your previous posts, you asked a similar question a few days ago and got plenty of help. You only posted your current question a few hours ago. You should be prepared to wait several days for a response. This is a free site and you're not paying anyone for their assistance.
B.A wrote: i am so angry.
There's no need for such abuse, especially considering that you made a mistake. You should apologise for your unnecessary outburst.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i want to learn one of these methods.
i need to know which better or powerfull.
any recomondation?
|
|
|
|