|
ok, I solved it finally by allowing permissions to Network service account.
Now, comes the part where I want to assign a username and password for the enterprize manager and the query analayzer as a whole not just on certain databases so that noone can actually open these two programs if they have access to the server. How can I do that without messing up my databases permissions and login users? It's really complicated for me? can someone help?
|
|
|
|
|
We have a local network with internet. The main machine which has the modem is connected also has an asp.net website on it. How can we only enable it for local usage only? Without disabling anonymous access and without Windows authentication, if possible.
|
|
|
|
|
You can select and assign local IP address to your IIS with Properties in Default Web site.
Mehdi Bahrami
|
|
|
|
|
How can I get rowindex in gridview
I have gridview with 2 template column one of them are dropdownlist and the secound field is label
when i select on the dropdownlist the value showed in the label in the secound field
i want to know the rowindex in gridview which i select the dropdownlist in it
i used this code
mygridview.SelectedRow.RowIndex;
and
this code also
gvProfessions.SelectedIndex;
but it not work it return to me -1
please help me
Kareem Elhosseny
|
|
|
|
|
I assume you have AutoPostBack=true and OnSelectedIndexChanged-event programmed for the drop downlist.
Do you have DataKeyMember and DataKeyValue used in GridView? You need those.
In the Event you can do:
DropDownList ddl = (DropDownList)sender;
GridViewRow row = (GridViewRow)ddl.NamingContainer;
GridView1.SelectedIndex = row.RowIndex.
In that case you can find the value of GridView1.SelectedValue
At the end of the event add the line
GridView1.SelectedIndex = -1;
To state it simple:
If you know the DropDownList, you know in whoch container it is. That is the reason you need to know the NamingContainer. If you know that the rest is simple.
You can use this trick for any Component in a TemplateColumn.
|
|
|
|
|
thanks for help
but i cant understand your code i'll try and tell u the result
Kareem Elhosseny
|
|
|
|
|
The DropDownList is placed in the GridViewRow
If you know the DropDownList, you know it's NamingConatiner.
By Casting it to (GridViewRow) you retrieve the GridViewRow in which the DropDownList is.
|
|
|
|
|
really thank you my dear friend
thanks for resbecting me and abbreciate me as junior developer
i try your code and it work
thanks alot and here is my email if u want to add in your contacts
kareem_elhosseny@hotmail.com
Kareem Elhosseny
|
|
|
|
|
Hello
I have a problem in using Microsoft.Office.Interop.Word namespace, in my project I can use as fine in Windows Base project but when I try using in my Web Base project, after this:
Dim wapp As New Application
page is too be late for loading and page show as loading, in tasbar I see WinWord.exe is running after this but don't can continue ....
Mehdi Bahrami
|
|
|
|
|
Member 2736092 wrote: page is too be late for loading and page show as loading
what?
led mike
|
|
|
|
|
page can't load and shown as loading...
|
|
|
|
|
When I define doc as Documents don't have problem, but when define wapp as new application this error it's present.
Mehdi Bahrami
|
|
|
|
|
Member 2736092 wrote: I have a problem in using Microsoft.Office.Interop.Word namespace, in my project I can use as fine in Windows Base project but when I try using in my Web Base project, after this:
Dim wapp As New Application
page is too be late for loading and page show as loading, in tasbar I see WinWord.exe is running after this but don't can continue ....
You should never, ever, in any circumstances run Office on your Internet server. This is a BAD thing to do because Office applications are not designed to run on servers. They are client operations. If you want to use Office documents, consider looking at the Office Web Components instead.
|
|
|
|
|
Thank You,
But I can't find any, all of them it's by server side, anyone know what is client-side for Office Component?
Mehdi Bahrami
|
|
|
|
|
Please help about this problem...
Mehdi Bahrami
|
|
|
|
|
i have htmltable created dynamically in my page by javascript function..
this table is filled with data ..
i wanna access this htmltable data in code behind to send it to the sqlserver .
|
|
|
|
|
legend_of_zanado wrote: i have htmltable created dynamically in my page by javascript function..
this table is filled with data ..
i wanna access this htmltable data in code behind to send it to the sqlserver
you have no idea what you are doing. I suggest you try this[^].
led mike
|
|
|
|
|
Sheesh - it seems that people don't appreciate it when you try to help them. Never mind, I've 5ed to correct the imbalance.
|
|
|
|
|
Yeah, that guy is about as clueless as they come eh? If we could post binaries I would post a DLL that had a SolvesYourProblem() method exported that ShellExecuted that URL.
led mike
|
|
|
|
|
If you spell it correctly, you will get a more relevant search result. Obviously "carrer" is a usual enough word that google doesn't suggest a correction.
search for "career change"[^]
Search for "spell checker"[^]
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yes you are absolutely right! Thank you. <sarcasm>I will take more time to proof for typos in my future posts to people that have no idea what they are doing or I am talking about. It should seriously improve communications with them.
Seriously, I mean you can't even explain to these morons that they need to read and study the tutorials and reference material available on the technology they are attempting to use. They think that because they know what a loop and an if statement is they can program anything by asking questions about all the rest in internet forums. They are completely unqualified, hopeless and have choosen the wrong carrer. DAMN!
led mike
|
|
|
|
|
The entire html code is not sent back to the server. The only data that is sent to the server is the values in the fields in the form that is posted. If you have any data that you want to access from the server, you have to put it in form fields.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hello,
i have a table which i'm populating it dynamically, i need to read th value of a specific cell i tried "tabel.Rows[1].Cells[1].Text" it's gaving me an empty value="";
i tried tr.Cells[1].Controls[0] it's not working also BUT while i'm testing it on the WATCH panel of VS 2003, when i wrote :
tr.Cells[1].Controls[0].Text it gave me the value i want, but the ".Text" can't be implemented in the code coz it's not exist!!
please if someone could help.
thank you
|
|
|
|
|
michael_jhons wrote: i tried "tabel.Rows[1].Cells[1].Text"
michael_jhons wrote: i tried tr.Cells[1].Controls[0]
Why would you try both of those? Don't you know what you put in the cells?
led mike
|
|
|
|
|
Dear Mike
maby i miss-explained what i want to do,
i have a table which contain a checkBox on the first cell of each TableRow, so foreach tableRow i'm checking if the the first cell is checked i read the value of the second cell so i can use it to delete A certain row from my database, so i must read the value.
please if you have an answer of my question, help me
thank you for your concern
|
|
|
|