Jump to content

.net Experts..need Help On Gridview


Recommended Posts

Posted

 

ante baa.. 3 pages undochu... andukani... thinking.. but will giv a shot and thanks for concern

Posted
Page1.aspx lo js 
 
<asp:TemplateField HeaderText="Log Message">
                <ItemTemplate>
                        <a href="#" onclick='openWindow("<%# Eval("LogMessage") %>");'>Log Message</a>
                    </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>              
 
dani related funcion
 
function openWindow(LogMessage) {
                document.cookie = cname + "=" + LogMessage;
                alert(cname);
                window.open('page2.aspx'+"", 'open_window', ' width=640, height=480, left=200, top=200');
 
 
coming to page2.aspx.CS
 
protected void Page_Load(object sender, EventArgs e)
        {
            lblMessage.Text = Request.Cookies["cname"].Value;
        }
 
 
 
Ilaaaa try chesa... nothsng shows up.....  :3D_Smiles:
 
Posted

 

Page1.aspx lo js 
 
<asp:TemplateField HeaderText="Log Message">
                <ItemTemplate>
                        <a href="#" onclick='openWindow("<%# Eval("LogMessage") %>");'>Log Message</a>
                    </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>              
 
dani related funcion
 
function openWindow(LogMessage) {
                document.cookie = cname + "=" + LogMessage;
                alert(cname);
                window.open('page2.aspx'+"", 'open_window', ' width=640, height=480, left=200, top=200');
 
 
coming to page2.aspx.CS
 
protected void Page_Load(object sender, EventArgs e)
        {
            lblMessage.Text = Request.Cookies["cname"].Value;
        }
 
 
 
Ilaaaa try chesa... nothsng shows up.....  :3D_Smiles:

 

nothing shows up ? do you mean the existing page gone ? or new page opens up but shows nothing ? or you couldn't find cookie in page_load ?

Posted

nothing shows up ? do you mean the existing page gone ? or new page opens up but shows nothing ? or you couldn't find cookie in page_load ?

url meeda click chesthe em avvatledu.. jus em clik cheyanatte naatakaladuthundi

Posted

link meeda hover chesthe url em kanipisthundi?

pag1.aspx di kanipisthundi

Posted

pag1.aspx di kanipisthundi

 

page2.aspx undali kada...page1 enduku chupisthundi? data thappu ga bind chesavemo

Posted

Use something  like this

 

<ItemTemplate>
<a id="aID" language="javascript" onclick='openWindow("<%# Eval("LogMessage") %>");'href="#" value="abc">
</ItemTemplate>
Posted

querystring length thakkuva unchukuni...database nunchi data thechukuni popup lo chupinchuko....or session vaduko..

 

 

ledu querystring length penchalsinde anukunte web.config lo 

<system.web> section lo <httpRuntime maxReuestLength="xxxx" /> pettuko

xxx place lo pedda number ivvu....something like 1048576

Already ee number 2097151 undi bayya chech chesa

Posted

Do u just need to show the value as popup or any other functionality in popup?

Posted

If u dont need any other functionality adding an extra page is not a good idea and oldschool . Let me know the full functionality i will give you the solution. PM me the details

Posted

Prob Solved.. anthaa theesukelli session lo padesa.. 

 

Thank you very much in perso to Tuluvaa, Vatsayana and Gouthamsworld for your concern and help !!!

  • Upvote 1
×
×
  • Create New...