|
good morning
i created a masterpage for my project
and i have a problem, i can't exit.
only has 3 options and the exit
i can acces every option and back
but when i back to the menu i can't exit
i try with the event window.close but only the first time
functions, when redirect and back to the menu i can't exit.
<tr>
<td class="style7" colspan="0">
<asp:LinkButton ID="lbtn_reglas_negocio_ao0" runat="server" CausesValidation="False"
Font-Underline="True" PostBackUrl="~/Pagina1.aspx"
style="font-size: large">Consulta Ayudas de Oficina</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style7" colspan="0">
<asp:LinkButton ID="lbtnSalir" runat="server" CausesValidation="False"
Font-Bold="True" Font-Overline="False" Font-Underline="True"
style="font-size: large" onclientclick="window.close();">Salir</asp:LinkButton>
</td>
</tr>
thanks in advance
|
|
|
|
|
What you mean by exit from the masterpage ? do you want to redirect to another page or anything else ?
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
Yr question is not clear do you want to logout.
|
|
|
|
|
What do you mean by exit?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi All,
I have an asp.net application which is client for a java web service. The java web service internally talks to an IBM database through natural language.
It is said that this java web service doesnt work like "url?wsdl" format. So I am unable to use add service reference for this. I have to create the proxy by using physical path like this "\\xxx\xxx\xxxxx.wsdl" because it doesnt run with "http://xxxx?wsdl".
Is there any way to create proxy for this using wsdl tool.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
wsdl.exe accepts both url or local path. You may run into problems using path to a network share, however you can try either copy the file locally or mapping drive for that share (look here[^] for example).
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
Hi,
I would like to ask what's the best way to send arabic unicode sms by email through Clickatell?
I am using this code but some of the characters are not showing properbly when the sms recieved:
private string ToUnicode(string val)
{
Encoding utf8 = Encoding.UTF8;
Encoding unicode = Encoding.Unicode;
byte[] utf8Bytes = utf8.GetBytes(val);
byte[] unicodeBytes = Encoding.Convert(utf8, unicode, utf8Bytes);
var result = ByteArrayToString(unicodeBytes);
result = result.Substring(result.Length - 2, 2) + result.Substring(0, result.Length - 2);
return result;
}
public static string ByteArrayToString(byte[] ba)
{
StringBuilder hex = new StringBuilder(ba.Length * 2);
foreach (byte b in ba)
hex.AppendFormat("{0:x2}", b);
return hex.ToString();
}
www.JassimRahma.com[^]
Technology News @ www.JassimRahma.com
modified 3-Dec-12 13:29pm.
|
|
|
|
|
I Have a gridview . When i click one of the files in the gridview , it will display the file details in a table in the grid.But if i am in 20th or 19th page of the gridview, after clicking on the file , the grid is comming to page 1. Is there any property for the grid to prevent this.
|
|
|
|
|
Basically Viewstate maintain all this information about current page of the grid. check if it is not disabled for you. another way is, you can also store page number in the session and update only when next,previous ,first, last button click or grid is refresh.
hope this will help you.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
|
Never ever do that. I did twice and 2 diffrent apps and it was always mistake to store anything in session besides some user data valid to user not for some page. For example in one grid there was date filter. Stored in session and empty this caused app to crash in that particular page.
No more Mister Nice Guy... >: |
|
|
|
|
|
As i said that, session is not preferable. but it is an alternative. from each and every scenario we need to check if page number is updated correctly.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
Why not control state? It suppose to work even with view state disabled. Or hidden field? In that way page will be set to one in case of page refresh as user would expect.
No more Mister Nice Guy... >: |
|
|
|
|
|
Disable the viewstate and change the grid page. it will not work.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
So why even bother to use something else then view state?
No more Mister Nice Guy... >: |
|
|
|
|
|
That's what i said in my answer. if it is disabled, then paging will not work.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
Ok. So this discusion is pointless.
Take care
No more Mister Nice Guy... >: |
|
|
|
|
|
Hi,
I think you can try to record the page index (a hidden controls or others), and in your click event, the gridview should turn to that page first.
Comm100 - Leading Live Chat Software Provider
modified 28-May-14 1:49am.
|
|
|
|
|
I'm having one web application where within loop I'm running one simple sql query (SQL Server 2008).
Select SNo, NoOfDays, [Month], [Year], [Days], [Holiday] From DaysMonth Where rtrim(Period)='Input' order by ToDate
Based on this query, populating one gridview and then creating records in a new table with other user input.
Now, out of 100 times it's running, 95-98 times it's giving accurate results, however, to my astonishment, sometimes sorting 'Order by' not working and producing abnormal sorting behavior. Like instead of 1st January to 31 January, it's returning 10th Jan-31st Jan then 1st Jan to 9th Jan (just for example). I got puzzled, because I can't do anything to change code, as it's working fine most of the time. Can you suggest some reason behind it which is beyond the code. As the data entry is huge, and it's multi-user environment, getting very difficult to monitor which one query going wrong. In that case, if I delete entries from new table, second time, it's giving perfect result. Please help me and thanks in advance to all.
|
|
|
|
|
You already posted this in the C# forum, which is also not the correct place. This is a Database query and belongs in that forum.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Richard, I already deleted this question from C# forum. As you are suggesting, I think this is not related to SQL Server and it's muti-user web environment state management related problem. Anyway, if you think so, can I keep this question under this category and create a new thread in Database forum? Thanks for your suggestion.
|
|
|
|
|
Even if it was related to SQL Server, it has nothing to do with either C# or ASP.NET. It's pure SQL and you need to give some more information about the field you are using to sort on: i.e. its type and value.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
okay agreed. So I'll delete it from here and create under SQL. However, just to answer your query, 'ToDate' field is a 'Date' type field, not DateTime type. User input Period is a varchar type field, input value like 'January,2012'. Thanks
|
|
|
|
|
I have 100 text boxes in my webpage and i want transfer values from one page to another pages in asp.net without using session variable, because i do not want to use 100 session variables, is there is any techniques in asp.net and C#. which make its easier.
|
|
|
|
|
You don't have to use session variables. (session object)
one way is to just give a name for each textbox field ( use only pure HTML tags) and prefix or use a suffix to each name. when you submit the page to the server you can just iterate through the values in the Form collection and then use Server.Ttransfer.
|
|
|
|